|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.SchemaVersion
public class SchemaVersion
This class contains methods to get and set the schema version data in the database.
| Constructor Summary | |
|---|---|
SchemaVersion()
|
|
| Method Summary | |
|---|---|
static int |
getApplicationBuild(org.hibernate.Session session)
Get the current application build number as it is stored in the database. |
static int |
getSchemaVersion()
|
static int |
getSchemaVersion(org.hibernate.Session session)
Get the current schema version number as it is stored in the database. |
static void |
setSchemaVersion(org.hibernate.Session session,
int schemaVersion)
Update the database with a new schema version number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaVersion()
| Method Detail |
|---|
public static int getApplicationBuild(org.hibernate.Session session)
throws BaseException
session - org.hibernate.Session a Hibernate session to use for
queries.
BaseException
public static int getSchemaVersion(org.hibernate.Session session)
throws BaseException
session - org.hibernate.Session a Hibernate session to use for
queries.
BaseException
public static int getSchemaVersion()
throws BaseException
BaseException
public static void setSchemaVersion(org.hibernate.Session session,
int schemaVersion)
throws BaseException
session - org.hibernate.Session a Hibernate session to use for
queries.schemaVersion - int The new schema version number
BaseException
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||