org.proteios.core
Class UpdatesFactory
java.lang.Object
org.proteios.core.UpdatesFactory
public class UpdatesFactory
- extends Object
This class is a factory of incremental update classes.
It returns a list of the incremental update classes
needed to update the database from the given version
to the current one.
Based on BASE2 class src/core/net/sf/basedb/core/Update.java,
but adapted to use a main updater class that performs a
general update by calling methods in classes that perform an
incremental update from one version to the next.
- Version:
- 2.0
- Author:
- Olle
- Last modified
- $Date: 2007-02-13 10:14:33Z $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdatesFactory
public UpdatesFactory()
getUpdates
public List<UpdateToSchemaVersionInterface> getUpdates(int fromProteiosVersion,
int fromSchemaVersion)
throws BaseException
- Update the database by modifying existing items to follow new requirements.
- Parameters:
fromProteiosVersion - int The Proteios version to update from.fromSchemaVersion - int The database schemaVersion to update from.
- Returns:
- list A list of incremental updater objects.
- Throws:
BaseException