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

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

public class DdlInfoFileImpl
extends java.lang.Object
implements DdlInfoFile

DdlInfoFileの実装クラスです。

作成者:
taedium

フィールドの概要
protected static java.lang.String ENCODING
          エンコーディング
protected  java.io.File file
          DDLファイル
protected static Logger logger
          ロガー
protected  java.lang.Integer versionNo
          バージョン番号
 
コンストラクタの概要
DdlInfoFileImpl(java.io.File file)
          インスタンスを構築します。
 
メソッドの概要
 void applyNextVersionNo(java.lang.String comment)
          次のバージョン番号を適用します。
protected  int convertToInt(java.lang.String value)
          バージョン番号を表す文字列をint型に変換します。
 int getCurrentVersionNo()
          現在のバージョン番号を返します。
protected  int getCurrentVersionNoInternal()
          バージョン番号を返します。
 int getNextVersionNo()
          次のバージョン番号を返します。
protected  int getNextVersionNoInternal()
          次のバージョン番号を返します。
protected  java.lang.String readLine()
          1行を読みます。
protected  void writeLine(java.lang.String line)
          1行を書きます。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

logger

protected static Logger logger
ロガー


ENCODING

protected static final java.lang.String ENCODING
エンコーディング

関連項目:
定数フィールド値

file

protected java.io.File file
DDLファイル


versionNo

protected java.lang.Integer versionNo
バージョン番号

コンストラクタの詳細

DdlInfoFileImpl

public DdlInfoFileImpl(java.io.File file)
インスタンスを構築します。

パラメータ:
file - ファイル
メソッドの詳細

getCurrentVersionNo

public int getCurrentVersionNo()
インタフェース DdlInfoFile の記述:
現在のバージョン番号を返します。

定義:
インタフェース DdlInfoFile 内の getCurrentVersionNo
戻り値:
バージョン番号

getCurrentVersionNoInternal

protected int getCurrentVersionNoInternal()
バージョン番号を返します。

戻り値:
バージョン番号

readLine

protected java.lang.String readLine()
1行を読みます。

戻り値:
1行

getNextVersionNo

public int getNextVersionNo()
インタフェース DdlInfoFile の記述:
次のバージョン番号を返します。

定義:
インタフェース DdlInfoFile 内の getNextVersionNo
戻り値:
次のバージョン番号

getNextVersionNoInternal

protected int getNextVersionNoInternal()
次のバージョン番号を返します。

戻り値:
次のバージョン番号

applyNextVersionNo

public void applyNextVersionNo(java.lang.String comment)
インタフェース DdlInfoFile の記述:
次のバージョン番号を適用します。

定義:
インタフェース DdlInfoFile 内の applyNextVersionNo
パラメータ:
comment - バージョンを増分する理由を示すコメント

writeLine

protected void writeLine(java.lang.String line)
1行を書きます。

パラメータ:
line - 1行

convertToInt

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

パラメータ:
value - バージョン番号を表す文字列
戻り値:
バージョン番号


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