|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.version.MigraterImpl
public class MigraterImpl
Migrater
の実装クラスです。
入れ子のクラスの概要 |
---|
インタフェース org.seasar.extension.jdbc.gen.version.Migrater から継承された入れ子のクラス/インタフェース |
---|
Migrater.Callback |
フィールドの概要 | |
---|---|
protected DdlVersionDirectoryTree |
ddlVersionDirectoryTree
DDLのバージョンを管理するディレクトリ |
protected java.lang.String |
env
環境名 |
protected static java.lang.String |
LATEST_VERSION
最新バージョンを表す文字列 |
protected static Logger |
logger
ロガー |
protected static java.lang.String |
NEXT_VERSION
1つ次のバージョンを表す文字列 |
protected static java.lang.String |
PREVIOUS_VERSION
1つ前のバージョンを表す文字列 |
protected SchemaInfoTable |
schemaInfoTable
スキーマのバージョン |
protected SqlUnitExecutor |
sqlUnitExecutor
SQLのひとまとまりの実行者 |
protected java.lang.String |
version
バージョン |
コンストラクタの概要 | |
---|---|
MigraterImpl(SqlUnitExecutor sqlUnitExecutor,
SchemaInfoTable schemaInfoTable,
DdlVersionDirectoryTree ddlVersionDirectoryTree,
java.lang.String version,
java.lang.String env)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
protected void |
checkVersionRange(long value)
バージョン番号の範囲をチェックします。 |
protected int |
convertToInt(java.lang.String value)
文字列としてのバージョン番号をint型に変換します。 |
protected int |
getDestVersion(int from)
マイグレーション先のバージョン番号を返します。 |
void |
migrate(Migrater.Callback callback)
マイグレーションを実行します。 |
protected void |
migrateInternal(Migrater.Callback callback,
int from,
int to)
マイグレーション処理を実行します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static java.lang.String LATEST_VERSION
protected static java.lang.String NEXT_VERSION
protected static java.lang.String PREVIOUS_VERSION
protected static Logger logger
protected SqlUnitExecutor sqlUnitExecutor
protected SchemaInfoTable schemaInfoTable
protected DdlVersionDirectoryTree ddlVersionDirectoryTree
protected java.lang.String env
protected java.lang.String version
コンストラクタの詳細 |
---|
public MigraterImpl(SqlUnitExecutor sqlUnitExecutor, SchemaInfoTable schemaInfoTable, DdlVersionDirectoryTree ddlVersionDirectoryTree, java.lang.String version, java.lang.String env)
sqlUnitExecutor
- SQLのひとまとまりの実行者schemaInfoTable
- スキーマのバージョンddlVersionDirectoryTree
- DDLをバージョン管理するディレクトリversion
- バージョンenv
- 環境名メソッドの詳細 |
---|
public void migrate(Migrater.Callback callback)
Migrater
の記述:
Migrater
内の migrate
callback
- コールバックprotected int getDestVersion(int from)
from
- マイグレーション元のバージョン番号
protected int convertToInt(java.lang.String value)
value
- 文字列としてのバージョン番号
protected void checkVersionRange(long value)
value
- バージョン番号protected void migrateInternal(Migrater.Callback callback, int from, int to)
callback
- コールバックfrom
- マイグレーション元のバージョン番号to
- マイグレーション先のバージョン番号
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |