クラス DbVersionFileHandler
java.lang.Object
com.sqlapp.data.db.command.version.DbVersionFileHandler
- すべての実装されたインタフェース:
EncodingProperty
-
ネストされたクラスの概要
ネストされたクラス -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明void現在日時をバージョンとして指定したdescriptionとともにSQLファイルを追加します。void指定したversionおよびdescriptionでSQLファイルを追加します。void指定した日時をversionとして、descriptionとともにSQLファイルを追加します。voidaddUpDownSql(String prefix, String name, String upSql, String downSql) 指定したprefixおよび名称でSQLファイルを追加します。voidaddUpDownSql(Date date, String name, String upSql, String downSql) protected StringgetResource(String fileName, String encoding) read()ディレクトリ内の全バージョン差分SQLファイルを取得します。void指定したprefixおよび名称のSQLファイルを削除します。クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.EncodingProperty
getEncoding, setEncoding
-
コンストラクタの詳細
-
DbVersionFileHandler
public DbVersionFileHandler()
-
-
メソッドの詳細
-
getResource
-
add
現在日時をバージョンとして指定したdescriptionとともにSQLファイルを追加します。- パラメータ:
description-- 例外:
IOException
-
add
指定した日時をversionとして、descriptionとともにSQLファイルを追加します。- パラメータ:
date-description-- 例外:
IOException
-
add
指定したversionおよびdescriptionでSQLファイルを追加します。- パラメータ:
version-description-- 例外:
IOException
-
addUpDownSql
- 例外:
IOException
-
addUpDownSql
public void addUpDownSql(String prefix, String name, String upSql, String downSql) throws IOException 指定したprefixおよび名称でSQLファイルを追加します。- パラメータ:
prefix-name-upSql-downSql-- 例外:
IOException
-
remove
指定したprefixおよび名称のSQLファイルを削除します。- パラメータ:
prefix-name-- 例外:
IOException
-
read
ディレクトリ内の全バージョン差分SQLファイルを取得します。- 戻り値:
- SQLファイルリスト
-