本文整理汇总了Java中liquibase.changelog.DatabaseChangeLog.setChangeLogParameters方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseChangeLog.setChangeLogParameters方法的具体用法?Java DatabaseChangeLog.setChangeLogParameters怎么用?Java DatabaseChangeLog.setChangeLogParameters使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类liquibase.changelog.DatabaseChangeLog
的用法示例。
在下文中一共展示了DatabaseChangeLog.setChangeLogParameters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDatabaseChangeLog
import liquibase.changelog.DatabaseChangeLog; //导入方法依赖的package包/类
protected DatabaseChangeLog createDatabaseChangeLog(Database database, ResourceAccessor resourceAccessor) {
DatabaseChangeLog changeLog = new DatabaseChangeLog();
changeLog.setChangeLogParameters(new ChangeLogParameters(database));
changeLogs.forEach(cl -> {
try {
LOGGER.info("Including change log: '{}'", cl.getResourceId());
changeLog.include(cl.getResourceId(), false, resourceAccessor, new ContextExpression());
} catch (LiquibaseException e) {
throw new RuntimeException("Error configuring Liquibase", e);
}
});
return changeLog;
}
示例2: XMLChangeLogSAXHandler
import liquibase.changelog.DatabaseChangeLog; //导入方法依赖的package包/类
protected XMLChangeLogSAXHandler(String physicalChangeLogLocation,
ResourceAccessor resourceAccessor,
ChangeLogParameters changeLogParameters) {
log = LogFactory.getLogger();
this.resourceAccessor = resourceAccessor;
databaseChangeLog = new DatabaseChangeLog();
databaseChangeLog.setPhysicalFilePath(physicalChangeLogLocation);
databaseChangeLog.setChangeLogParameters(changeLogParameters);
this.changeLogParameters = changeLogParameters;
}