Package liquibase.changelog
Class StandardChangeLogHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.changelog.StandardChangeLogHistoryService
- 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
destroy()
protected String
protected String
protected String
int
int
getRanChangeSet
(ChangeSet changeSet) Returns the ChangeSets that have been run against the current getDatabase().boolean
void
init()
Ensures the change log history container is correctly initialized for use.boolean
This method should return true if all checksums in dbcl table have the same version as {@link liquibase.ChecksumVersion#latest().getVersion()}.queryDatabaseChangeLogTable
(Database database) void
removeFromHistory
(ChangeSet changeSet) void
reset()
void
setExecType
(ChangeSet changeSet, ChangeSet.ExecType execType) boolean
void
Tags the database changelog with the given string.boolean
void
upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) Updates null checksum valuesMethods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDeploymentId, getLastDeploymentId, getRanDate, getRunStatus, replaceChecksum, resetDeploymentId, setDatabase
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
reset
in interfaceChangeLogHistoryService
- Overrides:
reset
in classAbstractChangeLogHistoryService
-
hasDatabaseChangeLogTable
public boolean hasDatabaseChangeLogTable() -
getCharTypeName
-
init
Description copied from interface:ChangeLogHistoryService
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
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException Description copied from interface:ChangeLogHistoryService
Updates null checksum values- Specified by:
upgradeChecksums
in interfaceChangeLogHistoryService
- Overrides:
upgradeChecksums
in classAbstractChangeLogHistoryService
- Throws:
DatabaseException
-
getRanChangeSets
Returns the ChangeSets that have been run against the current getDatabase().- Throws:
DatabaseException
-
queryDatabaseChangeLogTable
- Throws:
DatabaseException
-
getRanChangeSet
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
getRanChangeSet
in interfaceChangeLogHistoryService
- Overrides:
getRanChangeSet
in classAbstractChangeLogHistoryService
- Throws:
DatabaseException
DatabaseHistoryException
-
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:ChangeLogHistoryService
This 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.
-