Last update: 2011-06-23

org.proteios.core
Class UpdateToSchemaVersion10

java.lang.Object
  extended by org.proteios.core.AbstractUpdateToSchemaVersion
      extended by org.proteios.core.UpdateToSchemaVersion10
All Implemented Interfaces:
UpdateToSchemaVersionInterface

public final class UpdateToSchemaVersion10
extends AbstractUpdateToSchemaVersion
implements UpdateToSchemaVersionInterface

Following tables are removed from schema 9-10 Plates, PlateEvents, PlateEventTypes, PlateGeometries, PlateMappings PlateParents, PlateTypes, PropertyFilters ContextSettings, Contexts, Experiments, FileMaps, Wells

Author:
gregory

Constructor Summary
UpdateToSchemaVersion10()
           
 
Method Summary
protected  int adjustItemsToNewSchemaVersion(org.hibernate.Session session)
          Adjust the existing items in the database to be compatible with the latest mappings corresponding to this class.
 int getUpdateSchemaVersion()
          Get the update schema version.
protected  int updateToNewSchemaVersion(org.hibernate.Session session)
          Updates the database to the version corresponding to this class.
 
Methods inherited from class org.proteios.core.AbstractUpdateToSchemaVersion
adjustExistingItems, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.proteios.core.UpdateToSchemaVersionInterface
adjustExistingItems, update
 

Constructor Detail

UpdateToSchemaVersion10

public UpdateToSchemaVersion10()
Method Detail

getUpdateSchemaVersion

public int getUpdateSchemaVersion()
Get the update schema version.

Specified by:
getUpdateSchemaVersion in class AbstractUpdateToSchemaVersion
Returns:
int the update schema version.

updateToNewSchemaVersion

protected int updateToNewSchemaVersion(org.hibernate.Session session)
                                throws BaseException
Updates the database to the version corresponding to this class.

Specified by:
updateToNewSchemaVersion in class AbstractUpdateToSchemaVersion
Parameters:
session - org.hibernate.Session the Hibernate session to use.
Returns:
int The number of affected items.
Throws:
BaseException

adjustItemsToNewSchemaVersion

protected int adjustItemsToNewSchemaVersion(org.hibernate.Session session)
                                     throws BaseException
Adjust the existing items in the database to be compatible with the latest mappings corresponding to this class.

Specified by:
adjustItemsToNewSchemaVersion in class AbstractUpdateToSchemaVersion
Parameters:
session - org.hibernate.Session the Hibernate session to use.
Returns:
int The number of affected items.
Throws:
BaseException

Last update: 2011-06-23