Class SQLCloneDatabase

All Implemented Interfaces:
BackupFunction

public class SQLCloneDatabase extends CopyDatabaseFile
  • Constructor Details

  • 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 class CopyFile
      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

      public String getName()
      Specified by:
      getName in interface BackupFunction
      Overrides:
      getName in class CopyFile
      Returns:
      a name for the action, to display in dialogs