org.nuiton.topia.migration
Class TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion

java.lang.Object
  extended by org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion
Enclosing class:
TopiaMigrationCallbackByClassNG

public abstract static class TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion
extends Object

Call back for a given version.

Since:
2.5
Author:
tchemit

Field Summary
protected  TopiaMigrationCallbackByClassNG callBack
           
 
Constructor Summary
TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion()
           
 
Method Summary
 void executeSQL(TopiaContextImplementor tx, boolean showSql, boolean showProgression, String... sqls)
           
 void executeSQL(TopiaContextImplementor tx, String... sqls)
           
abstract  org.nuiton.util.Version getVersion()
           
protected  String[] prepareMigration(TopiaContextImplementor tx, boolean showSql, boolean showProgression)
           
protected abstract  void prepareMigrationScript(TopiaContextImplementor tx, List<String> queries, boolean showSql, boolean showProgression)
           
 void setCallBack(TopiaMigrationCallbackByClassNG callBack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callBack

protected TopiaMigrationCallbackByClassNG callBack
Constructor Detail

TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion

public TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion()
Method Detail

getVersion

public abstract org.nuiton.util.Version getVersion()

setCallBack

public void setCallBack(TopiaMigrationCallbackByClassNG callBack)

prepareMigration

protected String[] prepareMigration(TopiaContextImplementor tx,
                                    boolean showSql,
                                    boolean showProgression)
                             throws TopiaException
Throws:
TopiaException

prepareMigrationScript

protected abstract void prepareMigrationScript(TopiaContextImplementor tx,
                                               List<String> queries,
                                               boolean showSql,
                                               boolean showProgression)
                                        throws TopiaException
Throws:
TopiaException

executeSQL

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

executeSQL

public void executeSQL(TopiaContextImplementor tx,
                       boolean showSql,
                       boolean showProgression,
                       String... sqls)
                throws TopiaException
Throws:
TopiaException


Copyright © 2004-2012 CodeLutin. All Rights Reserved.