Class SpringDataMongoV4ChangeEntryRepository

java.lang.Object
io.mongock.driver.mongodb.sync.v4.repository.MongoSync4RepositoryBase<io.mongock.driver.api.entry.ChangeEntry>
io.mongock.driver.mongodb.sync.v4.repository.MongoSync4ChangeEntryRepository
io.mongock.driver.mongodb.springdata.v4.SpringDataMongoV4ChangeEntryRepository
All Implemented Interfaces:
io.mongock.driver.api.common.EntityRepository<io.mongock.driver.api.entry.ChangeEntry,org.bson.Document>, io.mongock.driver.api.common.RepositoryIndexable, io.mongock.driver.api.entry.ChangeEntryService, io.mongock.driver.core.entry.ChangeEntryRepositoryWithEntity<org.bson.Document>, io.mongock.utils.Process

public class SpringDataMongoV4ChangeEntryRepository extends io.mongock.driver.mongodb.sync.v4.repository.MongoSync4ChangeEntryRepository implements io.mongock.driver.core.entry.ChangeEntryRepositoryWithEntity<org.bson.Document>
  • Field Summary

    Fields inherited from class io.mongock.driver.mongodb.sync.v4.repository.MongoSync4ChangeEntryRepository

    KEY_AUTHOR, KEY_CHANGE_ID, KEY_CHANGELOG_CLASS, KEY_CHANGESET_METHOD, KEY_EXECUTION_HOSTNAME, KEY_EXECUTION_ID, KEY_EXECUTION_MILLIS, KEY_METADATA, KEY_STATE, KEY_SYSTEM_CHANGE, KEY_TIMESTAMP, KEY_TYPE

    Fields inherited from class io.mongock.driver.mongodb.sync.v4.repository.MongoSync4RepositoryBase

    collection
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringDataMongoV4ChangeEntryRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations, String collectionName, io.mongock.driver.mongodb.sync.v4.repository.ReadWriteConfiguration readWriteConfiguration, boolean transactionable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    saveOrUpdate(io.mongock.driver.api.entry.ChangeEntry changeEntry)
     

    Methods inherited from class io.mongock.driver.mongodb.sync.v4.repository.MongoSync4ChangeEntryRepository

    clearClientSession, ensureField, getEntriesLog, setClientSession, toEntity

    Methods inherited from class io.mongock.driver.mongodb.sync.v4.repository.MongoSync4RepositoryBase

    cleanResidualUniqueKeys, createRequiredUniqueIndex, deleteAll, doesNeedToBeRemoved, dropIndex, getIndexDocument, initialize, isIdIndex, isIndexFine, isRequiredIndexCreated, isRightIndex, isUniqueIndex, setIndexCreation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.mongock.driver.api.entry.ChangeEntryService

    deleteAll, ensureAllFields, ensureField, getAllEntriesWithCurrentState, getEntriesLog, getEntriesMap, getExecuted, isAlreadyExecuted

    Methods inherited from interface io.mongock.driver.api.common.EntityRepository

    toEntity

    Methods inherited from interface io.mongock.utils.Process

    initialize

    Methods inherited from interface io.mongock.driver.api.common.RepositoryIndexable

    setIndexCreation
  • Constructor Details

    • SpringDataMongoV4ChangeEntryRepository

      public SpringDataMongoV4ChangeEntryRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations, String collectionName, io.mongock.driver.mongodb.sync.v4.repository.ReadWriteConfiguration readWriteConfiguration, boolean transactionable)
  • Method Details

    • saveOrUpdate

      public void saveOrUpdate(io.mongock.driver.api.entry.ChangeEntry changeEntry) throws io.mongock.api.exception.MongockException
      Specified by:
      saveOrUpdate in interface io.mongock.driver.api.entry.ChangeEntryService
      Overrides:
      saveOrUpdate in class io.mongock.driver.mongodb.sync.v4.repository.MongoSync4ChangeEntryRepository
      Throws:
      io.mongock.api.exception.MongockException