Package org.nuiton.topia.migration
Class TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion
java.lang.Object
org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion
- Enclosing class:
- TopiaMigrationCallbackByClassNG
public abstract static class TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion
extends java.lang.Object
Call back for a given version.
- Since:
- 2.5
- Author:
- tchemit <chemit@codelutin.com>
-
Field Summary
Fields Modifier and Type Field Description protected TopiaMigrationCallbackByClassNGcallBack -
Constructor Summary
Constructors Constructor Description MigrationCallBackForVersion() -
Method Summary
Modifier and Type Method Description voidexecuteSQL(TopiaContextImplementor tx, boolean showSql, boolean showProgression, java.lang.String... sqls)voidexecuteSQL(TopiaContextImplementor tx, java.lang.String... sqls)abstract org.nuiton.version.VersiongetVersion()protected java.lang.String[]prepareMigration(TopiaContextImplementor tx, boolean showSql, boolean showProgression)protected abstract voidprepareMigrationScript(TopiaContextImplementor tx, java.util.List<java.lang.String> queries, boolean showSql, boolean showProgression)voidsetCallBack(TopiaMigrationCallbackByClassNG callBack)
-
Field Details
-
Constructor Details
-
MigrationCallBackForVersion
public MigrationCallBackForVersion()
-
-
Method Details
-
getVersion
public abstract org.nuiton.version.Version getVersion() -
setCallBack
-
prepareMigration
protected java.lang.String[] prepareMigration(TopiaContextImplementor tx, boolean showSql, boolean showProgression) throws TopiaException- Throws:
TopiaException
-
prepareMigrationScript
protected abstract void prepareMigrationScript(TopiaContextImplementor tx, java.util.List<java.lang.String> queries, boolean showSql, boolean showProgression) throws TopiaException- Throws:
TopiaException
-
executeSQL
- Throws:
TopiaException
-
executeSQL
public void executeSQL(TopiaContextImplementor tx, boolean showSql, boolean showProgression, java.lang.String... sqls) throws TopiaException- Throws:
TopiaException
-