Class DatabaseCatalog

java.lang.Object
backupmanager.database.BackupCatalog
backupmanager.database.DatabaseCatalog

public class DatabaseCatalog extends BackupCatalog
  • Constructor Details

  • Method Details

    • catalogNewItems

      public List<StreamItem> catalogNewItems(List<StreamItem> allSourceItems)
      Description copied from class: BackupCatalog
      If possible, save new items in the backup catalog. Doesn't look at output of actions yet. Used by the database to add to the backuptable.
      Specified by:
      catalogNewItems in class BackupCatalog
      Parameters:
      allSourceItems - all source items
      Returns:
      items added to the catalog (hopefully a subset).
    • getUnactedItems

      public List<StreamItem> getUnactedItems(List<StreamItem> sourceItems, BackupAction action)
      Description copied from class: BackupCatalog
      Get a list of items that have not been operated by the given action (may vary by action, particularly if new actions are added).
      Specified by:
      getUnactedItems in class BackupCatalog
      Parameters:
      sourceItems - all potentially new items.
      Returns:
      list of items that need acting on.
    • updateItem

      public boolean updateItem(StreamItem streamItem, BackupAction action)
      Description copied from class: BackupCatalog
      Once an action is complete, store it's result (if possible)
      Specified by:
      updateItem in class BackupCatalog
      Returns:
    • getActionColumnName

      public String getActionColumnName(BackupAction action)
    • getFilterColumnName

      public String getFilterColumnName(BackupAction action)
    • backupComplete

      public void backupComplete()
      Description copied from class: BackupCatalog
      Called when backup of a stream is complete so that catalogue can be closed.
      Specified by:
      backupComplete in class BackupCatalog