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

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

public class DdlVersionDirectoryImpl
extends ManagedFileImpl
implements DdlVersionDirectory

DdlVersionDirectoryの実装クラスです。

作成者:
taedium

入れ子のクラスの概要
 
クラス org.seasar.extension.jdbc.gen.internal.version.ManagedFileImpl から継承された入れ子のクラス/インタフェース
ManagedFileImpl.FileInfo
 
フィールドの概要
protected static java.lang.String CREATE_DIR_NAME
          createディレクトリの名前
protected static java.lang.String DROP_DIR_NAME
          dropディレクトリの名前
protected  int versionNo
          バージョン番号
 
クラス org.seasar.extension.jdbc.gen.internal.version.ManagedFileImpl から継承されたフィールド
envNamedFileInfo, fileInfo, parent
 
コンストラクタの概要
DdlVersionDirectoryImpl(java.io.File baseDir, int versionNo, java.lang.String versionNoPattern, java.lang.String env)
          インスタンスを構築します。
 
メソッドの概要
 ManagedFile getCreateDirectory()
          createディレクトリを返します。
 ManagedFile getDropDirectory()
          dropディレクトリを返します。
protected static java.lang.String getVersionDirPath(java.io.File baseDir, int versionNo, java.lang.String versionNoPattern)
          バージョンディレクトリのパスを返します。
 int getVersionNo()
          バージョン番号を返します。
 boolean isFirstVersion()
          DDLの最初のバージョンである場合trueを返します。
 
クラス org.seasar.extension.jdbc.gen.internal.version.ManagedFileImpl から継承されたメソッド
asFile, createChild, createChildInternal, createNewFile, delete, exists, getFile, getFileInfo, getFileList, getName, getParent, getRelativePath, hasChild, isDirectory, listAllFiles, listManagedFiles, listManagedFiles, mkdir, mkdirs, traverseDirectory
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.extension.jdbc.gen.version.ManagedFile から継承されたメソッド
asFile, createChild, createNewFile, delete, exists, getName, getParent, getRelativePath, hasChild, isDirectory, listAllFiles, listManagedFiles, listManagedFiles, mkdir, mkdirs
 

フィールドの詳細

CREATE_DIR_NAME

protected static java.lang.String CREATE_DIR_NAME
createディレクトリの名前


DROP_DIR_NAME

protected static java.lang.String DROP_DIR_NAME
dropディレクトリの名前


versionNo

protected int versionNo
バージョン番号

コンストラクタの詳細

DdlVersionDirectoryImpl

public DdlVersionDirectoryImpl(java.io.File baseDir,
                               int versionNo,
                               java.lang.String versionNoPattern,
                               java.lang.String env)
インスタンスを構築します。

パラメータ:
baseDir - ベースディレクトリ
versionNo - バージョン番号
versionNoPattern - バージョン番号パターン
env - 環境名
メソッドの詳細

getVersionDirPath

protected static java.lang.String getVersionDirPath(java.io.File baseDir,
                                                    int versionNo,
                                                    java.lang.String versionNoPattern)
バージョンディレクトリのパスを返します。

パラメータ:
baseDir - ベースディレクトリ
versionNo - バージョン番号
versionNoPattern - バージョン番号パターン
戻り値:
バージョンディレクトリのパス

getCreateDirectory

public ManagedFile getCreateDirectory()
インタフェース DdlVersionDirectory の記述:
createディレクトリを返します。

定義:
インタフェース DdlVersionDirectory 内の getCreateDirectory
戻り値:
createディレクトリ

getDropDirectory

public ManagedFile getDropDirectory()
インタフェース DdlVersionDirectory の記述:
dropディレクトリを返します。

定義:
インタフェース DdlVersionDirectory 内の getDropDirectory
戻り値:
dropディレクトリ

getVersionNo

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

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

isFirstVersion

public boolean isFirstVersion()
インタフェース DdlVersionDirectory の記述:
DDLの最初のバージョンである場合trueを返します。

定義:
インタフェース DdlVersionDirectory 内の isFirstVersion
戻り値:
DDLの最初のバージョンである場合true


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