org.seasar.extension.jdbc.gen.internal.version
クラス MigraterImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.internal.version.MigraterImpl
すべての実装されたインタフェース:
Migrater

public class MigraterImpl
extends java.lang.Object
implements Migrater

Migraterの実装クラスです。

作成者:
taedium

入れ子のクラスの概要
 
インタフェース 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
 

フィールドの詳細

LATEST_VERSION

protected static java.lang.String LATEST_VERSION
最新バージョンを表す文字列


NEXT_VERSION

protected static java.lang.String NEXT_VERSION
1つ次のバージョンを表す文字列


PREVIOUS_VERSION

protected static java.lang.String PREVIOUS_VERSION
1つ前のバージョンを表す文字列


logger

protected static Logger logger
ロガー


sqlUnitExecutor

protected SqlUnitExecutor sqlUnitExecutor
SQLのひとまとまりの実行者


schemaInfoTable

protected SchemaInfoTable schemaInfoTable
スキーマのバージョン


ddlVersionDirectoryTree

protected DdlVersionDirectoryTree ddlVersionDirectoryTree
DDLのバージョンを管理するディレクトリ


env

protected java.lang.String env
環境名


version

protected java.lang.String version
バージョン

コンストラクタの詳細

MigraterImpl

public MigraterImpl(SqlUnitExecutor sqlUnitExecutor,
                    SchemaInfoTable schemaInfoTable,
                    DdlVersionDirectoryTree ddlVersionDirectoryTree,
                    java.lang.String version,
                    java.lang.String env)
インスタンスを構築します。

パラメータ:
sqlUnitExecutor - SQLのひとまとまりの実行者
schemaInfoTable - スキーマのバージョン
ddlVersionDirectoryTree - DDLをバージョン管理するディレクトリ
version - バージョン
env - 環境名
メソッドの詳細

migrate

public void migrate(Migrater.Callback callback)
インタフェース Migrater の記述:
マイグレーションを実行します。

定義:
インタフェース Migrater 内の migrate
パラメータ:
callback - コールバック

getDestVersion

protected int getDestVersion(int from)
マイグレーション先のバージョン番号を返します。

パラメータ:
from - マイグレーション元のバージョン番号
戻り値:
マイグレーション先のバージョン番号

convertToInt

protected int convertToInt(java.lang.String value)
文字列としてのバージョン番号をint型に変換します。

パラメータ:
value - 文字列としてのバージョン番号
戻り値:
intとしてのバージョン番号

checkVersionRange

protected void checkVersionRange(long value)
バージョン番号の範囲をチェックします。

パラメータ:
value - バージョン番号

migrateInternal

protected void migrateInternal(Migrater.Callback callback,
                               int from,
                               int to)
マイグレーション処理を実行します。

パラメータ:
callback - コールバック
from - マイグレーション元のバージョン番号
to - マイグレーション先のバージョン番号


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.