Package liquibase.changelog
Interface ChangeLogHistoryService
-
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
AbstractChangeLogHistoryService,MockChangeLogHistoryService,OfflineChangeLogHistoryService,StandardChangeLogHistoryService
public interface ChangeLogHistoryService extends Plugin
-
-
Field Summary
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearAllCheckSums()voiddestroy()voidgenerateDeploymentId()StringgetDeploymentId()intgetNextSequenceValue()intgetPriority()RanChangeSetgetRanChangeSet(ChangeSet changeSet)List<RanChangeSet>getRanChangeSets()List<RanChangeSet>getRanChangeSets(boolean allowChecksumsUpgrade)DategetRanDate(ChangeSet changeSet)Returns the date the given changeSet was ran.ChangeSet.RunStatusgetRunStatus(ChangeSet changeSet)voidinit()Ensures the change log history container is correctly initialized for use.booleanisDatabaseChecksumsCompatible()voidremoveFromHistory(ChangeSet changeSet)voidreset()voidresetDeploymentId()voidsetDatabase(Database database)voidsetExecType(ChangeSet changeSet, ChangeSet.ExecType execType)booleansupports(Database database)voidtag(String tagString)booleantagExists(String tag)voidupgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels)Updates null checksum values
-
-
-
Method Detail
-
getPriority
int getPriority()
-
supports
boolean supports(Database database)
-
setDatabase
void setDatabase(Database database)
-
reset
void reset()
-
init
void init() throws DatabaseException
Ensures the change log history container is correctly initialized for use. This method may be called multiple times so it should check state as needed.- Throws:
DatabaseException
-
upgradeChecksums
void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException
Updates null checksum values- Throws:
DatabaseException
-
getRanChangeSets
List<RanChangeSet> getRanChangeSets() throws DatabaseException
- Throws:
DatabaseException
-
getRanChangeSets
List<RanChangeSet> getRanChangeSets(boolean allowChecksumsUpgrade) throws DatabaseException
- Throws:
DatabaseException
-
getRanChangeSet
RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
-
getRunStatus
ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
-
getRanDate
Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
Returns the date the given changeSet was ran. Returns null if changeSet was not null.
-
setExecType
void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
- Throws:
DatabaseException
-
removeFromHistory
void removeFromHistory(ChangeSet changeSet) throws DatabaseException
- Throws:
DatabaseException
-
getNextSequenceValue
int getNextSequenceValue() throws LiquibaseException- Throws:
LiquibaseException
-
tag
void tag(String tagString) throws DatabaseException
- Throws:
DatabaseException
-
tagExists
boolean tagExists(String tag) throws DatabaseException
- Throws:
DatabaseException
-
clearAllCheckSums
void clearAllCheckSums() throws LiquibaseException- Throws:
LiquibaseException
-
destroy
void destroy() throws DatabaseException- Throws:
DatabaseException
-
getDeploymentId
String getDeploymentId()
-
resetDeploymentId
void resetDeploymentId()
-
generateDeploymentId
void generateDeploymentId()
-
isDatabaseChecksumsCompatible
boolean isDatabaseChecksumsCompatible()
-
-