Class JaversTransactionalDecorator

java.lang.Object
org.javers.spring.transactions.JaversTransactionalDecorator
All Implemented Interfaces:
org.javers.core.Javers

public abstract class JaversTransactionalDecorator extends Object implements org.javers.core.Javers
Transactional wrapper for core JaVers instance. Provides integration with Spring JPA TransactionManager
  • Constructor Details

    • JaversTransactionalDecorator

      protected JaversTransactionalDecorator(org.javers.core.Javers delegate)
  • Method Details

    • commitAsync

      public CompletableFuture<org.javers.core.commit.Commit> commitAsync(String author, Object currentVersion, Map<String,String> commitProperties, Executor executor)
      Specified by:
      commitAsync in interface org.javers.core.Javers
    • commitAsync

      public CompletableFuture<org.javers.core.commit.Commit> commitAsync(String author, Object currentVersion, Executor executor)
      Specified by:
      commitAsync in interface org.javers.core.Javers
    • commit

      @Transactional public org.javers.core.commit.Commit commit(String author, Object currentVersion)
      Specified by:
      commit in interface org.javers.core.Javers
    • commit

      @Transactional public org.javers.core.commit.Commit commit(String author, Object currentVersion, Map<String,String> commitProperties)
      Specified by:
      commit in interface org.javers.core.Javers
    • commitShallowDelete

      @Transactional public org.javers.core.commit.Commit commitShallowDelete(String author, Object deleted)
      Specified by:
      commitShallowDelete in interface org.javers.core.Javers
    • commitShallowDelete

      @Transactional public org.javers.core.commit.Commit commitShallowDelete(String author, Object deleted, Map<String,String> properties)
      Specified by:
      commitShallowDelete in interface org.javers.core.Javers
    • commitShallowDeleteById

      @Transactional public org.javers.core.commit.Commit commitShallowDeleteById(String author, org.javers.repository.jql.GlobalIdDTO globalId)
      Specified by:
      commitShallowDeleteById in interface org.javers.core.Javers
    • commitShallowDeleteById

      @Transactional public org.javers.core.commit.Commit commitShallowDeleteById(String author, org.javers.repository.jql.GlobalIdDTO globalId, Map<String,String> properties)
      Specified by:
      commitShallowDeleteById in interface org.javers.core.Javers
    • compare

      public org.javers.core.diff.Diff compare(Object oldVersion, Object currentVersion)
      Specified by:
      compare in interface org.javers.core.Javers
    • compareCollections

      public <T> org.javers.core.diff.Diff compareCollections(Collection<T> oldVersion, Collection<T> currentVersion, Class<T> itemClass)
      Specified by:
      compareCollections in interface org.javers.core.Javers
    • initial

      public org.javers.core.diff.Diff initial(Object newDomainObject)
      Specified by:
      initial in interface org.javers.core.Javers
    • getLatestSnapshot

      @Transactional public Optional<org.javers.core.metamodel.object.CdoSnapshot> getLatestSnapshot(Object localId, Class entityClass)
      Specified by:
      getLatestSnapshot in interface org.javers.core.Javers
    • getHistoricalSnapshot

      @Transactional public Optional<org.javers.core.metamodel.object.CdoSnapshot> getHistoricalSnapshot(Object localId, Class entity, LocalDateTime effectiveDate)
      Specified by:
      getHistoricalSnapshot in interface org.javers.core.Javers
    • findShadows

      @Transactional public <T> List<org.javers.shadow.Shadow<T>> findShadows(org.javers.repository.jql.JqlQuery query)
      Specified by:
      findShadows in interface org.javers.core.Javers
    • findShadowsAndStream

      @Transactional public <T> Stream<org.javers.shadow.Shadow<T>> findShadowsAndStream(org.javers.repository.jql.JqlQuery query)
      Specified by:
      findShadowsAndStream in interface org.javers.core.Javers
    • findSnapshots

      @Transactional public List<org.javers.core.metamodel.object.CdoSnapshot> findSnapshots(org.javers.repository.jql.JqlQuery query)
      Specified by:
      findSnapshots in interface org.javers.core.Javers
    • findChanges

      @Transactional public org.javers.core.Changes findChanges(org.javers.repository.jql.JqlQuery query)
      Specified by:
      findChanges in interface org.javers.core.Javers
    • getJsonConverter

      public org.javers.core.json.JsonConverter getJsonConverter()
      Specified by:
      getJsonConverter in interface org.javers.core.Javers
    • processChangeList

      public <T> T processChangeList(List<org.javers.core.diff.Change> changes, org.javers.core.changelog.ChangeProcessor<T> changeProcessor)
      Specified by:
      processChangeList in interface org.javers.core.Javers
    • getTypeMapping

      public <T extends org.javers.core.metamodel.type.JaversType> T getTypeMapping(Type clientsType)
      Specified by:
      getTypeMapping in interface org.javers.core.Javers
    • getCoreConfiguration

      public org.javers.core.CoreConfiguration getCoreConfiguration()
      Specified by:
      getCoreConfiguration in interface org.javers.core.Javers
    • getProperty

      public org.javers.core.metamodel.property.Property getProperty(org.javers.core.diff.changetype.PropertyChange propertyChange)
      Specified by:
      getProperty in interface org.javers.core.Javers