Top Inners Fields Constructors Methods
liquibase.changelog

public Class OfflineChangeLogHistoryService

extends AbstractChangeLogHistoryService
Class Inheritance
Annotations
@LiquibaseService
skip:true
@SuppressWarnings:java:S899
Imports
liquibase.*, liquibase.change.Change, .CheckSum, liquibase.change.core.TagDatabaseChange, liquibase.changelog.ChangeSet.ExecType, liquibase.database.Database, .OfflineConnection, liquibase.exception.DatabaseException, .LiquibaseException, .UnexpectedLiquibaseException, liquibase.executor.ExecutorService, liquibase.servicelocator.LiquibaseService, liquibase.statement.core.CreateDatabaseChangeLogTableStatement, .MarkChangeSetRanStatement, .RemoveChangeSetRanStatusStatement, .UpdateChangeSetChecksumStatement, liquibase.util.ISODateFormat, .LiquibaseUtil, liquibase.util.csv.CSVReader, .CSVWriter, java.io.*, java.nio.file.Files, java.util.ArrayList, .Date, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
private static interface

Field Summary

Modifier and TypeField and Description
private final File
private boolean
executeDdlAgainstDatabase

Output CREATE TABLE LIQUIBASECHANGELOG or not

private boolean
private Integer

Constructor Summary

AccessConstructor and Description
public
OfflineChangeLogHistoryService(Database database, File changeLogFile, boolean executeDmlAgainstDatabase, boolean executeDdlAgainstDatabase)

Method Summary

Modifier and TypeMethod and Description
protected void
public void
public void
public int
public int
public List<RanChangeSet>
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 boolean
public boolean
public void
protected void
public void
replaceChecksum(final ChangeSet changeSet)

Overrides liquibase.changelog.AbstractChangeLogHistoryService.replaceChecksum.

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
setExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)

public void
setExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)

public boolean
public void
public boolean
protected void
Inherited from liquibase.changelog.AbstractChangeLogHistoryService:
generateDeploymentIdgetDatabasegetDeploymentIdgetLastDeploymentIdgetRanChangeSetgetRanDategetRunStatusresetDeploymentIdsetDatabaseupgradeChecksums

Field Detail

changeLogFileback to summary
private final File changeLogFile
executeDdlAgainstDatabaseback to summary
private boolean executeDdlAgainstDatabase

Output CREATE TABLE LIQUIBASECHANGELOG or not

executeDmlAgainstDatabaseback to summary
private boolean executeDmlAgainstDatabase
lastChangeSetSequenceValueback to summary
private Integer lastChangeSetSequenceValue

Constructor Detail

OfflineChangeLogHistoryServiceback to summary
public OfflineChangeLogHistoryService(Database database, File changeLogFile, boolean executeDmlAgainstDatabase, boolean executeDdlAgainstDatabase)

Method Detail

appendChangeSetback to summary
protected void appendChangeSet(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
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
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
getRanChangeSetsback to summary
public List<RanChangeSet> getRanChangeSets() throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.getRanChangeSets.

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
isExecuteDdlAgainstDatabaseback to summary
public boolean isExecuteDdlAgainstDatabase()
isExecuteDmlAgainstDatabaseback to summary
public boolean isExecuteDmlAgainstDatabase()
removeFromHistoryback to summary
public void removeFromHistory(ChangeSet changeSet) throws DatabaseException

Implements liquibase.changelog.ChangeLogHistoryService.removeFromHistory.

Annotations
@Override
replaceChangeSetback to summary
protected void replaceChangeSet(ChangeSet changeSet, OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic) throws DatabaseException
replaceChecksumback to summary
public void replaceChecksum(final ChangeSet changeSet) throws DatabaseException

Overrides liquibase.changelog.AbstractChangeLogHistoryService.replaceChecksum.

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()

Overrides liquibase.changelog.AbstractChangeLogHistoryService.reset.

Implements liquibase.changelog.ChangeLogHistoryService.reset.

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

Implements liquibase.changelog.ChangeLogHistoryService.setExecType.

Annotations
@Override
setExecuteDdlAgainstDatabaseback to summary
public void setExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)
setExecuteDmlAgainstDatabaseback to summary
public void setExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)
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.

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

Implements liquibase.changelog.ChangeLogHistoryService.tagExists.

Annotations
@Override
writeHeaderback to summary
protected void writeHeader(File file) throws IOException
liquibase.changelog back to summary

private final Enum OfflineChangeLogHistoryService.Columns

extends Enum<OfflineChangeLogHistoryService.Columns>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns
public static final OfflineChangeLogHistoryService.Columns

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OfflineChangeLogHistoryService.Columns
public static OfflineChangeLogHistoryService.Columns[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AUTHORback to summary
public static final OfflineChangeLogHistoryService.Columns AUTHOR
COMMENTSback to summary
public static final OfflineChangeLogHistoryService.Columns COMMENTS
CONTEXTSback to summary
public static final OfflineChangeLogHistoryService.Columns CONTEXTS
DATEEXECUTEDback to summary
public static final OfflineChangeLogHistoryService.Columns DATEEXECUTED
DEPLOYMENT_IDback to summary
public static final OfflineChangeLogHistoryService.Columns DEPLOYMENT_ID
DESCRIPTIONback to summary
public static final OfflineChangeLogHistoryService.Columns DESCRIPTION
EXECTYPEback to summary
public static final OfflineChangeLogHistoryService.Columns EXECTYPE
FILENAMEback to summary
public static final OfflineChangeLogHistoryService.Columns FILENAME
IDback to summary
public static final OfflineChangeLogHistoryService.Columns ID
LABELSback to summary
public static final OfflineChangeLogHistoryService.Columns LABELS
LIQUIBASEback to summary
public static final OfflineChangeLogHistoryService.Columns LIQUIBASE
MD5SUMback to summary
public static final OfflineChangeLogHistoryService.Columns MD5SUM
ORDEREXECUTEDback to summary
public static final OfflineChangeLogHistoryService.Columns ORDEREXECUTED
TAGback to summary
public static final OfflineChangeLogHistoryService.Columns TAG

Constructor Detail

Columnsback to summary
private Columns()

Method Detail

valueOfback to summary
public static OfflineChangeLogHistoryService.Columns valueOf(String name)
valuesback to summary
public static OfflineChangeLogHistoryService.Columns[] values()
liquibase.changelog back to summary

private Interface OfflineChangeLogHistoryService.ReplaceChangeSetLogic


Method Summary

Modifier and TypeMethod and Description
public String[]
execute(String[] line)

Method Detail

executeback to summary
public String[] execute(String[] line)