public class MockChangeLogHistoryService extends Object implements ChangeLogHistoryService
| Modifier and Type | Field and Description |
|---|---|
List<RanChangeSet> |
ranChangeSets |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
MockChangeLogHistoryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllCheckSums() |
void |
destroy() |
void |
generateDeploymentId() |
String |
getDeploymentId() |
int |
getNextSequenceValue() |
int |
getPriority() |
RanChangeSet |
getRanChangeSet(ChangeSet changeSet) |
List<RanChangeSet> |
getRanChangeSets() |
Date |
getRanDate(ChangeSet changeSet)
Returns the date the given changeSet was ran.
|
ChangeSet.RunStatus |
getRunStatus(ChangeSet changeSet) |
void |
init()
Ensures the change log history container is correctly initialized for use.
|
void |
removeFromHistory(ChangeSet changeSet) |
void |
reset() |
void |
resetDeploymentId() |
void |
setDatabase(Database database) |
void |
setExecType(ChangeSet changeSet,
ChangeSet.ExecType execType) |
boolean |
supports(Database database) |
void |
tag(String tagString) |
boolean |
tagExists(String tag) |
void |
upgradeChecksums(DatabaseChangeLog databaseChangeLog,
Contexts contexts,
LabelExpression labels)
Upgrades any existing checksums with an out of date version
|
public List<RanChangeSet> ranChangeSets
public int getPriority()
getPriority in interface PrioritizedServicepublic boolean supports(Database database)
supports in interface ChangeLogHistoryServicepublic void setDatabase(Database database)
setDatabase in interface ChangeLogHistoryServicepublic void reset()
reset in interface ChangeLogHistoryServicepublic void init()
throws DatabaseException
ChangeLogHistoryServiceinit in interface ChangeLogHistoryServiceDatabaseExceptionpublic void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
ChangeLogHistoryServiceupgradeChecksums in interface ChangeLogHistoryServiceDatabaseExceptionpublic List<RanChangeSet> getRanChangeSets() throws DatabaseException
getRanChangeSets in interface ChangeLogHistoryServiceDatabaseExceptionpublic RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRanChangeSet in interface ChangeLogHistoryServiceDatabaseExceptionDatabaseHistoryExceptionpublic ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRunStatus in interface ChangeLogHistoryServiceDatabaseExceptionDatabaseHistoryExceptionpublic Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
ChangeLogHistoryServicegetRanDate in interface ChangeLogHistoryServiceDatabaseExceptionDatabaseHistoryExceptionpublic void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
setExecType in interface ChangeLogHistoryServiceDatabaseExceptionpublic void removeFromHistory(ChangeSet changeSet) throws DatabaseException
removeFromHistory in interface ChangeLogHistoryServiceDatabaseExceptionpublic int getNextSequenceValue()
throws LiquibaseException
getNextSequenceValue in interface ChangeLogHistoryServiceLiquibaseExceptionpublic void tag(String tagString) throws DatabaseException
tag in interface ChangeLogHistoryServiceDatabaseExceptionpublic boolean tagExists(String tag) throws DatabaseException
tagExists in interface ChangeLogHistoryServiceDatabaseExceptionpublic void clearAllCheckSums()
throws LiquibaseException
clearAllCheckSums in interface ChangeLogHistoryServiceLiquibaseExceptionpublic void destroy()
throws DatabaseException
destroy in interface ChangeLogHistoryServiceDatabaseExceptionpublic String getDeploymentId()
getDeploymentId in interface ChangeLogHistoryServicepublic void resetDeploymentId()
resetDeploymentId in interface ChangeLogHistoryServicepublic void generateDeploymentId()
generateDeploymentId in interface ChangeLogHistoryServiceCopyright © 2022 Liquibase.org. All rights reserved.