Product Information > JADE Developer’s Reference > Chapter 7 - Using the Database Administration Framework > BackupDatabaseDlgunload Method

BackupDatabaseDlg::unload Method

Certain housekeeping tasks are performed in the unload method, in case the dialog is shut down prematurely.

unload() updating;
begin
    if eventsSubscribed then
        endNotification(backupManager.dba,
                        JadeDatabaseAdmin.FileBackupStartEvent);
        endNotification(backupManager.dba,
                        JadeDatabaseAdmin.FileBackupCompleteEvent);
        endNotification(backupManager.dba,
                        JadeDatabaseAdmin.BackupCompleteEvent);
        endNotification(backupManager.dba,
                        JadeDatabaseAdmin.BackupAbortedEvent);
    endif;
    if backupManager <> null then
        beginTransientTransaction;
        backupManager.finalise;
        delete backupManager;
        commitTransientTransaction;
    endif;
end;