本文整理汇总了Java中liquibase.statement.core.UpdateChangeSetChecksumStatement类的典型用法代码示例。如果您正苦于以下问题:Java UpdateChangeSetChecksumStatement类的具体用法?Java UpdateChangeSetChecksumStatement怎么用?Java UpdateChangeSetChecksumStatement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UpdateChangeSetChecksumStatement类属于liquibase.statement.core包,在下文中一共展示了UpdateChangeSetChecksumStatement类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: replaceChecksum
import liquibase.statement.core.UpdateChangeSetChecksumStatement; //导入依赖的package包/类
@Override
protected void replaceChecksum(ChangeSet changeSet) throws DatabaseException {
ExecutorService.getInstance().getExecutor(getDatabase()).execute(new UpdateChangeSetChecksumStatement(changeSet));
getDatabase().commit();
reset();
}
示例2: generateSql
import liquibase.statement.core.UpdateChangeSetChecksumStatement; //导入依赖的package包/类
public Sql[] generateSql(UpdateChangeSetChecksumStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ChangeSet changeSet = statement.getChangeSet();
SqlStatement runStatement = null;
runStatement = new UpdateStatement(database.getLiquibaseSchemaName(), database.getDatabaseChangeLogTableName())
.addNewColumnValue("MD5SUM", changeSet.generateCheckSum().toString())
.setWhereClause("ID=? AND AUTHOR=? AND FILENAME=?")
.addWhereParameters(changeSet.getId(), changeSet.getAuthor(), changeSet.getFilePath());
return SqlGeneratorFactory.getInstance().generateSql(runStatement, database);
}
示例3: validate
import liquibase.statement.core.UpdateChangeSetChecksumStatement; //导入依赖的package包/类
public ValidationErrors validate(UpdateChangeSetChecksumStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
ValidationErrors validationErrors = new ValidationErrors();
validationErrors.checkRequiredField("changeSet", statement.getChangeSet());
return validationErrors;
}
示例4: supports
import liquibase.statement.core.UpdateChangeSetChecksumStatement; //导入依赖的package包/类
@Override
public boolean supports(UpdateChangeSetChecksumStatement statement, Database database) {
return Config.getInstance().isEnabled();
}
开发者ID:liquibase,项目名称:liquibase-nochangelogupdate,代码行数:5,代码来源:NoOpUpdateChangeSetChecksumGenerator.java
示例5: generateSql
import liquibase.statement.core.UpdateChangeSetChecksumStatement; //导入依赖的package包/类
@Override
public Sql[] generateSql(UpdateChangeSetChecksumStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain) {
return null;
}
开发者ID:liquibase,项目名称:liquibase-nochangelogupdate,代码行数:5,代码来源:NoOpUpdateChangeSetChecksumGenerator.java