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() |
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.
|
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, setDatabaseprotected 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 ChangeLogHistoryServicereset in class AbstractChangeLogHistoryServicepublic boolean hasDatabaseChangeLogTable()
protected String getCharTypeName()
public void init()
throws DatabaseException
ChangeLogHistoryServiceDatabaseExceptionpublic 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 © 2019 Liquibase.org. All rights reserved.