クラス VersionUpCommand

すべての実装されたインタフェース:
Placeholders, Runnable
直系の既知のサブクラス:
SeriesVersionDownCommand, VersionDownCommand, VersionInsertCommand, VersionMergeCommand, VersionRepairCommand

public class VersionUpCommand extends AbstractSqlCommand
  • コンストラクタの詳細

    • VersionUpCommand

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

    • doRun

      protected void doRun()
      定義:
      doRun クラス内 AbstractCommand
    • executeEmptyVersion

      protected void executeEmptyVersion(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<com.sqlapp.data.schemas.Row> rows, List<DbVersionFileHandler.SqlFile> sqlFiles, DbVersionHandler dbVersionHandler)
    • logCurrentState

      protected com.sqlapp.data.db.command.version.VersionUpCommand.DialectTableHolder logCurrentState(DbVersionHandler dbVersionHandler, DbVersionFileHandler dbVersionFileHandler, boolean target)
    • checkTable

      protected void checkTable(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • outputCurrent

      protected String outputCurrent(com.sqlapp.data.schemas.Table table, DbVersionHandler dbVersionHandler)
    • getVersionRows

      protected List<com.sqlapp.data.schemas.Row> getVersionRows(com.sqlapp.data.schemas.Table table, List<DbVersionFileHandler.SqlFile> sqlFiles, DbVersionHandler dbVersionHandler)
    • executeChangeVersion

      protected void executeChangeVersion(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<com.sqlapp.data.schemas.Row> rows, List<DbVersionFileHandler.SqlFile> sqlFiles, DbVersionHandler dbVersionHandler)
    • executeSql

      protected void executeSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, Long id, Map<Long,DbVersionFileHandler.SqlFile> sqlFileMap)
    • executeSql

      protected void executeSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, com.sqlapp.data.parameter.ParametersContext context, List<com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult> splitResults)
    • executeSql

      protected void executeSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, com.sqlapp.data.parameter.ParametersContext context, com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult splitResult)
    • getSqls

      protected List<com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult> getSqls(DbVersionFileHandler.SqlFile sqlFile)
    • preCheck

      protected boolean preCheck(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, Long id, com.sqlapp.data.schemas.Row row, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • startVersion

      protected boolean startVersion(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, Long seriesNumber, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • finalizeVersion

      protected void finalizeVersion(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, Long id, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • errorVersion

      protected void errorVersion(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, Long id, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • deleteVersion

      protected void deleteVersion(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, DbVersionHandler dbVersionHandler) throws SQLException
      例外:
      SQLException
    • deleteVersion

      protected void deleteVersion(com.sqlapp.data.schemas.Table table, long id) throws SQLException
      例外:
      SQLException
    • getName

      protected String getName(com.sqlapp.data.schemas.Table table)
    • getSqlDirectory

      public File getSqlDirectory()
      戻り値:
      the sqlDirectory
    • setSqlDirectory

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

      public void setSqlDirectory(String sqlDirectory)
      パラメータ:
      sqlDirectory - the sqlDirectory to set
    • getPreviousState

      public String getPreviousState()
      戻り値:
      the previousState
    • getPreviousTable

      public com.sqlapp.data.schemas.Table getPreviousTable()
      戻り値:
      the previousTable
    • getLastState

      public String getLastState()
      戻り値:
      the lastState
    • isWithSeriesNumber

      public boolean isWithSeriesNumber()
      戻り値:
      the withSeriesNumber
    • setWithSeriesNumber

      public void setWithSeriesNumber(boolean withSeriesNumber)
      パラメータ:
      withSeriesNumber - the withSeriesNumber to set
    • getTable

      public com.sqlapp.data.schemas.Table getTable()
      戻り値:
      the table
    • 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
    • isShowVersionOnly

      public boolean isShowVersionOnly()
      戻り値:
      the showVersionOnly
    • setShowVersionOnly

      public void setShowVersionOnly(boolean showVersionOnly)
      パラメータ:
      showVersionOnly - the showVersionOnly to set
    • getSchemaChangeLogTableName

      public String getSchemaChangeLogTableName()
      戻り値:
      the schemaChangeLogTableName
    • setSchemaChangeLogTableName

      public void setSchemaChangeLogTableName(String schemaChangeLogTableName)
      パラメータ:
      schemaChangeLogTableName - the schemaChangeLogTableName to set
    • getIdColumnName

      public String getIdColumnName()
      戻り値:
      the idColumnName
    • setIdColumnName

      public void setIdColumnName(String idColumnName)
      パラメータ:
      idColumnName - the idColumnName to set
    • getStatusColumnName

      public String getStatusColumnName()
      戻り値:
      the statusColumnName
    • setStatusColumnName

      public void setStatusColumnName(String statusColumnName)
      パラメータ:
      statusColumnName - the statusColumnName to set
    • getAppliedByColumnName

      public String getAppliedByColumnName()
      戻り値:
      the appliedByColumnName
    • setAppliedByColumnName

      public void setAppliedByColumnName(String appliedByColumnName)
      パラメータ:
      appliedByColumnName - the appliedByColumnName to set
    • getAppliedAtColumnName

      public String getAppliedAtColumnName()
      戻り値:
      the appliedAtColumnName
    • setAppliedAtColumnName

      public void setAppliedAtColumnName(String appliedAtColumnName)
      パラメータ:
      appliedAtColumnName - the appliedAtColumnName to set
    • getDescriptionColumnName

      public String getDescriptionColumnName()
      戻り値:
      the descriptionColumnName
    • setDescriptionColumnName

      public void setDescriptionColumnName(String descriptionColumnName)
      パラメータ:
      descriptionColumnName - the descriptionColumnName to set
    • getSeriesNumberColumnName

      public String getSeriesNumberColumnName()
      戻り値:
      the seriesNumberColumnName
    • setSeriesNumberColumnName

      public void setSeriesNumberColumnName(String seriesNumberColumnName)
      パラメータ:
      seriesNumberColumnName - the seriesNumberColumnName to set
    • getLastChangeToApply

      public Long getLastChangeToApply()
      戻り値:
      the lastChangeToApply
    • setLastChangeToApply

      public void setLastChangeToApply(Long lastChangeToApply)
      パラメータ:
      lastChangeToApply - the lastChangeToApply to set
    • getSetupSqlDirectory

      public File getSetupSqlDirectory()
      戻り値:
      the setupSqlDirectory
    • setSetupSqlDirectory

      public void setSetupSqlDirectory(File setupSqlDirectory)
      パラメータ:
      setupSqlDirectory - the setupSqlDirectory to set
    • getFinalizeSqlDirectory

      public File getFinalizeSqlDirectory()
      戻り値:
      the finalizeSqlDirectory
    • setFinalizeSqlDirectory

      public void setFinalizeSqlDirectory(File finalizeSqlDirectory)
      パラメータ:
      finalizeSqlDirectory - the finalizeSqlDirectory to set