org.bitrepository.service.audit
Class AuditTrailContributorDatabaseMigrator

java.lang.Object
  extended by org.bitrepository.service.database.DatabaseMaintainer
      extended by org.bitrepository.service.database.DatabaseMigrator
          extended by 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.


Field Summary
 
Fields inherited from class org.bitrepository.service.database.DatabaseMigrator
connector, TABLEVERSIONS_TABLE, TV_TABLENAME, TV_VERSION
 
Constructor Summary
AuditTrailContributorDatabaseMigrator(DBConnector connector)
          Constructor.
 
Method Summary
 void migrate()
          Perform the migration for the given database.
 boolean needsMigration()
          Method to determine if migration is needed.
 
Methods inherited from class org.bitrepository.service.database.DatabaseMigrator
getTableVersions, migrateDerbyDatabase, updateTable
 
Methods inherited from class org.bitrepository.service.database.DatabaseMaintainer
getDBConnection, runScript, runScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditTrailContributorDatabaseMigrator

public AuditTrailContributorDatabaseMigrator(DBConnector connector)
Constructor.

Parameters:
connector - connection to the database.
Method Detail

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.