Top Fields Constructors Methods
liquibase.changelog

public abstract Class AbstractChangeLogHistoryService

extends Object
implements ChangeLogHistoryService
Class Inheritance
All Implemented Interfaces
liquibase.changelog.ChangeLogHistoryService, liquibase.plugin.Plugin
Known Direct Subclasses
liquibase.changelog.OfflineChangeLogHistoryService, liquibase.changelog.StandardChangeLogHistoryService
Imports
liquibase.ChecksumVersion, .Contexts, .LabelExpression, .Scope, liquibase.changelog.filter.ContextChangeSetFilter, .DbmsChangeSetFilter, liquibase.database.Database, liquibase.exception.DatabaseException, .DatabaseHistoryException, liquibase.executor.ExecutorService, liquibase.statement.core.UpdateChangeSetChecksumStatement, java.text.DecimalFormat, java.util.Date, .List

Field Summary

Modifier and TypeField and Description
private Database
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public Database
public String
public String

Returns:

the deployment ID of the last changeset that has been run, or null if no changesets have been run yet.
getLastDeploymentId
()

Returns the deployment ID of the last changeset that has been run, or null if no changesets have been run yet.

public RanChangeSet
public Date
getRanDate(ChangeSet changeSet)

Implements liquibase.changelog.ChangeLogHistoryService.getRanDate.

Returns the date the given changeSet was ran.

public ChangeSet.RunStatus
public void
replaceChecksum(ChangeSet changeSet)

Overrides default liquibase.changelog.ChangeLogHistoryService.replaceChecksum.

By default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support checksum upgrades.

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

Implements liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Updates null checksum values

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databaseback to summary
private Database database
deploymentIdback to summary
private String deploymentId

Constructor Detail

AbstractChangeLogHistoryServiceback to summary
public AbstractChangeLogHistoryService()

Method Detail

generateDeploymentIdback to summary
public void generateDeploymentId()

Implements liquibase.changelog.ChangeLogHistoryService.generateDeploymentId.

Annotations
@Override
getDatabaseback to summary
public Database getDatabase()
getDeploymentIdback to summary
public String getDeploymentId()

Implements liquibase.changelog.ChangeLogHistoryService.getDeploymentId.

Annotations
@Override
getLastDeploymentIdback to summary
public String getLastDeploymentId() throws DatabaseException

Returns the deployment ID of the last changeset that has been run, or null if no changesets have been run yet.

Returns:String

the deployment ID of the last changeset that has been run, or null if no changesets have been run yet.

Exceptions
DatabaseException:
if there is an error accessing the database
getRanChangeSetback to summary
public RanChangeSet getRanChangeSet(final ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSet.

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(final ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Implements liquibase.changelog.ChangeLogHistoryService.getRunStatus.

Annotations
@Override
replaceChecksumback to summary
public void replaceChecksum(ChangeSet changeSet) throws DatabaseException

Overrides default liquibase.changelog.ChangeLogHistoryService.replaceChecksum.

Doc from liquibase.changelog.ChangeLogHistoryService.replaceChecksum.

By default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support checksum upgrades.

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
upgradeChecksumsback to summary
public void upgradeChecksums(final DatabaseChangeLog databaseChangeLog, final Contexts contexts, LabelExpression labels) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Doc from liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Updates null checksum values

Annotations
@Override