Package liquibase.changelog
Class StandardChangeLogHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.changelog.StandardChangeLogHistoryService
- All Implemented Interfaces:
ChangeLogHistoryService,Plugin
-
Field Summary
FieldsFields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidstatic DateconvertDate(Object tmpDateExecuted) voiddestroy()protected Stringprotected Stringprotected StringintintgetRanChangeSet(ChangeSet changeSet) Returns the ChangeSets that have been run against the current getDatabase().booleanvoidinit()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()}.queryDatabaseChangeLogTable(Database database) voidremoveFromHistory(ChangeSet changeSet) voidreset()voidsetExecType(ChangeSet changeSet, ChangeSet.ExecType execType) booleanvoidTags the database changelog with the given string.booleanvoidupgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) Updates null checksum valuesMethods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDeploymentId, getLastDeploymentId, getRanDate, getRunStatus, replaceChecksum, replaceFilePath, resetDeploymentId, setDatabaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.changelog.ChangeLogHistoryService
getRanChangeSets
-
Field Details
-
LABELS_SIZE
- See Also:
-
CONTEXTS_SIZE
- See Also:
-
-
Constructor Details
-
StandardChangeLogHistoryService
public StandardChangeLogHistoryService()
-
-
Method Details
-
getPriority
public int getPriority() -
supports
-
getDatabaseChangeLogTableName
-
getLiquibaseSchemaName
-
getLiquibaseCatalogName
-
canCreateChangeLogTable
public boolean canCreateChangeLogTable() -
reset
public void reset()- Specified by:
resetin interfaceChangeLogHistoryService- Overrides:
resetin classAbstractChangeLogHistoryService
-
hasDatabaseChangeLogTable
public boolean hasDatabaseChangeLogTable() -
getCharTypeName
-
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
-
upgradeChecksums
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException Description copied from interface:ChangeLogHistoryServiceUpdates null checksum values- Specified by:
upgradeChecksumsin interfaceChangeLogHistoryService- Overrides:
upgradeChecksumsin classAbstractChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSets
Returns the ChangeSets that have been run against the current getDatabase().- Throws:
DatabaseException
-
convertDate
-
queryDatabaseChangeLogTable
- Throws:
DatabaseException
-
getRanChangeSet
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
getRanChangeSetin interfaceChangeLogHistoryService- Overrides:
getRanChangeSetin classAbstractChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
setExecType
- Throws:
DatabaseException
-
removeFromHistory
- Throws:
DatabaseException
-
getNextSequenceValue
- Throws:
LiquibaseException
-
tag
Tags the database changelog with the given string.- Throws:
DatabaseException
-
tagExists
- Throws:
DatabaseException
-
clearAllCheckSums
- Throws:
LiquibaseException
-
destroy
- Throws:
DatabaseException
-
getLabelsSize
-
getContextsSize
-
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.
-