public abstract class AbstractNoSqlHistoryService<D extends AbstractNoSqlDatabase>
extends liquibase.changelog.AbstractChangeLogHistoryService
| Constructor and Description |
|---|
AbstractNoSqlHistoryService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
adjustRepository() |
boolean |
canCreateChangeLogTable() |
void |
clearAllCheckSums()
TODO: Raise with Liquibase why is this one not used instead of
UpdateStatement
in Liquibase.clearCheckSums() |
protected abstract void |
clearChekSums() |
protected abstract long |
countRanChangeSets() |
protected abstract long |
countTags(String tag) |
protected abstract void |
createRepository() |
void |
destroy() |
protected abstract void |
dropRepository() |
protected abstract Boolean |
existsRepository() |
protected abstract Integer |
generateNextSequence() |
String |
getDatabaseChangeLogTableName() |
NoSqlExecutor |
getExecutor() |
protected abstract liquibase.logging.Logger |
getLogger() |
int |
getNextSequenceValue() |
D |
getNoSqlDatabase() |
int |
getPriority() |
liquibase.changelog.RanChangeSet |
getRanChangeSet(liquibase.changelog.ChangeSet changeSet) |
List<liquibase.changelog.RanChangeSet> |
getRanChangeSets()
Returns the ChangeSets that have been run against the current getDatabase().
|
boolean |
hasDatabaseChangeLogTable() |
void |
init() |
boolean |
isServiceInitialized() |
protected abstract void |
markChangeSetRun(liquibase.changelog.ChangeSet changeSet,
liquibase.changelog.ChangeSet.ExecType execType,
Integer nextSequenceValue) |
protected abstract List<liquibase.changelog.RanChangeSet> |
queryRanChangeSets() |
void |
removeFromHistory(liquibase.changelog.ChangeSet changeSet) |
protected abstract void |
removeRanChangeSet(liquibase.changelog.ChangeSet changeSet) |
void |
replaceChecksum(liquibase.changelog.ChangeSet changeSet) |
void |
reset() |
void |
setExecType(liquibase.changelog.ChangeSet changeSet,
liquibase.changelog.ChangeSet.ExecType execType) |
void |
tag(String tagString)
Tags the database changelog with the given string.
|
boolean |
tagExists(String tag) |
protected abstract void |
tagLast(String tagString) |
protected abstract void |
updateCheckSum(liquibase.changelog.ChangeSet changeSet) |
generateDeploymentId, getDatabase, getDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabase, upgradeChecksumspublic int getPriority()
public String getDatabaseChangeLogTableName()
public boolean canCreateChangeLogTable()
public boolean isServiceInitialized()
public D getNoSqlDatabase()
public NoSqlExecutor getExecutor()
public void reset()
reset in interface liquibase.changelog.ChangeLogHistoryServicereset in class liquibase.changelog.AbstractChangeLogHistoryServicepublic void init()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic boolean hasDatabaseChangeLogTable()
public List<liquibase.changelog.RanChangeSet> getRanChangeSets() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void replaceChecksum(liquibase.changelog.ChangeSet changeSet)
throws liquibase.exception.DatabaseException
replaceChecksum in class liquibase.changelog.AbstractChangeLogHistoryServiceliquibase.exception.DatabaseExceptionpublic liquibase.changelog.RanChangeSet getRanChangeSet(liquibase.changelog.ChangeSet changeSet)
throws liquibase.exception.DatabaseException,
liquibase.exception.DatabaseHistoryException
getRanChangeSet in interface liquibase.changelog.ChangeLogHistoryServicegetRanChangeSet in class liquibase.changelog.AbstractChangeLogHistoryServiceliquibase.exception.DatabaseExceptionliquibase.exception.DatabaseHistoryExceptionpublic void setExecType(liquibase.changelog.ChangeSet changeSet,
liquibase.changelog.ChangeSet.ExecType execType)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void removeFromHistory(liquibase.changelog.ChangeSet changeSet)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic int getNextSequenceValue()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void tag(String tagString) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic boolean tagExists(String tag) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void clearAllCheckSums()
throws liquibase.exception.DatabaseException
UpdateStatement
in Liquibase.clearCheckSums()liquibase.exception.DatabaseException - in case of a failurepublic void destroy()
protected abstract liquibase.logging.Logger getLogger()
protected abstract Boolean existsRepository() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void createRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void adjustRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void dropRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract List<liquibase.changelog.RanChangeSet> queryRanChangeSets() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract Integer generateNextSequence() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void markChangeSetRun(liquibase.changelog.ChangeSet changeSet,
liquibase.changelog.ChangeSet.ExecType execType,
Integer nextSequenceValue)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void removeRanChangeSet(liquibase.changelog.ChangeSet changeSet)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void clearChekSums()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract long countTags(String tag) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void tagLast(String tagString) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract long countRanChangeSets()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void updateCheckSum(liquibase.changelog.ChangeSet changeSet)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionCopyright © 2021 Liquibase.org. All rights reserved.