org.nuiton.topia.migration
Interface MigrationService

All Known Implementing Classes:
MigrationServiceImpl, TopiaMigrationServiceImpl

Deprecated. since 2.3.4, please use now the simplify service TopiaMigrationEngine

@Deprecated
public interface MigrationService

MigrationService.java

Version:
$Revision: 2010 $ Last update : $Date: 2010-06-13 20:18:35 +0200 (dim., 13 juin 2010) $
Author:
Chatellier Eric, Chevallereau Benjamin, Eon Sébastien, Trève Vincent

Method Summary
 void addMigrationCallbackHandler(MigrationCallbackHandler callbackHandler)
          Deprecated. Ajoute un callbackhandler pour la migration
 org.hibernate.cfg.Configuration getConfiguration()
          Deprecated. Retourne la configuration
 String getConfigurationFile()
          Deprecated. Renvoie le chemin du ficier de configuration utilise
 String getMappingsDirectory()
          Deprecated. Retourne le repertoire des anciens schemas
 boolean migrateSchema()
          Deprecated. Migrate the schema
 void setApplicationVersion(String version)
          Deprecated. Change la version courante
 void setConfiguration(org.hibernate.cfg.Configuration configuration)
          Deprecated. Renseigne la configuration
 void setConfigurationFile(String configurationFile)
          Deprecated. Modifie le fichier de configuration
 void setMappingsDirectory(String mappingsDirectory)
          Deprecated. Modifie le chemin du dossier des anciens schemas
 

Method Detail

getConfigurationFile

String getConfigurationFile()
Deprecated. 
Renvoie le chemin du ficier de configuration utilise

Returns:
Chemin du fichier de configuration

setConfigurationFile

void setConfigurationFile(String configurationFile)
Deprecated. 
Modifie le fichier de configuration

Parameters:
configurationFile - Chemin du fichier de configuration d'hibernate

getConfiguration

org.hibernate.cfg.Configuration getConfiguration()
Deprecated. 
Retourne la configuration

Returns:
la configuration
See Also:
Configuration

setConfiguration

void setConfiguration(org.hibernate.cfg.Configuration configuration)
Deprecated. 
Renseigne la configuration

Parameters:
configuration - la configuration
See Also:
Configuration

getMappingsDirectory

String getMappingsDirectory()
Deprecated. 
Retourne le repertoire des anciens schemas

Returns:
Le repertoire des anciens schemas

setMappingsDirectory

void setMappingsDirectory(String mappingsDirectory)
Deprecated. 
Modifie le chemin du dossier des anciens schemas

Parameters:
mappingsDirectory - Le chemin du dossier des anciens schemas

setApplicationVersion

void setApplicationVersion(String version)
Deprecated. 
Change la version courante

Parameters:
version - la version

addMigrationCallbackHandler

void addMigrationCallbackHandler(MigrationCallbackHandler callbackHandler)
Deprecated. 
Ajoute un callbackhandler pour la migration

Parameters:
callbackHandler - le controleur a ajouter

migrateSchema

boolean migrateSchema()
                      throws MigrationServiceException
Deprecated. 
Migrate the schema

Returns:
true si la migration a ete effectuee et s'est bien passee, false sinon
Throws:
MigrationServiceException - dans le cas ou le schema ne peut pas etre mis a jour


Copyright © 2004-2010 CodeLutin. All Rights Reserved.