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 SummaryFields inherited from interface liquibase.plugin.PluginPRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.changelog.ChangeLogHistoryServiceclearAllCheckSums, destroy, getNextSequenceValue, getPriority, getRanChangeSets, getRanChangeSets, init, isDatabaseChecksumsCompatible, removeFromHistory, setExecType, supports, tag, tagExists
- 
Constructor Details- 
AbstractChangeLogHistoryServicepublic AbstractChangeLogHistoryService()
 
- 
- 
Method Details- 
setDatabase- Specified by:
- setDatabasein interface- ChangeLogHistoryService
 
- 
resetpublic void reset()- Specified by:
- resetin interface- ChangeLogHistoryService
 
- 
getRunStatuspublic ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
- getRunStatusin interface- ChangeLogHistoryService
- Throws:
- DatabaseException
- DatabaseHistoryException
 
- 
upgradeChecksumspublic void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException Description copied from interface:ChangeLogHistoryServiceUpdates null checksum values- Specified by:
- upgradeChecksumsin interface- ChangeLogHistoryService
- Throws:
- DatabaseException
 
- 
getRanChangeSetpublic RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException - Specified by:
- getRanChangeSetin interface- ChangeLogHistoryService
- Throws:
- DatabaseException
- DatabaseHistoryException
 
- 
getRanDateDescription copied from interface:ChangeLogHistoryServiceReturns the date the given changeSet was run. Returns null if changeSet was not null.- Specified by:
- getRanDatein interface- ChangeLogHistoryService
- Throws:
- DatabaseException
- DatabaseHistoryException
 
- 
getLastDeploymentIdReturns 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
 
- 
replaceChecksumDescription 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 interface- ChangeLogHistoryService
- Throws:
- DatabaseException
 
- 
replaceFilePathDescription 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 interface- ChangeLogHistoryService
- Throws:
- DatabaseException
 
- 
getDeploymentIdDeprecated.- Specified by:
- getDeploymentIdin interface- ChangeLogHistoryService
 
- 
resetDeploymentIdDeprecated.This is now handled automatically by the root scope- Specified by:
- resetDeploymentIdin interface- ChangeLogHistoryService
 
- 
generateDeploymentIdDeprecated.This is now handled automatically by the root scope- Specified by:
- generateDeploymentIdin interface- ChangeLogHistoryService
 
 
-