Top Fields Constructors Methods
liquibase.changelog

public Class MockChangeLogHistoryService

extends Object
implements ChangeLogHistoryService
Class Inheritance
All Implemented Interfaces
liquibase.changelog.ChangeLogHistoryService, liquibase.plugin.Plugin
Imports
liquibase.ContextExpression, .Contexts, .LabelExpression, .Labels, liquibase.change.CheckSum, liquibase.database.Database, liquibase.database.core.MockDatabase, liquibase.exception.DatabaseException, .DatabaseHistoryException, .LiquibaseException, java.util.ArrayList, .Arrays, .Date, .List

Field Summary

Modifier and TypeField and Description
public List<RanChangeSet>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public String
public int
public int
public RanChangeSet
public List<RanChangeSet>
public List<RanChangeSet>
getRanChangeSets(boolean a)

Overrides default liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

This method was created to clear out MD5sum for upgrade purpose but after some refactoring the logic was moved to Update commands and it should have been removed as everywhere it is called only with boolean false, so for core it is the same as getRanChangeSets().

public Date
getRanDate(ChangeSet changeSet)

Implements liquibase.changelog.ChangeLogHistoryService.getRanDate.

Returns the date the given changeSet was ran.

public ChangeSet.RunStatus
public void
init()

Implements liquibase.changelog.ChangeLogHistoryService.init.

Ensures the change log history container is correctly initialized for use.

public boolean
isDatabaseChecksumsCompatible()

Implements liquibase.changelog.ChangeLogHistoryService.isDatabaseChecksumsCompatible.

This method should return true if all checksums in dbcl table have the same version as liquibase.ChecksumVersion#latest().getVersion().

public void
public void
public void
public void
public void
public boolean
public void
public boolean
public void
upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels)

Implements liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Updates null checksum values

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ranChangeSetsback to summary
public List<RanChangeSet> ranChangeSets

Constructor Detail

MockChangeLogHistoryServiceback to summary
public MockChangeLogHistoryService()

Method Detail

clearAllCheckSumsback to summary
public void clearAllCheckSums() throws LiquibaseException

Implements liquibase.changelog.ChangeLogHistoryService.clearAllCheckSums.

Annotations
@Override
destroyback to summary
public void destroy() throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.destroy.

Annotations
@Override
generateDeploymentIdback to summary
public void generateDeploymentId()

Implements liquibase.changelog.ChangeLogHistoryService.generateDeploymentId.

Annotations
@Override
getDeploymentIdback to summary
public String getDeploymentId()

Implements liquibase.changelog.ChangeLogHistoryService.getDeploymentId.

Annotations
@Override
getNextSequenceValueback to summary
public int getNextSequenceValue() throws LiquibaseException

Implements liquibase.changelog.ChangeLogHistoryService.getNextSequenceValue.

Annotations
@Override
getPriorityback to summary
public int getPriority()

Implements liquibase.changelog.ChangeLogHistoryService.getPriority.

Annotations
@Override
getRanChangeSetback to summary
public RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSet.

Annotations
@Override
getRanChangeSetsback to summary
public List<RanChangeSet> getRanChangeSets() throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

Annotations
@Override
getRanChangeSetsback to summary
public List<RanChangeSet> getRanChangeSets(boolean a) throws DatabaseException

Overrides default liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

Doc from liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

This method was created to clear out MD5sum for upgrade purpose but after some refactoring the logic was moved to Update commands and it should have been removed as everywhere it is called only with boolean false, so for core it is the same as getRanChangeSets().

Annotations
@Override
getRanDateback to summary
public Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Implements liquibase.changelog.ChangeLogHistoryService.getRanDate.

Doc from liquibase.changelog.ChangeLogHistoryService.getRanDate.

Returns the date the given changeSet was ran. Returns null if changeSet was not null.

Annotations
@Override
getRunStatusback to summary
public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Implements liquibase.changelog.ChangeLogHistoryService.getRunStatus.

Annotations
@Override
initback to summary
public void init() throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.init.

Doc from liquibase.changelog.ChangeLogHistoryService.init.

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.

Annotations
@Override
isDatabaseChecksumsCompatibleback to summary
public boolean isDatabaseChecksumsCompatible()

Implements liquibase.changelog.ChangeLogHistoryService.isDatabaseChecksumsCompatible.

Doc from liquibase.changelog.ChangeLogHistoryService.isDatabaseChecksumsCompatible.

This method should return true if all checksums in dbcl table have the same version as 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:boolean

false if we have checksums different from liquibase.ChecksumVersion#latest().getVersion() in the dbcl table.

Annotations
@Override
removeFromHistoryback to summary
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.removeFromHistory.

Annotations
@Override
resetback to summary
public void reset()

Implements liquibase.changelog.ChangeLogHistoryService.reset.

Annotations
@Override
resetDeploymentIdback to summary
public void resetDeploymentId()

Implements liquibase.changelog.ChangeLogHistoryService.resetDeploymentId.

Annotations
@Override
setDatabaseback to summary
public void setDatabase(Database database)

Implements liquibase.changelog.ChangeLogHistoryService.setDatabase.

Annotations
@Override
setExecTypeback to summary
public void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.setExecType.

Annotations
@Override
supportsback to summary
public boolean supports(Database database)

Implements liquibase.changelog.ChangeLogHistoryService.supports.

Annotations
@Override
tagback to summary
public void tag(String tagString) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.tag.

Annotations
@Override
tagExistsback to summary
public boolean tagExists(String tag) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.tagExists.

Annotations
@Override
upgradeChecksumsback to summary
public void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Doc from liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Updates null checksum values

Annotations
@Override