クラス DbVersionFileHandler

java.lang.Object
com.sqlapp.data.db.command.version.DbVersionFileHandler

public class DbVersionFileHandler extends Object
  • コンストラクタの詳細

    • DbVersionFileHandler

      public DbVersionFileHandler()
  • メソッドの詳細

    • getResource

      protected String getResource(String fileName, String encoding)
    • getUpSqlDirectory

      public File getUpSqlDirectory()
      戻り値:
      the upSqlDirectory
    • setUpSqlDirectory

      public void setUpSqlDirectory(File upSqlDirectory)
      パラメータ:
      upSqlDirectory - the upSqlDirectory to set
    • setUpSqlDirectory

      public void setUpSqlDirectory(String upSqlDirectory)
      パラメータ:
      upSqlDirectory - the upSqlDirectory to set
    • getDownSqlDirectory

      public File getDownSqlDirectory()
      戻り値:
      the downSqlDirectory
    • setDownSqlDirectory

      public void setDownSqlDirectory(File downSqlDirectory)
      パラメータ:
      downSqlDirectory - the downSqlDirectory to set
    • setDownSqlDirectory

      public void setDownSqlDirectory(String downSqlDirectory)
      パラメータ:
      downSqlDirectory - the downSqlDirectory to set
    • add

      public void add(String description) throws IOException
      現在日時をバージョンとして指定したdescriptionとともにSQLファイルを追加します。
      パラメータ:
      description -
      例外:
      IOException
    • add

      public void add(Date date, String description) throws IOException
      指定した日時を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

      public void add(String version, String description) throws IOException
      指定したversionおよびdescriptionでSQLファイルを追加します。
      パラメータ:
      version -
      description -
      例外:
      IOException
    • addUpDownSql

      public void addUpDownSql(Date date, String name, String upSql, String downSql) throws IOException
      例外:
      IOException
    • addUpDownSql

      public void addUpDownSql(String prefix, String name, String upSql, String downSql) throws IOException
      指定したprefixおよび名称でSQLファイルを追加します。
      パラメータ:
      prefix -
      name -
      upSql -
      downSql -
      例外:
      IOException
    • remove

      public void remove(String prefix, String name) throws IOException
      指定したprefixおよび名称のSQLファイルを削除します。
      パラメータ:
      prefix -
      name -
      例外:
      IOException
    • read

      ディレクトリ内の全バージョン差分SQLファイルを取得します。
      戻り値:
      SQLファイルリスト
    • getEncoding

      public String getEncoding()
      戻り値:
      the encoding
    • setEncoding

      public void setEncoding(String encoding)
      パラメータ:
      encoding - the encoding to set