Package liquibase.changelog
Class OfflineChangeLogHistoryService
- java.lang.Object
-
- liquibase.changelog.AbstractChangeLogHistoryService
-
- liquibase.changelog.OfflineChangeLogHistoryService
-
- All Implemented Interfaces:
ChangeLogHistoryService,Plugin
public class OfflineChangeLogHistoryService extends AbstractChangeLogHistoryService
-
-
Field Summary
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Constructor Summary
Constructors Constructor Description OfflineChangeLogHistoryService(Database database, File changeLogFile, boolean executeDmlAgainstDatabase, boolean executeDdlAgainstDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendChangeSet(ChangeSet changeSet, ChangeSet.ExecType execType)voidclearAllCheckSums()voiddestroy()intgetNextSequenceValue()intgetPriority()List<RanChangeSet>getRanChangeSets()List<RanChangeSet>getRanChangeSets(boolean allowUpgrade)voidinit()Ensures the change log history container is correctly initialized for use.booleanisDatabaseChecksumsCompatible()booleanisExecuteDdlAgainstDatabase()booleanisExecuteDmlAgainstDatabase()voidremoveFromHistory(ChangeSet changeSet)protected voidreplaceChangeSet(ChangeSet changeSet, liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic)protected voidreplaceChecksum(ChangeSet changeSet)voidreset()voidsetExecType(ChangeSet changeSet, ChangeSet.ExecType execType)voidsetExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)voidsetExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)booleansupports(Database database)voidtag(String tagString)booleantagExists(String tag)protected voidwriteHeader(File file)-
Methods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDatabase, getDeploymentId, getLastDeploymentId, getRanChangeSet, getRanDate, getRunStatus, resetDeploymentId, setDatabase, upgradeChecksums
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
-
supports
public boolean supports(Database database)
-
isExecuteDmlAgainstDatabase
public boolean isExecuteDmlAgainstDatabase()
-
setExecuteDmlAgainstDatabase
public void setExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)
-
isExecuteDdlAgainstDatabase
public boolean isExecuteDdlAgainstDatabase()
-
setExecuteDdlAgainstDatabase
public void setExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)
-
reset
public void reset()
- Specified by:
resetin interfaceChangeLogHistoryService- Overrides:
resetin classAbstractChangeLogHistoryService
-
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.- Throws:
DatabaseException
-
writeHeader
protected void writeHeader(File file) throws IOException
- Throws:
IOException
-
replaceChecksum
protected void replaceChecksum(ChangeSet changeSet) throws DatabaseException
- Specified by:
replaceChecksumin classAbstractChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSets
public List<RanChangeSet> getRanChangeSets() throws DatabaseException
- Throws:
DatabaseException
-
getRanChangeSets
public List<RanChangeSet> getRanChangeSets(boolean allowUpgrade) throws DatabaseException
- Throws:
DatabaseException
-
replaceChangeSet
protected void replaceChangeSet(ChangeSet changeSet, liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic) throws DatabaseException
- Throws:
DatabaseException
-
appendChangeSet
protected void appendChangeSet(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
- Throws:
DatabaseException
-
setExecType
public void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
- Throws:
DatabaseException
-
removeFromHistory
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException
- Throws:
DatabaseException
-
getNextSequenceValue
public int getNextSequenceValue() throws LiquibaseException- Throws:
LiquibaseException
-
tag
public void tag(String tagString) throws DatabaseException
- Throws:
DatabaseException
-
tagExists
public boolean tagExists(String tag) throws DatabaseException
- Throws:
DatabaseException
-
clearAllCheckSums
public void clearAllCheckSums() throws LiquibaseException- Throws:
LiquibaseException
-
destroy
public void destroy() throws DatabaseException- Throws:
DatabaseException
-
isDatabaseChecksumsCompatible
public boolean isDatabaseChecksumsCompatible()
-
-