org.nuiton.topia.migration
Class ManualMigrationCallback

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

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

@Deprecated
public abstract class ManualMigrationCallback
extends Object

ManualMigrationCallback

Version:
$Revision: 2010 $
Author:
tchemit

Nested Class Summary
static class ManualMigrationCallback.MigrationChoice
          Deprecated. CallbackHandler return type.
 
Constructor Summary
ManualMigrationCallback()
          Deprecated.  
 
Method Summary
abstract  boolean askUser(org.nuiton.util.Version dbVersion, org.nuiton.util.Version applicationVersion, List<org.nuiton.util.Version> versions)
          Deprecated.  
 ManualMigrationCallback.MigrationChoice doMigration(TopiaContext ctxt, org.nuiton.util.Version dbVersion, org.nuiton.util.Version applicationVersion, boolean showSql, boolean showProgression, List<org.nuiton.util.Version> versions)
          Deprecated. Tentative de migration depuis la version de la base version la version souhaitee.
 void executeSQL(TopiaContextImplementor tx, boolean showSql, boolean showProgression, String... sqls)
          Deprecated. Executes the given sqls requests.
 void executeSQL(TopiaContextImplementor tx, String... sqls)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualMigrationCallback

public ManualMigrationCallback()
Deprecated. 
Method Detail

askUser

public abstract boolean askUser(org.nuiton.util.Version dbVersion,
                                org.nuiton.util.Version applicationVersion,
                                List<org.nuiton.util.Version> versions)
Deprecated. 

doMigration

public ManualMigrationCallback.MigrationChoice doMigration(TopiaContext ctxt,
                                                           org.nuiton.util.Version dbVersion,
                                                           org.nuiton.util.Version applicationVersion,
                                                           boolean showSql,
                                                           boolean showProgression,
                                                           List<org.nuiton.util.Version> versions)
Deprecated. 
Tentative de migration depuis la version de la base version la version souhaitee.

On applique toutes les migrations de version indiquee dans le parametre version.

Pour chaque version, on cherche la methode migrateTo_XXX ou XXX est la version transforme en identifiant java via la methode Version.getValidName() et on l'execute.

Note: pour chaque version a appliquer, on ouvre une nouvelle transaction.

Parameters:
ctxt - topia context de la transaction en cours
dbVersion - database version
applicationVersion - application version
showSql - drapeau pour afficher les requete sql
showProgression - drapeau pour afficher la progression
versions - all versions knwon by service @return migration a ggrement
Returns:
le choix de migration executee

executeSQL

public void executeSQL(TopiaContextImplementor tx,
                       String... sqls)
                throws TopiaException
Deprecated. 
Throws:
TopiaException

executeSQL

public void executeSQL(TopiaContextImplementor tx,
                       boolean showSql,
                       boolean showProgression,
                       String... sqls)
                throws TopiaException
Deprecated. 
Executes the given sqls requests.

Parameters:
tx - the session
showSql - flag to see sql requests
showProgression - flag to see progession on console
sqls - requests to execute
Throws:
TopiaException - if any pb
Since:
2.3.0


Copyright © 2004-2010 CodeLutin. All Rights Reserved.