org.nuiton.topia.migration
Class TopiaMigrationServiceImpl

java.lang.Object
  extended by org.nuiton.topia.migration.MigrationServiceImpl
      extended by org.nuiton.topia.migration.TopiaMigrationServiceImpl
All Implemented Interfaces:
java.util.EventListener, TopiaContextListener, TopiaTransactionVetoable, TopiaService, MigrationService, TopiaMigrationService

public class TopiaMigrationServiceImpl
extends MigrationServiceImpl
implements TopiaMigrationService

TopiaMigrationServiceImpl.java Classe principale du projet.

Version:
$Revision: 1459 $ Last update : $Date: 2009-05-16 09:56:47 +0200 (Sat, 16 May 2009) $
Author:
Chatellier Eric, Chevallereau Benjamin, Eon S�bastien, Tr�ve Vincent

Field Summary
static java.lang.String MIGRATION_APPLICATION_VERSION
          Nom des proprietes
static java.lang.String MIGRATION_CALLBACKHANDLERS
           
static java.lang.String MIGRATION_MODEL_NAMES
           
static java.lang.String MIGRATION_PREVIOUS_MAPPING_DIRECTORY
           
protected static java.lang.String TOPIA_PERSISTENCE_CLASSES
           
protected static java.lang.String TOPIA_PERSISTENCE_DIRECTORIES
          C'est la meme, mais ca vire des dependances
 
Fields inherited from class org.nuiton.topia.migration.MigrationServiceImpl
currentApplicationConfiguration, currentApplicationVersion, currentHibernateConfigurationFile, mappingsDirectory, migrationCallBackHandlers
 
Fields inherited from interface org.nuiton.topia.migration.TopiaMigrationService
SERVICE_NAME
 
Constructor Summary
TopiaMigrationServiceImpl()
           
 
Method Summary
 void beginTransaction(TopiaTransactionEvent event)
           
 java.lang.Class<?>[] getPersistenceClasses()
           
 java.lang.String getServiceName()
           
 void postCreateSchema(TopiaContextEvent event)
           
 boolean postInit(TopiaContextImplementor context)
           
 void postRestoreSchema(TopiaContextEvent event)
           
 void postUpdateSchema(TopiaContextEvent event)
           
 void preCreateSchema(TopiaContextEvent event)
           
 boolean preInit(TopiaContextImplementor context)
           
 void preRestoreSchema(TopiaContextEvent event)
           
 void preUpdateSchema(TopiaContextEvent event)
           
 
Methods inherited from class org.nuiton.topia.migration.MigrationServiceImpl
addMigrationCallbackHandler, askHandlerForMigration, checkInformation, getConfiguration, getConfigurationFile, getMappingsDirectory, getSingleConfiguration, loadApplicationConfiguration, loadIntermediateConfigurations, migrateSchema, putVersionInDatabase, setApplicationVersion, setConfiguration, setConfigurationFile, setMappingsDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.migration.TopiaMigrationService
migrateSchema
 

Field Detail

MIGRATION_APPLICATION_VERSION

public static final java.lang.String MIGRATION_APPLICATION_VERSION
Nom des proprietes

See Also:
Constant Field Values

MIGRATION_PREVIOUS_MAPPING_DIRECTORY

public static final java.lang.String MIGRATION_PREVIOUS_MAPPING_DIRECTORY
See Also:
Constant Field Values

MIGRATION_MODEL_NAMES

public static final java.lang.String MIGRATION_MODEL_NAMES
See Also:
Constant Field Values

MIGRATION_CALLBACKHANDLERS

public static final java.lang.String MIGRATION_CALLBACKHANDLERS
See Also:
Constant Field Values

TOPIA_PERSISTENCE_DIRECTORIES

protected static final java.lang.String TOPIA_PERSISTENCE_DIRECTORIES
C'est la meme, mais ca vire des dependances

See Also:
Constant Field Values

TOPIA_PERSISTENCE_CLASSES

protected static final java.lang.String TOPIA_PERSISTENCE_CLASSES
See Also:
Constant Field Values
Constructor Detail

TopiaMigrationServiceImpl

public TopiaMigrationServiceImpl()
Method Detail

getPersistenceClasses

public java.lang.Class<?>[] getPersistenceClasses()
Specified by:
getPersistenceClasses in interface TopiaService

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in interface TopiaService

preInit

public boolean preInit(TopiaContextImplementor context)
Specified by:
preInit in interface TopiaService

postInit

public boolean postInit(TopiaContextImplementor context)
Specified by:
postInit in interface TopiaService

postCreateSchema

public void postCreateSchema(TopiaContextEvent event)
Specified by:
postCreateSchema in interface TopiaContextListener

postUpdateSchema

public void postUpdateSchema(TopiaContextEvent event)
Specified by:
postUpdateSchema in interface TopiaContextListener

preCreateSchema

public void preCreateSchema(TopiaContextEvent event)
Specified by:
preCreateSchema in interface TopiaContextListener

preUpdateSchema

public void preUpdateSchema(TopiaContextEvent event)
Specified by:
preUpdateSchema in interface TopiaContextListener

preRestoreSchema

public void preRestoreSchema(TopiaContextEvent event)
Specified by:
preRestoreSchema in interface TopiaContextListener

postRestoreSchema

public void postRestoreSchema(TopiaContextEvent event)
Specified by:
postRestoreSchema in interface TopiaContextListener

beginTransaction

public void beginTransaction(TopiaTransactionEvent event)
Specified by:
beginTransaction in interface TopiaTransactionVetoable


Copyright © 2004-2009 CodeLutin. All Rights Reserved.