eu.etaxonomy.cdm.database.update
Class SchemaUpdaterBase

java.lang.Object
  extended by eu.etaxonomy.cdm.database.update.UpdaterBase<ISchemaUpdaterStep,ISchemaUpdater>
      extended by eu.etaxonomy.cdm.database.update.SchemaUpdaterBase
All Implemented Interfaces:
ISchemaUpdater, IUpdater<ISchemaUpdater>
Direct Known Subclasses:
SchemaUpdater_24_25, SchemaUpdater_25_30, SchemaUpdater_30_301, SchemaUpdater_301_31

public abstract class SchemaUpdaterBase
extends UpdaterBase<ISchemaUpdaterStep,ISchemaUpdater>
implements ISchemaUpdater

Base class for updating a schema.

Author:
a.mueller

Field Summary
static boolean INCLUDE_AUDIT
           
protected static boolean INCLUDE_CDM_BASE
           
 
Fields inherited from class eu.etaxonomy.cdm.database.update.UpdaterBase
list, startVersion, targetVersion
 
Constructor Summary
protected SchemaUpdaterBase(String startSchemaVersion, String endSchemaVersion)
           
 
Method Summary
protected  String getCurrentVersion(ICdmDataSource datasource, IProgressMonitor monitor)
           
protected abstract  List<ISchemaUpdaterStep> getUpdaterList()
           
protected  boolean updateVersion(ICdmDataSource datasource, IProgressMonitor monitor)
           
 
Methods inherited from class eu.etaxonomy.cdm.database.update.UpdaterBase
countSteps, getNextUpdater, getPreviousUpdater, getTargetVersion, handleSingleStep, invoke, invoke, isAfterMyStartVersion, isAfterMyTargetVersion, isBeforeMyStartVersion, isBeforeMyTargetVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.database.update.ISchemaUpdater
getTargetVersion, invoke, invoke
 
Methods inherited from interface eu.etaxonomy.cdm.database.update.IUpdater
countSteps, getNextUpdater, getPreviousUpdater
 

Field Detail

INCLUDE_AUDIT

public static boolean INCLUDE_AUDIT

INCLUDE_CDM_BASE

protected static boolean INCLUDE_CDM_BASE
Constructor Detail

SchemaUpdaterBase

protected SchemaUpdaterBase(String startSchemaVersion,
                            String endSchemaVersion)
Method Detail

getUpdaterList

protected abstract List<ISchemaUpdaterStep> getUpdaterList()

updateVersion

protected boolean updateVersion(ICdmDataSource datasource,
                                IProgressMonitor monitor)
                         throws SQLException
Specified by:
updateVersion in class UpdaterBase<ISchemaUpdaterStep,ISchemaUpdater>
Throws:
SQLException

getCurrentVersion

protected String getCurrentVersion(ICdmDataSource datasource,
                                   IProgressMonitor monitor)
                            throws SQLException
Specified by:
getCurrentVersion in class UpdaterBase<ISchemaUpdaterStep,ISchemaUpdater>
Throws:
SQLException


Copyright © 2007-2013 EDIT. All Rights Reserved.