クラス 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
- すべての実装されたインタフェース:
ConsoleOutputLevelProperty,ConvertersProperty,DataSourceProperty,EncodingProperty,FileDirectoryProperty,PlaceholderProperty,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(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, com.sqlapp.data.schemas.Row row, DbVersionHandler dbVersionHandler) protected voiddeleteVersion(Connection connection, com.sqlapp.data.schemas.Table table, long id) 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(Connection connection, 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) protected List<com.sqlapp.data.db.dialect.util.SqlSplitter.SplitResult>getSqls(DbVersionFileHandler.SqlFile sqlFile) protected List<com.sqlapp.data.schemas.Row>getVersionRows(com.sqlapp.data.schemas.Table table, List<DbVersionFileHandler.SqlFile> sqlFiles, DbVersionHandler dbVersionHandler) protected com.sqlapp.data.db.command.version.VersionUpCommand.DialectTableHolderlogCurrentState(Connection connection, 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) 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
getSqlConverter, initializeクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractDataSourceCommand
commit, createOutputTextBuilder, execute, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, isCloseDataSource, newConverters, rollback, setCloseDataSource, setCommitHandler, setDataSource, setLastCommitHandler, setReleaseConnectionAndCloseDataSourceHandler, setReleaseConnectionHandler, setRollbackHandlerクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractCommand
debug, debug, error, error, execute, getErr, getExceptionHandler, info, info, initializeContext, runクラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.ConsoleOutputLevelProperty
getConsoleOutputLevel, setConsoleOutputLevel, setConsoleOutputLevelインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.ConvertersProperty
getConverters, setConvertersインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.EncodingProperty
getEncoding, setEncodingインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.FileDirectoryProperty
getFileDirectory, setFileDirectoryインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.PlaceholderProperty
getPlaceholderPrefix, getPlaceholderSuffix, isPlaceholders, setPlaceholderPrefix, setPlaceholders, setPlaceholderSuffix
-
コンストラクタの詳細
-
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(Connection connection, DbVersionHandler dbVersionHandler, DbVersionFileHandler dbVersionFileHandler, boolean target) throws SQLException - 例外:
SQLException
-
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(Connection connection, 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) throws SQLException - 例外:
SQLException
-
executeSql
protected void executeSql(Connection connection, com.sqlapp.jdbc.sql.SqlConverter sqlConverter, Long id, Map<Long, DbVersionFileHandler.SqlFile> sqlFileMap) throws SQLException- 例外:
SQLException
-
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) throws SQLException - 例外:
SQLException
-
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) throws SQLException - 例外:
SQLException
-
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(Connection connection, com.sqlapp.data.schemas.Table table, long id) throws SQLException - 例外:
SQLException
-
getName
-