org.nuiton.topia.migration.mappings
Class TMSVersionDAO

java.lang.Object
  extended by org.nuiton.topia.migration.mappings.TMSVersionDAO

public class TMSVersionDAO
extends Object

TMSVersion DAO helper.

Since:
2.3.4
Author:
tchemit

Nested Class Summary
static class TMSVersionDAO.GetVersionWork
           
 
Field Summary
static String LEGACY_MAPPING
           
static String LEGACY_TABLE_NAME
           
static String TABLE_NAME
           
 
Constructor Summary
TMSVersionDAO()
           
 
Method Summary
static TMSVersion create(TopiaContext tx, String version)
           
static void createTable(org.hibernate.cfg.Configuration configuration)
           
static void deleteAll(TopiaContext tx)
           
static void dropTable(org.hibernate.cfg.Configuration configuration)
           
static TMSVersion get(TopiaContext tx)
           
static org.nuiton.util.Version getVersion(TopiaContext tx, String tableName)
           
static void update(TopiaContext tx, TMSVersion version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEGACY_TABLE_NAME

public static final String LEGACY_TABLE_NAME
See Also:
Constant Field Values

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

LEGACY_MAPPING

public static final String LEGACY_MAPPING
Constructor Detail

TMSVersionDAO

public TMSVersionDAO()
Method Detail

get

public static TMSVersion get(TopiaContext tx)
                      throws TopiaException
Throws:
TopiaException

createTable

public static void createTable(org.hibernate.cfg.Configuration configuration)

dropTable

public static void dropTable(org.hibernate.cfg.Configuration configuration)

create

public static TMSVersion create(TopiaContext tx,
                                String version)
                         throws TopiaException
Throws:
TopiaException

update

public static void update(TopiaContext tx,
                          TMSVersion version)
                   throws TopiaException
Throws:
TopiaException

deleteAll

public static void deleteAll(TopiaContext tx)
                      throws TopiaException
Throws:
TopiaException

getVersion

public static org.nuiton.util.Version getVersion(TopiaContext tx,
                                                 String tableName)


Copyright © 2004-2012 CodeLutin. All Rights Reserved.