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.servicelocator.PrioritizedService
public class MongoHistoryService extends AbstractNoSqlHistoryService<MongoLiquibaseDatabase>
-
-
Constructor Summary
Constructors Constructor Description MongoHistoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustRepository()protected voidclearChekSums()protected longcountRanChangeSets()protected longcountTags(String tag)protected voidcreateRepository()protected voiddropRepository()protected BooleanexistsRepository()StringextractTag(liquibase.changelog.ChangeSet changeSet)protected IntegergenerateNextSequence()protected liquibase.logging.LoggergetLogger()intgetPriority()protected voidmarkChangeSetRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.ChangeSet.ExecType execType, Integer nextSequenceValue)protected List<liquibase.changelog.RanChangeSet>queryRanChangeSets()protected voidremoveRanChangeSet(liquibase.changelog.ChangeSet changeSet)booleansupports(liquibase.database.Database database)protected voidtagLast(String tagString)protected voidupdateCheckSum(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, tagExists
-
-
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceliquibase.servicelocator.PrioritizedService- Overrides:
getPriorityin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>
-
getLogger
protected liquibase.logging.Logger getLogger()
- Specified by:
getLoggerin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>
-
supports
public boolean supports(liquibase.database.Database database)
-
existsRepository
protected Boolean existsRepository() throws liquibase.exception.DatabaseException
- 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
protected Integer generateNextSequence() throws liquibase.exception.DatabaseException
- 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
public String extractTag(liquibase.changelog.ChangeSet changeSet)
-
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
protected long countTags(String tag) throws liquibase.exception.DatabaseException
- Specified by:
countTagsin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
tagLast
protected void tagLast(String tagString) throws liquibase.exception.DatabaseException
- 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
protected void updateCheckSum(liquibase.changelog.ChangeSet changeSet) throws liquibase.exception.DatabaseException- Specified by:
updateCheckSumin classAbstractNoSqlHistoryService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
-