public class StandardChangeLogHistoryService extends AbstractChangeLogHistoryService
Modifier and Type | Field and Description |
---|---|
protected static String |
CONTEXTS_SIZE |
protected static String |
LABELS_SIZE |
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, getLastDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabase
protected static final String LABELS_SIZE
protected static final String CONTEXTS_SIZE
public int getPriority()
public boolean supports(Database database)
public String getDatabaseChangeLogTableName()
public String getLiquibaseSchemaName()
public String getLiquibaseCatalogName()
public boolean canCreateChangeLogTable()
public void reset()
reset
in interface ChangeLogHistoryService
reset
in class AbstractChangeLogHistoryService
public boolean hasDatabaseChangeLogTable()
protected String getCharTypeName()
public void init() throws DatabaseException
ChangeLogHistoryService
DatabaseException
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
ChangeLogHistoryService
upgradeChecksums
in interface ChangeLogHistoryService
upgradeChecksums
in class AbstractChangeLogHistoryService
DatabaseException
public List<RanChangeSet> getRanChangeSets() throws DatabaseException
DatabaseException
public List<Map<String,?>> queryDatabaseChangeLogTable(Database database) 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
protected String getLabelsSize()
protected String getContextsSize()
Copyright © 2023 Liquibase.org. All rights reserved.