クラス DbVersionFileHandler
java.lang.Object
com.sqlapp.data.db.command.version.DbVersionFileHandler
-
ネストされたクラスの概要
ネストされたクラス -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明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) com.sqlapp.data.db.dialect.util.SqlSplitterread()ディレクトリ内の全バージョン差分SQLファイルを取得します。void指定したprefixおよび名称のSQLファイルを削除します。voidsetDownSqlDirectory(File downSqlDirectory) voidsetDownSqlDirectory(String downSqlDirectory) voidsetEncoding(String encoding) voidsetSqlSplitter(com.sqlapp.data.db.dialect.util.SqlSplitter sqlSplitter) voidsetUpSqlDirectory(File upSqlDirectory) voidsetUpSqlDirectory(String upSqlDirectory)
-
コンストラクタの詳細
-
DbVersionFileHandler
public DbVersionFileHandler()
-
-
メソッドの詳細
-
getResource
-
getUpSqlDirectory
- 戻り値:
- the upSqlDirectory
-
setUpSqlDirectory
- パラメータ:
upSqlDirectory- the upSqlDirectory to set
-
setUpSqlDirectory
- パラメータ:
upSqlDirectory- the upSqlDirectory to set
-
getDownSqlDirectory
- 戻り値:
- the downSqlDirectory
-
setDownSqlDirectory
- パラメータ:
downSqlDirectory- the downSqlDirectory to set
-
setDownSqlDirectory
- パラメータ:
downSqlDirectory- the downSqlDirectory to set
-
add
現在日時をバージョンとして指定したdescriptionとともにSQLファイルを追加します。- パラメータ:
description-- 例外:
IOException
-
add
指定した日時をversionとして、descriptionとともにSQLファイルを追加します。- パラメータ:
date-description-- 例外:
IOException
-
getSqlSplitter
public com.sqlapp.data.db.dialect.util.SqlSplitter getSqlSplitter()- 戻り値:
- the sqlSplitter
-
setSqlSplitter
public void setSqlSplitter(com.sqlapp.data.db.dialect.util.SqlSplitter sqlSplitter) - パラメータ:
sqlSplitter- the sqlSplitter to set
-
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ファイルリスト
-
getEncoding
- 戻り値:
- the encoding
-
setEncoding
- パラメータ:
encoding- the encoding to set
-