Package backupmanager.database
Class DatabaseCatalog
java.lang.Object
backupmanager.database.BackupCatalog
backupmanager.database.DatabaseCatalog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when backup of a stream is complete so that catalogue can be closed.catalogNewItems
(List<StreamItem> allSourceItems) If possible, save new items in the backup catalog.getActionColumnName
(BackupAction action) getFilterColumnName
(BackupAction action) getUnactedItems
(List<StreamItem> sourceItems, BackupAction action) Get a list of items that have not been operated by the given action (may vary by action, particularly if new actions are added).boolean
updateItem
(StreamItem streamItem, BackupAction action) Once an action is complete, store it's result (if possible)Methods inherited from class backupmanager.database.BackupCatalog
getBackupStream, getSource
-
Constructor Details
-
DatabaseCatalog
-
-
Method Details
-
catalogNewItems
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 classBackupCatalog
- Parameters:
allSourceItems
- all source items- Returns:
- items added to the catalog (hopefully a subset).
-
getUnactedItems
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 classBackupCatalog
- Parameters:
sourceItems
- all potentially new items.- Returns:
- list of items that need acting on.
-
updateItem
Description copied from class:BackupCatalog
Once an action is complete, store it's result (if possible)- Specified by:
updateItem
in classBackupCatalog
- Returns:
-
getActionColumnName
-
getFilterColumnName
-
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 classBackupCatalog
-