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 |
|---|---|
void |
clearClientSession() |
List<io.mongock.driver.api.entry.ChangeEntry> |
getEntriesLog() |
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, getExecuted, isAlreadyExecutedprotected 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 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()
Copyright © 2022. All rights reserved.