Package liquibase.changelog
Class OfflineChangeLogHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.changelog.OfflineChangeLogHistoryService
- All Implemented Interfaces:
ChangeLogHistoryService,Plugin
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
ConstructorsConstructorDescriptionOfflineChangeLogHistoryService(Database database, File changeLogFile, boolean executeDmlAgainstDatabase, boolean executeDdlAgainstDatabase) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendChangeSet(ChangeSet changeSet, ChangeSet.ExecType execType) voidvoiddestroy()intintvoidinit()Ensures the change log history container is correctly initialized for use.booleanThis method should return true if all checksums in dbcl table have the same version as {@link liquibase.ChecksumVersion#latest().getVersion()}.booleanbooleanvoidremoveFromHistory(ChangeSet changeSet) protected voidreplaceChangeSet(ChangeSet changeSet, liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic) voidreplaceChecksum(ChangeSet changeSet) By default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support checksum upgrades.voidreset()voidsetExecType(ChangeSet changeSet, ChangeSet.ExecType execType) voidsetExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase) voidsetExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase) booleanvoidbooleanprotected voidwriteHeader(File file) Methods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDeploymentId, getLastDeploymentId, getRanChangeSet, getRanDate, getRunStatus, replaceFilePath, resetDeploymentId, setDatabase, upgradeChecksumsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.changelog.ChangeLogHistoryService
getRanChangeSets
-
Constructor Details
-
OfflineChangeLogHistoryService
-
-
Method Details
-
getPriority
public int getPriority() -
supports
-
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
Description 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
- Throws:
IOException
-
replaceChecksum
Description copied from interface:ChangeLogHistoryServiceBy default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support checksum upgrades.- Specified by:
replaceChecksumin interfaceChangeLogHistoryService- Overrides:
replaceChecksumin classAbstractChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSets
- 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
- Throws:
DatabaseException
-
removeFromHistory
- Throws:
DatabaseException
-
getNextSequenceValue
- Throws:
LiquibaseException
-
tag
- Throws:
DatabaseException
-
tagExists
- Throws:
DatabaseException
-
clearAllCheckSums
- Throws:
LiquibaseException
-
destroy
- Throws:
DatabaseException
-
isDatabaseChecksumsCompatible
public boolean isDatabaseChecksumsCompatible()Description copied from interface:ChangeLogHistoryServiceThis method should return true if all checksums in dbcl table have the same version as {@link liquibase.ChecksumVersion#latest().getVersion()}. This method is used by Update command family in order to know if there are old checksum versions in the database that should be updated or if it can proceed with fast checksum update process. IF your implementation does not validate dbcl table then return false.- Returns:
- false if we have checksums different from {@link liquibase.ChecksumVersion#latest().getVersion()} in the dbcl table.
-