Class TMSVersionHibernateDao
java.lang.Object
org.nuiton.topia.migration.mappings.TMSVersionHibernateDao
- Direct Known Subclasses:
TMSVersionDAO
TMSVersion DAO helper.
- Since:
- 2.3.4
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTMSSchema(org.hibernate.boot.Metadata metadata) static voiddeleteAll(org.hibernate.Session session) static voiddropTMSSchema(org.hibernate.boot.Metadata metadata) static org.nuiton.version.VersiongetVersion(org.hibernate.cfg.Configuration hibernateConfiguration, org.hibernate.Session session, String tableName) static TMSVersionreadVersion(org.hibernate.Session session) static TMSVersionsaveVersion(org.hibernate.Session session, String version) static voidupdate(org.hibernate.Session session, TMSVersion version)
-
Field Details
-
LEGACY_TABLE_NAME
- See Also:
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
TMSVersionHibernateDao
public TMSVersionHibernateDao()
-
-
Method Details
-
readVersion
- Throws:
TopiaException
-
createTMSSchema
public static void createTMSSchema(org.hibernate.boot.Metadata metadata) -
dropTMSSchema
public static void dropTMSSchema(org.hibernate.boot.Metadata metadata) -
saveVersion
public static TMSVersion saveVersion(org.hibernate.Session session, String version) throws TopiaException - Throws:
TopiaException
-
update
- Throws:
TopiaException
-
deleteAll
- Throws:
TopiaException
-
getVersion
public static org.nuiton.version.Version getVersion(org.hibernate.cfg.Configuration hibernateConfiguration, org.hibernate.Session session, String tableName)
-