public class StandardChangeLogHistoryService extends AbstractChangeLogHistoryService
PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
StandardChangeLogHistoryService() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateChangeLogTable() |
void |
clearAllCheckSums() |
void |
destroy() |
String |
getDatabaseChangeLogTableName() |
String |
getLiquibaseCatalogName() |
String |
getLiquibaseSchemaName() |
int |
getNextSequenceValue() |
int |
getPriority() |
RanChangeSet |
getRanChangeSet(ChangeSet changeSet) |
List<RanChangeSet> |
getRanChangeSets()
Returns the ChangeSets that have been run against the current getDatabase().
|
boolean |
hasDatabaseChangeLogTable() |
void |
init()
Ensures the change log history container is correctly initialized for use.
|
void |
removeFromHistory(ChangeSet changeSet) |
protected void |
replaceChecksum(ChangeSet changeSet) |
void |
setExecType(ChangeSet changeSet,
ChangeSet.ExecType execType) |
boolean |
supports(Database database) |
void |
tag(String tagString)
Tags the database changelog with the given string.
|
boolean |
tagExists(String tag) |
void |
upgradeChecksums(DatabaseChangeLog databaseChangeLog,
Contexts contexts)
Upgrades any existing checksums with an out of date version
|
getDatabase, getRanDate, getRunStatus, reset, setDatabase
public int getPriority()
public boolean supports(Database database)
public String getDatabaseChangeLogTableName()
public String getLiquibaseSchemaName()
public String getLiquibaseCatalogName()
public boolean canCreateChangeLogTable() throws DatabaseException
DatabaseException
public boolean hasDatabaseChangeLogTable() throws DatabaseException
DatabaseException
public void init() throws DatabaseException
ChangeLogHistoryService
DatabaseException
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts) throws DatabaseException
ChangeLogHistoryService
upgradeChecksums
in interface ChangeLogHistoryService
upgradeChecksums
in class AbstractChangeLogHistoryService
DatabaseException
public List<RanChangeSet> getRanChangeSets() throws DatabaseException
DatabaseException
protected void replaceChecksum(ChangeSet changeSet) throws DatabaseException
replaceChecksum
in class AbstractChangeLogHistoryService
DatabaseException
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRanChangeSet
in interface ChangeLogHistoryService
getRanChangeSet
in class AbstractChangeLogHistoryService
DatabaseException
DatabaseHistoryException
public void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
DatabaseException
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException
DatabaseException
public int getNextSequenceValue() throws LiquibaseException
LiquibaseException
public void tag(String tagString) throws DatabaseException
DatabaseException
public boolean tagExists(String tag) throws DatabaseException
DatabaseException
public void clearAllCheckSums() throws LiquibaseException
LiquibaseException
public void destroy() throws DatabaseException
DatabaseException
Copyright © 2017 Liquibase.org. All rights reserved.