Package liquibase.changelog
Class AbstractChangeLogHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
- All Implemented Interfaces:
ChangeLogHistoryService,Plugin
- Direct Known Subclasses:
OfflineChangeLogHistoryService,StandardChangeLogHistoryService
public abstract class AbstractChangeLogHistoryService
extends Object
implements ChangeLogHistoryService
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.This is now handled automatically by the root scopeDeprecated.Returns the deployment ID of the last changeset that has been run, ornullif no changesets have been run yet.getRanChangeSet(ChangeSet changeSet) getRanDate(ChangeSet changeSet) Returns the date the given changeSet was run.getRunStatus(ChangeSet changeSet) 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.voidreplaceFilePath(ChangeSet changeSet, String oldPath) By default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support eventual minor file path fixes.voidreset()voidDeprecated.This is now handled automatically by the root scopevoidsetDatabase(Database database) voidupgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) Updates null checksum valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.changelog.ChangeLogHistoryService
clearAllCheckSums, destroy, getNextSequenceValue, getPriority, getRanChangeSets, getRanChangeSets, init, isDatabaseChecksumsCompatible, removeFromHistory, setExecType, supports, tag, tagExists
-
Constructor Details
-
AbstractChangeLogHistoryService
public AbstractChangeLogHistoryService()
-
-
Method Details
-
setDatabase
- Specified by:
setDatabasein interfaceChangeLogHistoryService
-
reset
public void reset()- Specified by:
resetin interfaceChangeLogHistoryService
-
getRunStatus
public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
getRunStatusin interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
upgradeChecksums
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException Description copied from interface:ChangeLogHistoryServiceUpdates null checksum values- Specified by:
upgradeChecksumsin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getRanChangeSet
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
getRanChangeSetin interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
getRanDate
Description copied from interface:ChangeLogHistoryServiceReturns the date the given changeSet was run. Returns null if changeSet was not null.- Specified by:
getRanDatein interfaceChangeLogHistoryService- Throws:
DatabaseExceptionDatabaseHistoryException
-
getLastDeploymentId
Returns the deployment ID of the last changeset that has been run, ornullif no changesets have been run yet.- Returns:
- the deployment ID of the last changeset that has been run, or null if no changesets have been run yet.
- Throws:
DatabaseException- if there is an error accessing the database
-
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- Throws:
DatabaseException
-
replaceFilePath
Description copied from interface:ChangeLogHistoryServiceBy default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support eventual minor file path fixes.- Specified by:
replaceFilePathin interfaceChangeLogHistoryService- Throws:
DatabaseException
-
getDeploymentId
Deprecated.- Specified by:
getDeploymentIdin interfaceChangeLogHistoryService
-
resetDeploymentId
Deprecated.This is now handled automatically by the root scope- Specified by:
resetDeploymentIdin interfaceChangeLogHistoryService
-
generateDeploymentId
Deprecated.This is now handled automatically by the root scope- Specified by:
generateDeploymentIdin interfaceChangeLogHistoryService
-