Package liquibase.ext.mongodb.changelog
Class MongoHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.nosql.changelog.AbstractNoSqlHistoryService<MongoLiquibaseDatabase>
liquibase.ext.mongodb.changelog.MongoHistoryService
- All Implemented Interfaces:
liquibase.changelog.ChangeLogHistoryService,liquibase.plugin.Plugin
-
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 voidprotected voidprotected longprotected longprotected voidprotected voidprotected BooleanextractTag(liquibase.changelog.ChangeSet changeSet) protected Integerprotected liquibase.logging.LoggerintList<liquibase.changelog.RanChangeSet>getRanChangeSets(boolean allowChecksumsUpgrade) booleanprotected voidmarkChangeSetRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType, Integer nextSequenceValue) protected List<liquibase.changelog.RanChangeSet>protected voidremoveRanChangeSet(liquibase.changelog.ChangeSet changeSet) booleansupports(liquibase.database.Database database) protected voidvoidupdateCheckSum(liquibase.changelog.ChangeSet changeSet) Methods inherited from class liquibase.nosql.changelog.AbstractNoSqlHistoryService
canCreateChangeLogTable, clearAllCheckSums, destroy, getDatabaseChangeLogTableName, getExecutor, getNextSequenceValue, getNoSqlDatabase, getRanChangeSet, getRanChangeSets, hasDatabaseChangeLogTable, init, isServiceInitialized, removeFromHistory, replaceChecksum, reset, setExecType, tag, tagExistsMethods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDatabase, getDeploymentId, getLastDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabase, upgradeChecksums
-
Constructor Details
-
MongoHistoryService
public MongoHistoryService()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceliquibase.changelog.ChangeLogHistoryService- Overrides:
getPriorityin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>
-
getLogger
protected liquibase.logging.Logger getLogger()- Specified by:
getLoggerin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>
-
supports
public boolean supports(liquibase.database.Database database) -
getRanChangeSets
public List<liquibase.changelog.RanChangeSet> getRanChangeSets(boolean allowChecksumsUpgrade) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
isDatabaseChecksumsCompatible
public boolean isDatabaseChecksumsCompatible() -
existsRepository
- Specified by:
existsRepositoryin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
createRepository
protected void createRepository() throws liquibase.exception.DatabaseException- Specified by:
createRepositoryin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
adjustRepository
protected void adjustRepository() throws liquibase.exception.DatabaseException- Specified by:
adjustRepositoryin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
dropRepository
protected void dropRepository() throws liquibase.exception.DatabaseException- Specified by:
dropRepositoryin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
queryRanChangeSets
protected List<liquibase.changelog.RanChangeSet> queryRanChangeSets() throws liquibase.exception.DatabaseException- Specified by:
queryRanChangeSetsin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
generateNextSequence
- Specified by:
generateNextSequencein classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
markChangeSetRun
protected void markChangeSetRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType, Integer nextSequenceValue) throws liquibase.exception.DatabaseException - Specified by:
markChangeSetRunin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
extractTag
-
removeRanChangeSet
protected void removeRanChangeSet(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Specified by:
removeRanChangeSetin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
clearChekSums
protected void clearChekSums() throws liquibase.exception.DatabaseException- Specified by:
clearChekSumsin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
countTags
- Specified by:
countTagsin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
tagLast
- Specified by:
tagLastin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
countRanChangeSets
protected long countRanChangeSets() throws liquibase.exception.DatabaseException- Specified by:
countRanChangeSetsin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
updateCheckSum
public void updateCheckSum(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException - Specified by:
updateCheckSumin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-