org.bitrepository.service.audit
Class AuditTrailContributorDatabaseMigrator
java.lang.Object
org.bitrepository.service.database.DatabaseMaintainer
org.bitrepository.service.database.DatabaseMigrator
org.bitrepository.service.audit.AuditTrailContributorDatabaseMigrator
public class AuditTrailContributorDatabaseMigrator
- extends DatabaseMigrator
Migration class for the AuditTrailContributorDatabase of the ReferencePillar, ChecksumPillar
and the IntegrityService.
Will only try to perform the migration on an embedded derby database.
Method Summary |
void |
migrate()
Perform the migration for the given database. |
boolean |
needsMigration()
Method to determine if migration is needed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditTrailContributorDatabaseMigrator
public AuditTrailContributorDatabaseMigrator(DBConnector connector)
- Constructor.
- Parameters:
connector
- connection to the database.
migrate
public void migrate()
- Description copied from class:
DatabaseMigrator
- Perform the migration for the given database.
- Specified by:
migrate
in class DatabaseMigrator
needsMigration
public boolean needsMigration()
- Description copied from class:
DatabaseMigrator
- Method to determine if migration is needed.
- Specified by:
needsMigration
in class DatabaseMigrator
- Returns:
- true if migration is needed, false otherwise.
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.