Last update: 2011-06-23

org.proteios.core
Class UpdatesFactory

java.lang.Object
  extended by 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 $

Constructor Summary
UpdatesFactory()
           
 
Method Summary
 List<UpdateToSchemaVersionInterface> getUpdates(int fromProteiosVersion, int fromSchemaVersion)
          Update the database by modifying existing items to follow new requirements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdatesFactory

public UpdatesFactory()
Method Detail

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

Last update: 2011-06-23