| Package | Description |
|---|---|
| org.axonframework.boot.autoconfig | |
| org.axonframework.commandhandling.model | |
| org.axonframework.common.jpa | |
| org.axonframework.config | |
| org.axonframework.eventhandling.saga.repository.jpa | |
| org.axonframework.eventhandling.tokenstore.jpa | |
| org.axonframework.eventsourcing.eventstore.jpa |
JPA Implementation of the EventStore.
|
| Modifier and Type | Method and Description |
|---|---|
EntityManagerProvider |
JpaAutoConfiguration.entityManagerProvider() |
| Modifier and Type | Method and Description |
|---|---|
EventStorageEngine |
JpaAutoConfiguration.eventStorageEngine(Serializer serializer,
PersistenceExceptionResolver persistenceExceptionResolver,
AxonConfiguration configuration,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager) |
JpaSagaStore |
JpaAutoConfiguration.sagaStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
TokenStore |
JpaAutoConfiguration.tokenStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
| Constructor and Description |
|---|
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus)
Initialize a repository for storing aggregates of the given
aggregateType. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
Function<String,?> identifierConverter)
Initialize a repository for storing aggregates of the given
aggregateType. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
LockFactory lockFactory)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
LockFactory lockFactory,
Function<String,?> identifierConverter)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory and allowing for a custom identifierConverter to convert a String based identifier to an
Identifier Object. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
LockFactory lockFactory,
ParameterResolverFactory parameterResolverFactory,
Function<String,?> identifierConverter)
Initialize a repository for storing aggregates of the given
aggregateType with an additional LockFactory and allowing for a custom identifierConverter to convert a String based identifier to an
Identifier Object. |
GenericJpaRepository(EntityManagerProvider entityManagerProvider,
Class<T> aggregateType,
EventBus eventBus,
ParameterResolverFactory parameterResolverFactory)
Initialize a repository for storing aggregates of the given
aggregateType. |
| Modifier and Type | Class and Description |
|---|---|
class |
ContainerManagedEntityManagerProvider
EntityManagerProvider implementation that expects the container to inject the default container managed
EntityManager
instance.
|
class |
SimpleEntityManagerProvider
Simple implementation of the EntityManagerProvider that returns the EntityManager instance provided at construction
time.
|
| Modifier and Type | Method and Description |
|---|---|
static Configurer |
DefaultConfigurer.jpaConfiguration(EntityManagerProvider entityManagerProvider)
Returns a Configurer instance which has JPA versions of building blocks configured, such as a JPA based Event
Store (see
JpaEventStorageEngine), a JpaTokenStore and JpaSagaStore. |
static <A> AggregateConfigurer<A> |
AggregateConfigurer.jpaMappedConfiguration(Class<A> aggregateType,
EntityManagerProvider entityManagerProvider)
Creates a Configuration for an aggregate of given
aggregateType, which is mapped to a relational
database using an EntityManager provided by given entityManagerProvider. |
| Constructor and Description |
|---|
JpaSagaStore(EntityManagerProvider entityManagerProvider)
Initializes a Saga Repository with an
XStreamSerializer and given entityManagerProvider. |
JpaSagaStore(Serializer serializer,
EntityManagerProvider entityManagerProvider)
Initializes a Saga Repository with the given
serializer and entityManagerProvider. |
| Constructor and Description |
|---|
JpaTokenStore(EntityManagerProvider entityManagerProvider,
Serializer serializer)
Initializes a token store with given
entityManagerProvider and serializer. |
JpaTokenStore(EntityManagerProvider entityManagerProvider,
Serializer serializer,
TemporalAmount claimTimeout,
String nodeId)
Initialize the JpaTokenStore with given resources.
|
| Constructor and Description |
|---|
JpaEventStorageEngine(EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager)
Initializes an EventStorageEngine that uses JPA to store and load events.
|
JpaEventStorageEngine(Serializer serializer,
EventUpcaster upcasterChain,
DataSource dataSource,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager)
Initializes an EventStorageEngine that uses JPA to store and load events.
|
JpaEventStorageEngine(Serializer serializer,
EventUpcaster upcasterChain,
PersistenceExceptionResolver persistenceExceptionResolver,
Integer batchSize,
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager,
Long lowestGlobalSequence,
Integer maxGapOffset,
boolean explicitFlush)
Initializes an EventStorageEngine that uses JPA to store and load events.
|
Copyright © 2010–2017. All rights reserved.