Package liquibase.changelog
Class MockChangeLogHistoryService
- java.lang.Object
-
- liquibase.changelog.MockChangeLogHistoryService
-
- All Implemented Interfaces:
ChangeLogHistoryService,Plugin
public class MockChangeLogHistoryService extends Object implements ChangeLogHistoryService
-
-
Field Summary
Fields Modifier and Type Field Description List<RanChangeSet>ranChangeSets-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Constructor Summary
Constructors Constructor Description MockChangeLogHistoryService()
-
Method Summary
-
-
-
Field Detail
-
ranChangeSets
public List<RanChangeSet> ranChangeSets
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceChangeLogHistoryService
-
supports
public boolean supports(Database database)
- Specified by:
supportsin interfaceChangeLogHistoryService
-
setDatabase
public void setDatabase(Database database)
- Specified by:
setDatabasein interfaceChangeLogHistoryService
-
reset
public void reset()
- Specified by:
resetin interfaceChangeLogHistoryService
-
init
public void init() throws DatabaseExceptionDescription copied from interface:ChangeLogHistoryServiceEnsures the change log history container is correctly initialized for use. This method may be called multiple times so it should check state as needed.- Specified by:
initin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
upgradeChecksums
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
Description copied from interface:ChangeLogHistoryServiceUpdates null checksum values- Specified by:
upgradeChecksumsin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSets
public List<RanChangeSet> getRanChangeSets() throws DatabaseException
- Specified by:
getRanChangeSetsin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSets
public List<RanChangeSet> getRanChangeSets(boolean a) throws DatabaseException
- Specified by:
getRanChangeSetsin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSet
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
- Specified by:
getRanChangeSetin interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
getRunStatus
public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
- Specified by:
getRunStatusin interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
getRanDate
public Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
Description copied from interface:ChangeLogHistoryServiceReturns the date the given changeSet was ran. Returns null if changeSet was not null.- Specified by:
getRanDatein interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
setExecType
public void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
- Specified by:
setExecTypein interfaceChangeLogHistoryService- Throws:
DatabaseException
-
removeFromHistory
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException
- Specified by:
removeFromHistoryin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getNextSequenceValue
public int getNextSequenceValue() throws LiquibaseException- Specified by:
getNextSequenceValuein interfaceChangeLogHistoryService- Throws:
LiquibaseException
-
tag
public void tag(String tagString) throws DatabaseException
- Specified by:
tagin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
tagExists
public boolean tagExists(String tag) throws DatabaseException
- Specified by:
tagExistsin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
clearAllCheckSums
public void clearAllCheckSums() throws LiquibaseException- Specified by:
clearAllCheckSumsin interfaceChangeLogHistoryService- Throws:
LiquibaseException
-
destroy
public void destroy() throws DatabaseException- Specified by:
destroyin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getDeploymentId
public String getDeploymentId()
- Specified by:
getDeploymentIdin interfaceChangeLogHistoryService
-
resetDeploymentId
public void resetDeploymentId()
- Specified by:
resetDeploymentIdin interfaceChangeLogHistoryService
-
generateDeploymentId
public void generateDeploymentId()
- Specified by:
generateDeploymentIdin interfaceChangeLogHistoryService
-
isDatabaseChecksumsCompatible
public boolean isDatabaseChecksumsCompatible()
- Specified by:
isDatabaseChecksumsCompatiblein interfaceChangeLogHistoryService
-
-