public class MongoSync4ChangeEntryRepository extends MongoSync4RepositoryBase<io.mongock.driver.api.entry.ChangeEntry> implements ChangeEntryRepositoryWithEntity<org.bson.Document>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
KEY_AUTHOR |
protected static String |
KEY_CHANGE_ID |
protected static String |
KEY_CHANGELOG_CLASS |
protected static String |
KEY_CHANGESET_METHOD |
protected static String |
KEY_EXECUTION_HOSTNAME |
protected static String |
KEY_EXECUTION_ID |
protected static String |
KEY_EXECUTION_MILLIS |
protected static String |
KEY_METADATA |
protected static String |
KEY_STATE |
protected static String |
KEY_TIMESTAMP |
protected static String |
KEY_TYPE |
collection| Constructor and Description |
|---|
MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection) |
MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
ReadWriteConfiguration readWriteConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected org.bson.conversions.Bson |
buildSearchQueryDBObject(String changeSetId,
String author)
Check if a changeSet with given changeSetId and author and
(state == EXECUTED OR state == ROLLED_BACK OR state == null OR estate doesn't exists)
|
void |
clearClientSession() |
List<io.mongock.driver.api.entry.ChangeEntry> |
getEntriesLog() |
boolean |
isAlreadyExecuted(String changeSetId,
String author) |
void |
saveOrUpdate(io.mongock.driver.api.entry.ChangeEntry changeEntry) |
void |
setClientSession(com.mongodb.client.ClientSession clientSession) |
cleanResidualUniqueKeys, createRequiredUniqueIndex, doesNeedToBeRemoved, dropIndex, getIndexDocument, initialize, isIdIndex, isIndexFine, isRequiredIndexCreated, isRightIndex, isUniqueIndex, mapFieldInstances, setIndexCreationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllEntriesWithCurrentState, getEntriesMap, getExecutedprotected static String KEY_EXECUTION_ID
protected static String KEY_CHANGE_ID
protected static String KEY_STATE
protected static String KEY_TYPE
protected static String KEY_AUTHOR
protected static String KEY_TIMESTAMP
protected static String KEY_CHANGELOG_CLASS
protected static String KEY_CHANGESET_METHOD
protected static String KEY_EXECUTION_MILLIS
protected static String KEY_EXECUTION_HOSTNAME
protected static String KEY_METADATA
public MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
public MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
ReadWriteConfiguration readWriteConfiguration)
public boolean isAlreadyExecuted(String changeSetId, String author) throws MongockException
isAlreadyExecuted in interface io.mongock.driver.api.entry.ChangeEntryServiceMongockExceptionpublic List<io.mongock.driver.api.entry.ChangeEntry> getEntriesLog()
getEntriesLog in interface io.mongock.driver.api.entry.ChangeEntryServicepublic void saveOrUpdate(io.mongock.driver.api.entry.ChangeEntry changeEntry)
throws MongockException
saveOrUpdate in interface io.mongock.driver.api.entry.ChangeEntryServiceMongockExceptionpublic void setClientSession(com.mongodb.client.ClientSession clientSession)
public void clearClientSession()
protected org.bson.conversions.Bson buildSearchQueryDBObject(String changeSetId, String author)
changeSetId - changeSetIdauthor - authorCopyright © 2021. All rights reserved.