Package org.javers.spring.transactions
Class JaversTransactionalDecorator
java.lang.Object
org.javers.spring.transactions.JaversTransactionalDecorator
- All Implemented Interfaces:
org.javers.core.Javers
Transactional wrapper for core JaVers instance.
Provides integration with Spring JPA TransactionManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJaversTransactionalDecorator(org.javers.core.Javers delegate) -
Method Summary
Modifier and TypeMethodDescriptionorg.javers.core.commit.Commitorg.javers.core.commit.CommitCompletableFuture<org.javers.core.commit.Commit>commitAsync(String author, Object currentVersion, Executor executor) CompletableFuture<org.javers.core.commit.Commit>commitAsync(String author, Object currentVersion, Map<String, String> commitProperties, Executor executor) org.javers.core.commit.CommitcommitShallowDelete(String author, Object deleted) org.javers.core.commit.Commitorg.javers.core.commit.CommitcommitShallowDeleteById(String author, org.javers.repository.jql.GlobalIdDTO globalId) org.javers.core.commit.CommitcommitShallowDeleteById(String author, org.javers.repository.jql.GlobalIdDTO globalId, Map<String, String> properties) org.javers.core.diff.Diff<T> org.javers.core.diff.DiffcompareCollections(Collection<T> oldVersion, Collection<T> currentVersion, Class<T> itemClass) org.javers.core.ChangesfindChanges(org.javers.repository.jql.JqlQuery query) <T> List<org.javers.shadow.Shadow<T>>findShadows(org.javers.repository.jql.JqlQuery query) <T> Stream<org.javers.shadow.Shadow<T>>findShadowsAndStream(org.javers.repository.jql.JqlQuery query) List<org.javers.core.metamodel.object.CdoSnapshot>findSnapshots(org.javers.repository.jql.JqlQuery query) org.javers.core.CoreConfigurationOptional<org.javers.core.metamodel.object.CdoSnapshot>getHistoricalSnapshot(Object localId, Class entity, LocalDateTime effectiveDate) org.javers.core.json.JsonConverterOptional<org.javers.core.metamodel.object.CdoSnapshot>getLatestSnapshot(Object localId, Class entityClass) org.javers.core.metamodel.property.PropertygetProperty(org.javers.core.diff.changetype.PropertyChange propertyChange) <T extends org.javers.core.metamodel.type.JaversType>
TgetTypeMapping(Type clientsType) org.javers.core.diff.Diff<T> TprocessChangeList(List<org.javers.core.diff.Change> changes, org.javers.core.changelog.ChangeProcessor<T> changeProcessor)
-
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:
commitAsyncin interfaceorg.javers.core.Javers
-
commitAsync
public CompletableFuture<org.javers.core.commit.Commit> commitAsync(String author, Object currentVersion, Executor executor) - Specified by:
commitAsyncin interfaceorg.javers.core.Javers
-
commit
- Specified by:
commitin interfaceorg.javers.core.Javers
-
commit
@Transactional public org.javers.core.commit.Commit commit(String author, Object currentVersion, Map<String, String> commitProperties) - Specified by:
commitin interfaceorg.javers.core.Javers
-
commitShallowDelete
@Transactional public org.javers.core.commit.Commit commitShallowDelete(String author, Object deleted) - Specified by:
commitShallowDeletein interfaceorg.javers.core.Javers
-
commitShallowDelete
@Transactional public org.javers.core.commit.Commit commitShallowDelete(String author, Object deleted, Map<String, String> properties) - Specified by:
commitShallowDeletein interfaceorg.javers.core.Javers
-
commitShallowDeleteById
@Transactional public org.javers.core.commit.Commit commitShallowDeleteById(String author, org.javers.repository.jql.GlobalIdDTO globalId) - Specified by:
commitShallowDeleteByIdin interfaceorg.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:
commitShallowDeleteByIdin interfaceorg.javers.core.Javers
-
compare
- Specified by:
comparein interfaceorg.javers.core.Javers
-
compareCollections
public <T> org.javers.core.diff.Diff compareCollections(Collection<T> oldVersion, Collection<T> currentVersion, Class<T> itemClass) - Specified by:
compareCollectionsin interfaceorg.javers.core.Javers
-
initial
- Specified by:
initialin interfaceorg.javers.core.Javers
-
getLatestSnapshot
@Transactional public Optional<org.javers.core.metamodel.object.CdoSnapshot> getLatestSnapshot(Object localId, Class entityClass) - Specified by:
getLatestSnapshotin interfaceorg.javers.core.Javers
-
getHistoricalSnapshot
@Transactional public Optional<org.javers.core.metamodel.object.CdoSnapshot> getHistoricalSnapshot(Object localId, Class entity, LocalDateTime effectiveDate) - Specified by:
getHistoricalSnapshotin interfaceorg.javers.core.Javers
-
findShadows
@Transactional public <T> List<org.javers.shadow.Shadow<T>> findShadows(org.javers.repository.jql.JqlQuery query) - Specified by:
findShadowsin interfaceorg.javers.core.Javers
-
findShadowsAndStream
@Transactional public <T> Stream<org.javers.shadow.Shadow<T>> findShadowsAndStream(org.javers.repository.jql.JqlQuery query) - Specified by:
findShadowsAndStreamin interfaceorg.javers.core.Javers
-
findSnapshots
@Transactional public List<org.javers.core.metamodel.object.CdoSnapshot> findSnapshots(org.javers.repository.jql.JqlQuery query) - Specified by:
findSnapshotsin interfaceorg.javers.core.Javers
-
findChanges
@Transactional public org.javers.core.Changes findChanges(org.javers.repository.jql.JqlQuery query) - Specified by:
findChangesin interfaceorg.javers.core.Javers
-
getJsonConverter
public org.javers.core.json.JsonConverter getJsonConverter()- Specified by:
getJsonConverterin interfaceorg.javers.core.Javers
-
processChangeList
public <T> T processChangeList(List<org.javers.core.diff.Change> changes, org.javers.core.changelog.ChangeProcessor<T> changeProcessor) - Specified by:
processChangeListin interfaceorg.javers.core.Javers
-
getTypeMapping
- Specified by:
getTypeMappingin interfaceorg.javers.core.Javers
-
getCoreConfiguration
public org.javers.core.CoreConfiguration getCoreConfiguration()- Specified by:
getCoreConfigurationin interfaceorg.javers.core.Javers
-
getProperty
public org.javers.core.metamodel.property.Property getProperty(org.javers.core.diff.changetype.PropertyChange propertyChange) - Specified by:
getPropertyin interfaceorg.javers.core.Javers
-