public class StandardChangeLogHistoryService extends AbstractChangeLogHistoryService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
StandardChangeLogHistoryService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateChangeLogTable() |
void |
clearAllCheckSums() |
void |
destroy() |
protected String |
getCharTypeName() |
protected String |
getContextsSize() |
String |
getDatabaseChangeLogTableName() |
protected String |
getLabelsSize() |
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.
|
List<Map<String,?>> |
queryDatabaseChangeLogTable(Database database) |
void |
removeFromHistory(ChangeSet changeSet) |
protected void |
replaceChecksum(ChangeSet changeSet) |
void |
reset() |
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,
LabelExpression labels)
Upgrades any existing checksums with an out of date version
|
generateDeploymentId, getDatabase, getDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabasepublic int getPriority()
public boolean supports(Database database)
public String getDatabaseChangeLogTableName()
public String getLiquibaseSchemaName()
public String getLiquibaseCatalogName()
public boolean canCreateChangeLogTable()
throws DatabaseException
DatabaseExceptionpublic void reset()
reset in interface ChangeLogHistoryServicereset in class AbstractChangeLogHistoryServicepublic boolean hasDatabaseChangeLogTable()
throws DatabaseException
DatabaseExceptionprotected String getCharTypeName()
public void init()
throws DatabaseException
ChangeLogHistoryServiceDatabaseExceptionprotected String getLabelsSize()
protected String getContextsSize()
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
ChangeLogHistoryServiceupgradeChecksums in interface ChangeLogHistoryServiceupgradeChecksums in class AbstractChangeLogHistoryServiceDatabaseExceptionpublic List<RanChangeSet> getRanChangeSets() throws DatabaseException
DatabaseExceptionpublic List<Map<String,?>> queryDatabaseChangeLogTable(Database database) throws DatabaseException
DatabaseExceptionprotected void replaceChecksum(ChangeSet changeSet) throws DatabaseException
replaceChecksum in class AbstractChangeLogHistoryServiceDatabaseExceptionpublic RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRanChangeSet in interface ChangeLogHistoryServicegetRanChangeSet in class AbstractChangeLogHistoryServiceDatabaseExceptionDatabaseHistoryExceptionpublic void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
DatabaseExceptionpublic void removeFromHistory(ChangeSet changeSet) throws DatabaseException
DatabaseExceptionpublic int getNextSequenceValue()
throws LiquibaseException
LiquibaseExceptionpublic void tag(String tagString) throws DatabaseException
DatabaseExceptionpublic boolean tagExists(String tag) throws DatabaseException
DatabaseExceptionpublic void clearAllCheckSums()
throws LiquibaseException
LiquibaseExceptionpublic void destroy()
throws DatabaseException
DatabaseExceptionCopyright © 2018 Liquibase.org. All rights reserved.