Package liquibase.nosql.changelog
Class AbstractNoSqlHistoryService<D extends AbstractNoSqlDatabase>
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.nosql.changelog.AbstractNoSqlHistoryService<D>
- All Implemented Interfaces:
liquibase.changelog.ChangeLogHistoryService,liquibase.plugin.Plugin
- Direct Known Subclasses:
MongoHistoryService
public abstract class AbstractNoSqlHistoryService<D extends AbstractNoSqlDatabase>
extends liquibase.changelog.AbstractChangeLogHistoryService
-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbooleanvoidTODO: Raise with Liquibase why is this one not used instead ofUpdateStatementinLiquibase.clearCheckSums()protected abstract voidprotected abstract longprotected abstract longprotected abstract voidvoiddestroy()protected abstract voidprotected abstract Booleanprotected abstract Integerprotected abstract liquibase.logging.Loggerintintliquibase.changelog.RanChangeSetgetRanChangeSet(liquibase.changelog.ChangeSet changeSet) List<liquibase.changelog.RanChangeSet>Returns the ChangeSets that have been run against the current getDatabase().booleanvoidinit()booleanprotected abstract voidmarkChangeSetRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType, Integer nextSequenceValue) protected abstract List<liquibase.changelog.RanChangeSet>voidremoveFromHistory(liquibase.changelog.ChangeSet changeSet) protected abstract voidremoveRanChangeSet(liquibase.changelog.ChangeSet changeSet) voidreplaceChecksum(liquibase.changelog.ChangeSet changeSet) voidreset()voidsetExecType(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType) voidTags the database changelog with the given string.booleanprotected abstract voidabstract voidupdateCheckSum(liquibase.changelog.ChangeSet changeSet) Methods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDatabase, getDeploymentId, getLastDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabase, upgradeChecksumsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.changelog.ChangeLogHistoryService
getRanChangeSets, isDatabaseChecksumsCompatible, supports
-
Constructor Details
-
AbstractNoSqlHistoryService
public AbstractNoSqlHistoryService()
-
-
Method Details
-
getPriority
public int getPriority() -
getDatabaseChangeLogTableName
-
canCreateChangeLogTable
public boolean canCreateChangeLogTable() -
isServiceInitialized
public boolean isServiceInitialized() -
getNoSqlDatabase
-
getExecutor
- Throws:
liquibase.exception.DatabaseException
-
reset
public void reset()- Specified by:
resetin interfaceliquibase.changelog.ChangeLogHistoryService- Overrides:
resetin classliquibase.changelog.AbstractChangeLogHistoryService
-
init
public void init() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
hasDatabaseChangeLogTable
public boolean hasDatabaseChangeLogTable() -
getRanChangeSets
public List<liquibase.changelog.RanChangeSet> getRanChangeSets() throws liquibase.exception.DatabaseExceptionReturns the ChangeSets that have been run against the current getDatabase().- Throws:
liquibase.exception.DatabaseException
-
replaceChecksum
public void replaceChecksum(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Specified by:
replaceChecksumin interfaceliquibase.changelog.ChangeLogHistoryService- Overrides:
replaceChecksumin classliquibase.changelog.AbstractChangeLogHistoryService- Throws:
liquibase.exception.DatabaseException
-
getRanChangeSet
public liquibase.changelog.RanChangeSet getRanChangeSet(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException, liquibase.exception.DatabaseHistoryException - Specified by:
getRanChangeSetin interfaceliquibase.changelog.ChangeLogHistoryService- Overrides:
getRanChangeSetin classliquibase.changelog.AbstractChangeLogHistoryService- Throws:
liquibase.exception.DatabaseExceptionliquibase.exception.DatabaseHistoryException
-
setExecType
public void setExecType(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
removeFromHistory
public void removeFromHistory(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
getNextSequenceValue
public int getNextSequenceValue() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
tag
Tags the database changelog with the given string.- Throws:
liquibase.exception.DatabaseException
-
tagExists
- Throws:
liquibase.exception.DatabaseException
-
clearAllCheckSums
public void clearAllCheckSums() throws liquibase.exception.DatabaseExceptionTODO: Raise with Liquibase why is this one not used instead ofUpdateStatementinLiquibase.clearCheckSums()- Throws:
liquibase.exception.DatabaseException- in case of a failure
-
destroy
public void destroy() -
getLogger
protected abstract liquibase.logging.Logger getLogger() -
existsRepository
- Throws:
liquibase.exception.DatabaseException
-
createRepository
protected abstract void createRepository() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
adjustRepository
protected abstract void adjustRepository() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
dropRepository
protected abstract void dropRepository() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
queryRanChangeSets
protected abstract List<liquibase.changelog.RanChangeSet> queryRanChangeSets() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
generateNextSequence
- Throws:
liquibase.exception.DatabaseException
-
markChangeSetRun
protected abstract void markChangeSetRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType, Integer nextSequenceValue) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
removeRanChangeSet
protected abstract void removeRanChangeSet(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
clearChekSums
protected abstract void clearChekSums() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
countTags
- Throws:
liquibase.exception.DatabaseException
-
tagLast
- Throws:
liquibase.exception.DatabaseException
-
countRanChangeSets
protected abstract long countRanChangeSets() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
updateCheckSum
public abstract void updateCheckSum(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-