org.nuiton.topia.migration
Class MigrationServiceDAOHelper

java.lang.Object
  extended by org.nuiton.topia.migration.MigrationServiceDAOHelper

public class MigrationServiceDAOHelper
extends Object


Nested Class Summary
static class MigrationServiceDAOHelper.MigrationServiceEntityEnum
           
 
Constructor Summary
protected MigrationServiceDAOHelper()
          MigrationServiceDAOHelper :
 
Method Summary
static
<T extends TopiaEntity>
Class<T>
getContractClass(Class<T> klass)
          getContractClass :
static Class<? extends TopiaEntity>[] getContractClasses()
          getContractClasses :
static MigrationServiceDAOHelper.MigrationServiceEntityEnum[] getContracts()
          getContracts :
static
<T extends TopiaEntity,D extends TopiaDAO<? super T>>
D
getDAO(TopiaContext context, Class<T> klass)
          getDAO :
static
<T extends TopiaEntity,D extends TopiaDAO<? super T>>
D
getDAO(TopiaContext context, T entity)
          getDAO :
static
<T extends TopiaEntity>
Class<T>
getImplementationClass(Class<T> klass)
          getImplementationClass :
static Class<? extends TopiaEntity>[] getImplementationClasses()
          getImplementationClasses :
static String getImplementationClassesAsString()
          getImplementationClassesAsString :
static String getModelVersion()
          getModelVersion :
static TMSVersionDAO getTMSVersionDAO(TopiaContext context)
          getTMSVersionDAO :
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationServiceDAOHelper

protected MigrationServiceDAOHelper()
MigrationServiceDAOHelper :

Method Detail

getModelVersion

public static String getModelVersion()
getModelVersion :

Returns:
String

getTMSVersionDAO

public static TMSVersionDAO getTMSVersionDAO(TopiaContext context)
                                      throws TopiaException
getTMSVersionDAO :

Parameters:
context -
Returns:
TMSVersionDAO
Throws:
TopiaException

getDAO

public static <T extends TopiaEntity,D extends TopiaDAO<? super T>> D getDAO(TopiaContext context,
                                                                             Class<T> klass)
                                            throws TopiaException
getDAO :

Parameters:
context -
klass -
Returns:
> D
Throws:
TopiaException

getDAO

public static <T extends TopiaEntity,D extends TopiaDAO<? super T>> D getDAO(TopiaContext context,
                                                                             T entity)
                                            throws TopiaException
getDAO :

Parameters:
context -
entity -
Returns:
> D
Throws:
TopiaException

getContractClass

public static <T extends TopiaEntity> Class<T> getContractClass(Class<T> klass)
getContractClass :

Parameters:
klass -
Returns:
Class

getImplementationClass

public static <T extends TopiaEntity> Class<T> getImplementationClass(Class<T> klass)
getImplementationClass :

Parameters:
klass -
Returns:
Class

getContractClasses

public static Class<? extends TopiaEntity>[] getContractClasses()
getContractClasses :

Returns:
Class[]

getImplementationClasses

public static Class<? extends TopiaEntity>[] getImplementationClasses()
getImplementationClasses :

Returns:
Class[]

getImplementationClassesAsString

public static String getImplementationClassesAsString()
getImplementationClassesAsString :

Returns:
String

getContracts

public static MigrationServiceDAOHelper.MigrationServiceEntityEnum[] getContracts()
getContracts :

Returns:
MigrationServiceEntityEnum[]


Copyright © 2004-2010 CodeLutin. All Rights Reserved.