org.proteios.core
Class UpdateToSchemaVersion10
java.lang.Object
org.proteios.core.AbstractUpdateToSchemaVersion
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateToSchemaVersion10
public UpdateToSchemaVersion10()
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