Top Fields Constructors Methods
liquibase.changelog

public Class StandardChangeLogHistoryService

extends AbstractChangeLogHistoryService
Class Inheritance
Imports
liquibase.*, liquibase.change.Change, .CheckSum, .ColumnConfig, liquibase.database.Database, liquibase.database.core.DB2Database, .MSSQLDatabase, .SQLiteDatabase, liquibase.diff.output.DiffOutputControl, liquibase.diff.output.changelog.ChangeGeneratorFactory, liquibase.exception.DatabaseException, .DatabaseHistoryException, .LiquibaseException, .UnexpectedLiquibaseException, liquibase.executor.Executor, .ExecutorService, liquibase.executor.jvm.ChangelogJdbcMdcListener, liquibase.snapshot.InvalidExampleException, .SnapshotControl, .SnapshotGeneratorFactory, liquibase.sqlgenerator.SqlGeneratorFactory, liquibase.statement.SqlStatement, liquibase.statement.core.*, liquibase.structure.DatabaseObject, liquibase.structure.core.Column, .DataType, .Table, java.text.DateFormat, .ParseException, .SimpleDateFormat, java.time.LocalDateTime, .ZoneId, java.util.*

Field Summary

Modifier and TypeField and Description
protected static final String
private boolean
private Boolean
protected static final String
private Integer
private List<RanChangeSet>
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

Returns the ChangeSets that have been run against the current getDatabase().

public boolean
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 List<Map<String, ?>>
public void
public void
public void
public boolean
public void
tag(final String tagString)

Implements liquibase.changelog.ChangeLogHistoryService.tag.

Tags the database changelog with the given string.

public boolean
public void
Inherited from liquibase.changelog.AbstractChangeLogHistoryService:
generateDeploymentIdgetDatabasegetDeploymentIdgetLastDeploymentIdgetRanDategetRunStatusreplaceChecksumresetDeploymentIdsetDatabase

Field Detail

CONTEXTS_SIZEback to summary
protected static final String CONTEXTS_SIZE
databaseChecksumsCompatibleback to summary
private boolean databaseChecksumsCompatible
hasDatabaseChangeLogTableback to summary
private Boolean hasDatabaseChangeLogTable
LABELS_SIZEback to summary
protected static final String LABELS_SIZE
lastChangeSetSequenceValueback to summary
private Integer lastChangeSetSequenceValue
ranChangeSetListback to summary
private List<RanChangeSet> ranChangeSetList
serviceInitializedback to summary
private boolean serviceInitialized

Constructor Detail

StandardChangeLogHistoryServiceback to summary
public StandardChangeLogHistoryService()

Method Detail

canCreateChangeLogTableback to summary
public boolean canCreateChangeLogTable()
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
getCharTypeNameback to summary
protected String getCharTypeName()
getContextsSizeback to summary
protected String getContextsSize()
getDatabaseChangeLogTableNameback to summary
public String getDatabaseChangeLogTableName()
getLabelsSizeback to summary
protected String getLabelsSize()
getLiquibaseCatalogNameback to summary
public String getLiquibaseCatalogName()
getLiquibaseSchemaNameback to summary
public String getLiquibaseSchemaName()
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(final ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException

Overrides liquibase.changelog.AbstractChangeLogHistoryService.getRanChangeSet.

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSet.

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

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

Returns the ChangeSets that have been run against the current getDatabase().

Annotations
@Override
hasDatabaseChangeLogTableback to summary
public boolean hasDatabaseChangeLogTable()
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
queryDatabaseChangeLogTableback to summary
public List<Map<String, ?>> queryDatabaseChangeLogTable(Database database) throws DatabaseException
removeFromHistoryback to summary
public void removeFromHistory(final ChangeSet changeSet) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.removeFromHistory.

Annotations
@Override
resetback to summary
public void reset()

Overrides liquibase.changelog.AbstractChangeLogHistoryService.reset.

Implements liquibase.changelog.ChangeLogHistoryService.reset.

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(final String tagString) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.tag.

Tags the database changelog with the given string.

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

Implements liquibase.changelog.ChangeLogHistoryService.tagExists.

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

Overrides liquibase.changelog.AbstractChangeLogHistoryService.upgradeChecksums.

Implements liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Doc from liquibase.changelog.ChangeLogHistoryService.upgradeChecksums.

Updates null checksum values

Annotations
@Override