public class MongoSync4ChangeEntryRepository<CHANGE_ENTRY extends com.github.cloudyrock.mongock.driver.api.entry.ChangeEntry> extends MongoSync4RepositoryBase<CHANGE_ENTRY> implements com.github.cloudyrock.mongock.driver.core.entry.ChangeEntryRepository<CHANGE_ENTRY,org.bson.Document>
collection| Constructor and Description |
|---|
MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
boolean indexCreation) |
MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
boolean indexCreation,
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 == null OR estate doesn't exists)
|
boolean |
isAlreadyExecuted(String changeSetId,
String author) |
void |
save(CHANGE_ENTRY changeEntry) |
cleanResidualUniqueKeys, createRequiredUniqueIndex, doesNeedToBeRemoved, dropIndex, getIndexDocument, initialize, isIdIndex, isIndexFine, isRequiredIndexCreated, isRightIndex, isUniqueIndex, mapFieldInstancesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
boolean indexCreation)
public MongoSync4ChangeEntryRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection,
boolean indexCreation,
ReadWriteConfiguration readWriteConfiguration)
public boolean isAlreadyExecuted(String changeSetId, String author) throws com.github.cloudyrock.mongock.exception.MongockException
isAlreadyExecuted in interface com.github.cloudyrock.mongock.driver.api.entry.ChangeEntryService<CHANGE_ENTRY extends com.github.cloudyrock.mongock.driver.api.entry.ChangeEntry>com.github.cloudyrock.mongock.exception.MongockExceptionpublic void save(CHANGE_ENTRY changeEntry) throws com.github.cloudyrock.mongock.exception.MongockException
save in interface com.github.cloudyrock.mongock.driver.api.entry.ChangeEntryService<CHANGE_ENTRY extends com.github.cloudyrock.mongock.driver.api.entry.ChangeEntry>com.github.cloudyrock.mongock.exception.MongockExceptionprotected org.bson.conversions.Bson buildSearchQueryDBObject(String changeSetId, String author)
changeSetId - changeSetIdauthor - authorCopyright © 2021. All rights reserved.