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_SYSTEM_CHANGE |
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() |
void |
ensureField(Field field) |
List<io.mongock.driver.api.entry.ChangeEntry> |
getEntriesLog() |
void |
saveOrUpdate(io.mongock.driver.api.entry.ChangeEntry changeEntry) |
void |
setClientSession(com.mongodb.client.ClientSession clientSession) |
org.bson.Document |
toEntity(io.mongock.driver.api.entry.ChangeEntry domain) |
cleanResidualUniqueKeys, createRequiredUniqueIndex, deleteAll, doesNeedToBeRemoved, dropIndex, getIndexDocument, initialize, isIdIndex, isIndexFine, isRequiredIndexCreated, isRightIndex, isUniqueIndex, setIndexCreationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected 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
protected static String KEY_SYSTEM_CHANGE
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()
public void ensureField(Field field)
ensureField in interface io.mongock.driver.api.entry.ChangeEntryServicepublic org.bson.Document toEntity(io.mongock.driver.api.entry.ChangeEntry domain)
toEntity in interface io.mongock.driver.api.common.EntityRepository<io.mongock.driver.api.entry.ChangeEntry,org.bson.Document>Copyright © 2024. All rights reserved.