当前位置: 首页>>代码示例>>Java>>正文


Java UpdateChangeSetChecksumStatement类代码示例

本文整理汇总了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();
}
 
开发者ID:eselyavka,项目名称:liquibase-impala,代码行数:8,代码来源:HiveStandardChangeLogHistoryService.java

示例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);
}
 
开发者ID:hongliangpan,项目名称:manydesigns.cn,代码行数:12,代码来源:UpdateChangeSetChecksumGenerator.java

示例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;
}
 
开发者ID:hongliangpan,项目名称:manydesigns.cn,代码行数:7,代码来源:UpdateChangeSetChecksumGenerator.java

示例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


注:本文中的liquibase.statement.core.UpdateChangeSetChecksumStatement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。