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 PrioritizedService
public boolean supports(Database database)
supports
in interface ChangeLogHistoryService
public void setDatabase(Database database)
setDatabase
in interface ChangeLogHistoryService
public void reset()
reset
in interface ChangeLogHistoryService
public void init() throws DatabaseException
ChangeLogHistoryService
init
in interface ChangeLogHistoryService
DatabaseException
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
ChangeLogHistoryService
upgradeChecksums
in interface ChangeLogHistoryService
DatabaseException
public List<RanChangeSet> getRanChangeSets() throws DatabaseException
getRanChangeSets
in interface ChangeLogHistoryService
DatabaseException
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRanChangeSet
in interface ChangeLogHistoryService
DatabaseException
DatabaseHistoryException
public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
getRunStatus
in interface ChangeLogHistoryService
DatabaseException
DatabaseHistoryException
public Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
ChangeLogHistoryService
getRanDate
in interface ChangeLogHistoryService
DatabaseException
DatabaseHistoryException
public void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
setExecType
in interface ChangeLogHistoryService
DatabaseException
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException
removeFromHistory
in interface ChangeLogHistoryService
DatabaseException
public int getNextSequenceValue() throws LiquibaseException
getNextSequenceValue
in interface ChangeLogHistoryService
LiquibaseException
public void tag(String tagString) throws DatabaseException
tag
in interface ChangeLogHistoryService
DatabaseException
public boolean tagExists(String tag) throws DatabaseException
tagExists
in interface ChangeLogHistoryService
DatabaseException
public void clearAllCheckSums() throws LiquibaseException
clearAllCheckSums
in interface ChangeLogHistoryService
LiquibaseException
public void destroy() throws DatabaseException
destroy
in interface ChangeLogHistoryService
DatabaseException
public String getDeploymentId()
getDeploymentId
in interface ChangeLogHistoryService
public void resetDeploymentId()
resetDeploymentId
in interface ChangeLogHistoryService
public void generateDeploymentId()
generateDeploymentId
in interface ChangeLogHistoryService
Copyright © 2023 Liquibase.org. All rights reserved.