|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.migration.ManualMigrationEngine
TopiaMigrationEngine
@Deprecated public class ManualMigrationEngine
TopiaMigrationServiceImpl.java
Classe principale du projet.
| Field Summary | |
|---|---|
protected org.nuiton.util.Version |
applicationVersion
Deprecated. Version courante de l'application (initialise en pre-init) |
protected ManualMigrationCallback |
callback
Deprecated. CallbackHandler list (initialise en pre-init) |
protected boolean |
dbNotVersioned
Deprecated. Drapeau pour savoir si la base est versionnée ou non |
protected org.nuiton.util.Version |
dbVersion
Deprecated. Version courante de la base (initialise en pre-init) |
protected boolean |
init
Deprecated. Un drapeau pour savoir si le service a bien ete initialise (i.e a bien fini la methode preInit) |
protected String |
mappingsDirectory
Deprecated. Chemin du dossier contenant les schemas de toutes les versions (initialise en pre-init) |
protected boolean |
migrateOnInit
Deprecated. Un drapeau pour effectuer la migration au demarrage (initialise en pre-init) |
static String |
MIGRATION_APPLICATION_VERSION
Deprecated. La version de référence |
static String |
MIGRATION_MAPPING_DIRECTORY
Deprecated. L'emplacement de tous les mappings |
static String |
MIGRATION_MODEL_NAME
Deprecated. Les noms des modèles connus |
protected TopiaContextImplementor |
rootContext
Deprecated. topia root context (initialise en pre-init) |
protected boolean |
showProgression
Deprecated. Un drapeau pour afficher la progression des requetes sql executees |
protected boolean |
showSql
Deprecated. Un drapeau pour afficher les requetes sql executees |
protected org.hibernate.cfg.Configuration |
versionConfiguration
Deprecated. Configuration hibernate ne mappant que l'entite version (initialise en pre-init) |
protected SortedSet<org.nuiton.util.Version> |
versions
Deprecated. ensemble des versions connues par le service |
protected boolean |
versionTableExist
Deprecated. Un drapeau pour savoir si la table version existe en base (initialise en pre-init) |
| Fields inherited from interface org.nuiton.topia.migration.TopiaMigrationService |
|---|
MIGRATION_CALLBACK, MIGRATION_MIGRATE_ON_INIT, MIGRATION_SHOW_PROGRESSION, MIGRATION_SHOW_SQL, SERVICE_NAME, TOPIA_SERVICE_NAME |
| Constructor Summary | |
|---|---|
ManualMigrationEngine()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
beginTransaction(TopiaTransactionEvent event)
Deprecated. |
protected void |
checkInit()
Deprecated. |
protected void |
detectDbVersion()
Deprecated. Recupere depuis la base les états internes du service : versionTableExist dbVersion |
void |
doMigrateSchema()
Deprecated. |
Class<?>[] |
getPersistenceClasses()
Deprecated. |
String |
getServiceName()
Deprecated. |
protected SortedSet<org.nuiton.util.Version> |
getVersions()
Deprecated. Recupere toutes les versions prises en charge par le service de migration. |
boolean |
migrateSchema()
Deprecated. |
void |
postCreateSchema(TopiaContextEvent event)
Deprecated. |
boolean |
postInit(TopiaContextImplementor context)
Deprecated. |
void |
postRestoreSchema(TopiaContextEvent event)
Deprecated. |
void |
postUpdateSchema(TopiaContextEvent event)
Deprecated. |
void |
preCreateSchema(TopiaContextEvent event)
Deprecated. |
boolean |
preInit(TopiaContextImplementor context)
Deprecated. |
void |
preRestoreSchema(TopiaContextEvent event)
Deprecated. |
void |
preUpdateSchema(TopiaContextEvent event)
Deprecated. |
void |
saveVersion(org.nuiton.util.Version version)
Deprecated. Enregistre la version donnee en base avec creation de la table si elle n'existe pas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MIGRATION_APPLICATION_VERSION
public static final String MIGRATION_MAPPING_DIRECTORY
public static final String MIGRATION_MODEL_NAME
protected org.hibernate.cfg.Configuration versionConfiguration
protected String mappingsDirectory
protected SortedSet<org.nuiton.util.Version> versions
protected org.nuiton.util.Version applicationVersion
protected boolean versionTableExist
protected org.nuiton.util.Version dbVersion
protected boolean dbNotVersioned
protected boolean migrateOnInit
protected ManualMigrationCallback callback
protected TopiaContextImplementor rootContext
protected boolean init
protected boolean showSql
protected boolean showProgression
| Constructor Detail |
|---|
public ManualMigrationEngine()
| Method Detail |
|---|
public Class<?>[] getPersistenceClasses()
getPersistenceClasses in interface TopiaServicepublic String getServiceName()
getServiceName in interface TopiaServicepublic boolean preInit(TopiaContextImplementor context)
preInit in interface TopiaServicepublic boolean postInit(TopiaContextImplementor context)
postInit in interface TopiaServicepublic void preCreateSchema(TopiaContextEvent event)
preCreateSchema in interface TopiaContextListenerpublic void preRestoreSchema(TopiaContextEvent event)
preRestoreSchema in interface TopiaContextListenerpublic void preUpdateSchema(TopiaContextEvent event)
preUpdateSchema in interface TopiaContextListenerpublic void postCreateSchema(TopiaContextEvent event)
postCreateSchema in interface TopiaContextListenerpublic void postUpdateSchema(TopiaContextEvent event)
postUpdateSchema in interface TopiaContextListenerpublic void postRestoreSchema(TopiaContextEvent event)
postRestoreSchema in interface TopiaContextListenerpublic void beginTransaction(TopiaTransactionEvent event)
beginTransaction in interface TopiaTransactionVetoable
public void doMigrateSchema()
throws MigrationServiceException
MigrationServiceException
public boolean migrateSchema()
throws MigrationServiceException
migrateSchema in interface TopiaMigrationServiceMigrationServiceExceptionpublic void saveVersion(org.nuiton.util.Version version)
version - la nouvelle version de la base
protected SortedSet<org.nuiton.util.Version> getVersions()
throws MigrationServiceException
MigrationServiceException - pour tout problemeprotected void detectDbVersion()
protected void checkInit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||