Package generalDatabase.backup
Class SQLCloneDatabase
java.lang.Object
backupmanager.action.BackupAction
backupmanager.action.CopyFile
generalDatabase.backup.CopyDatabaseFile
generalDatabase.backup.SQLCloneDatabase
- All Implemented Interfaces:
BackupFunction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cloneDatabase
(BackupManager backupManager, BackupStream stream, String newDatabaseName) Do a complete clone of the database into a new database ...
This method works for an SQLite database.boolean
doAction
(BackupManager backupManager, BackupStream backupStream, StreamItem streamItem) Perform a backup action.getName()
Methods inherited from class generalDatabase.backup.CopyDatabaseFile
createDestinationFile, getNewDatabaseName
Methods inherited from class backupmanager.action.CopyFile
checkDestinationPath, getCopySettings, getDialogPanel, getSettings, getSpace, runIfPreviousActionError, setCopySettings, setSettings
Methods inherited from class backupmanager.action.BackupAction
getActionMaker, getBackupFilter, getBackupStream, setBackupFilter, showDialog
-
Constructor Details
-
SQLCloneDatabase
-
-
Method Details
-
doAction
public boolean doAction(BackupManager backupManager, BackupStream backupStream, StreamItem streamItem) throws BackupException Description copied from class:BackupAction
Perform a backup action. Return false or throw an exception if the action fails.- Overrides:
doAction
in classCopyFile
- Returns:
- Throws:
BackupException
-
cloneDatabase
public boolean cloneDatabase(BackupManager backupManager, BackupStream stream, String newDatabaseName) Do a complete clone of the database into a new database ...
This method works for an SQLite database. I've no idea if it would work for other database formats.- Parameters:
backupManager
-newDatabaseName
-parentWindow
-- Returns:
-
getName
- Specified by:
getName
in interfaceBackupFunction
- Overrides:
getName
in classCopyFile
- Returns:
- a name for the action, to display in dialogs
-