クラス VersionUpCommand
java.lang.Object
com.sqlapp.data.db.command.AbstractCommand
com.sqlapp.data.db.command.AbstractDataSourceCommand
com.sqlapp.data.db.command.AbstractSqlCommand
com.sqlapp.data.db.command.version.VersionUpCommand
- すべての実装されたインタフェース:
Placeholders,Runnable
- 直系の既知のサブクラス:
SeriesVersionDownCommand,VersionDownCommand,VersionInsertCommand,VersionMergeCommand,VersionRepairCommand
-
フィールドの概要
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected voidcheckTable(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, DbVersionHandler dbVersionHandler) protected voiddeleteVersion(com.sqlapp.data.schemas.Table table, long id) protected voiddeleteVersion(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, DbVersionHandler dbVersionHandler) protected voiddoRun()protected voiderrorVersion(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) protected voidexecuteChangeVersion(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) protected voidexecuteEmptyVersion(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) protected voidexecuteSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, com.sqlapp.data.parameter.ParametersContext context, com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult splitResult) protected voidexecuteSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, com.sqlapp.data.parameter.ParametersContext context, List<com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult> splitResults) protected voidexecuteSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, Long id, Map<Long, DbVersionFileHandler.SqlFile> sqlFileMap) protected voidfinalizeVersion(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) protected StringgetName(com.sqlapp.data.schemas.Table table) com.sqlapp.data.schemas.Tableprotected List<com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult>getSqls(DbVersionFileHandler.SqlFile sqlFile) com.sqlapp.data.schemas.TablegetTable()protected List<com.sqlapp.data.schemas.Row>getVersionRows(com.sqlapp.data.schemas.Table table, List<DbVersionFileHandler.SqlFile> sqlFiles, DbVersionHandler dbVersionHandler) booleanbooleanprotected com.sqlapp.data.db.command.version.VersionUpCommand.DialectTableHolderlogCurrentState(DbVersionHandler dbVersionHandler, DbVersionFileHandler dbVersionFileHandler, boolean target) protected StringoutputCurrent(com.sqlapp.data.schemas.Table table, DbVersionHandler dbVersionHandler) protected booleanpreCheck(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) voidsetAppliedAtColumnName(String appliedAtColumnName) voidsetAppliedByColumnName(String appliedByColumnName) voidsetDescriptionColumnName(String descriptionColumnName) voidsetDownSqlDirectory(File downSqlDirectory) voidsetDownSqlDirectory(String downSqlDirectory) voidsetFinalizeSqlDirectory(File finalizeSqlDirectory) voidsetIdColumnName(String idColumnName) voidsetLastChangeToApply(Long lastChangeToApply) voidsetSchemaChangeLogTableName(String schemaChangeLogTableName) voidsetSeriesNumberColumnName(String seriesNumberColumnName) voidsetSetupSqlDirectory(File setupSqlDirectory) voidsetShowVersionOnly(boolean showVersionOnly) voidsetSqlDirectory(File sqlDirectory) voidsetSqlDirectory(String sqlDirectory) voidsetStatusColumnName(String statusColumnName) voidsetWithSeriesNumber(boolean withSeriesNumber) protected booleanstartVersion(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) クラスから継承されたメソッド com.sqlapp.data.db.command.AbstractSqlCommand
getEncoding, getFileDirectory, getPlaceholderPrefix, getPlaceholderSuffix, getSqlConverter, initialize, isPlaceholders, rollback, setEncoding, setFileDirectory, setPlaceholderPrefix, setPlaceholders, setPlaceholderSuffixクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractDataSourceCommand
createOutputTextBuilder, getConnection, getConnectionHandler, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, newConverters, releaseConnection, setConnection, setConnectionHandler, setDataSource, setDialectクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractCommand
createJsonConverter, createYamlConverter, debug, debug, error, error, getConsoleOutputLevel, getContext, getConvertHandler, getErr, getExceptionHandler, info, info, initializeContext, run, setConsoleOutputLevel, setConvertHandler, setExceptionHandler
-
コンストラクタの詳細
-
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
- 例外:
SQLException
-
getName
-
getSqlDirectory
- 戻り値:
- the sqlDirectory
-
setSqlDirectory
- パラメータ:
sqlDirectory- the sqlDirectory to set
-
setSqlDirectory
- パラメータ:
sqlDirectory- the sqlDirectory to set
-
getPreviousState
- 戻り値:
- the previousState
-
getPreviousTable
public com.sqlapp.data.schemas.Table getPreviousTable()- 戻り値:
- the previousTable
-
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
- 戻り値:
- the downSqlDirectory
-
setDownSqlDirectory
- パラメータ:
downSqlDirectory- the downSqlDirectory to set
-
setDownSqlDirectory
- パラメータ:
downSqlDirectory- the downSqlDirectory to set
-
isShowVersionOnly
public boolean isShowVersionOnly()- 戻り値:
- the showVersionOnly
-
setShowVersionOnly
public void setShowVersionOnly(boolean showVersionOnly) - パラメータ:
showVersionOnly- the showVersionOnly to set
-
getSchemaChangeLogTableName
- 戻り値:
- the schemaChangeLogTableName
-
setSchemaChangeLogTableName
- パラメータ:
schemaChangeLogTableName- the schemaChangeLogTableName to set
-
getIdColumnName
- 戻り値:
- the idColumnName
-
setIdColumnName
- パラメータ:
idColumnName- the idColumnName to set
-
getStatusColumnName
- 戻り値:
- the statusColumnName
-
setStatusColumnName
- パラメータ:
statusColumnName- the statusColumnName to set
-
getAppliedByColumnName
- 戻り値:
- the appliedByColumnName
-
setAppliedByColumnName
- パラメータ:
appliedByColumnName- the appliedByColumnName to set
-
getAppliedAtColumnName
- 戻り値:
- the appliedAtColumnName
-
setAppliedAtColumnName
- パラメータ:
appliedAtColumnName- the appliedAtColumnName to set
-
getDescriptionColumnName
- 戻り値:
- the descriptionColumnName
-
setDescriptionColumnName
- パラメータ:
descriptionColumnName- the descriptionColumnName to set
-
getSeriesNumberColumnName
- 戻り値:
- the seriesNumberColumnName
-
setSeriesNumberColumnName
- パラメータ:
seriesNumberColumnName- the seriesNumberColumnName to set
-
getLastChangeToApply
- 戻り値:
- the lastChangeToApply
-
setLastChangeToApply
- パラメータ:
lastChangeToApply- the lastChangeToApply to set
-
getSetupSqlDirectory
- 戻り値:
- the setupSqlDirectory
-
setSetupSqlDirectory
- パラメータ:
setupSqlDirectory- the setupSqlDirectory to set
-
getFinalizeSqlDirectory
- 戻り値:
- the finalizeSqlDirectory
-
setFinalizeSqlDirectory
- パラメータ:
finalizeSqlDirectory- the finalizeSqlDirectory to set
-