eu.etaxonomy.cdm.database.update
Interface IUpdater<U extends IUpdater<U>>

All Known Subinterfaces:
ISchemaUpdater, ITermUpdater
All Known Implementing Classes:
SchemaUpdater_24_25, SchemaUpdater_25_30, SchemaUpdater_30_301, SchemaUpdater_301_31, SchemaUpdaterBase, TermUpdater_24_25, TermUpdater_25_30, TermUpdater_30_31, TermUpdater_31_311, TermUpdater_311_312, TermUpdater_312_313, TermUpdater_313_314, TermUpdater_314_315, TermUpdaterBase, UpdaterBase

public interface IUpdater<U extends IUpdater<U>>

Author:
a.mueller

Method Summary
 int countSteps(ICdmDataSource datasource, IProgressMonitor monitor)
          Returns the number of steps to run to update the datasource to the schema this schema updater is updating to.
 U getNextUpdater()
          Returns the next CDM term/schema updater
 U getPreviousUpdater()
          Returns the previous CDM term/schema updater
 boolean invoke(ICdmDataSource datasource, IProgressMonitor monitor)
           
 boolean invoke(String targetVersion, ICdmDataSource datasource, IProgressMonitor monitor)
           
 

Method Detail

getPreviousUpdater

U getPreviousUpdater()
Returns the previous CDM term/schema updater

Returns:

getNextUpdater

U getNextUpdater()
Returns the next CDM term/schema updater

Returns:

countSteps

int countSteps(ICdmDataSource datasource,
               IProgressMonitor monitor)
Returns the number of steps to run to update the datasource to the schema this schema updater is updating to. This includes needed steps in previous updaters.

Returns:
number of steps
See Also:
getPreviousUpdater()

invoke

boolean invoke(ICdmDataSource datasource,
               IProgressMonitor monitor)
               throws Exception
Throws:
Exception

invoke

boolean invoke(String targetVersion,
               ICdmDataSource datasource,
               IProgressMonitor monitor)
               throws Exception
Throws:
Exception


Copyright © 2007-2013 EDIT. All Rights Reserved.