S
- the type of stateE
- the type of eventpublic class JpaRepositoryStateMachinePersist<S,E> extends RepositoryStateMachinePersist<JpaRepositoryStateMachine,S,E>
JPA
based implementation of a RepositoryStateMachinePersist
.Constructor and Description |
---|
JpaRepositoryStateMachinePersist(JpaStateMachineRepository jpaStateMachineRepository)
Instantiates a new jpa repository state machine persist.
|
JpaRepositoryStateMachinePersist(JpaStateMachineRepository jpaStateMachineRepository,
StateMachineSerialisationService<S,E> serialisationService)
Instantiates a new jpa repository state machine persist.
|
Modifier and Type | Method and Description |
---|---|
protected JpaRepositoryStateMachine |
build(StateMachineContext<S,E> context,
java.lang.Object contextObj,
byte[] serialisedContext)
Builds the generic
RepositoryStateMachine entity. |
protected StateMachineRepository<JpaRepositoryStateMachine> |
getRepository()
Gets the repository.
|
read, write
public JpaRepositoryStateMachinePersist(JpaStateMachineRepository jpaStateMachineRepository)
jpaStateMachineRepository
- the jpa state machine repositorypublic JpaRepositoryStateMachinePersist(JpaStateMachineRepository jpaStateMachineRepository, StateMachineSerialisationService<S,E> serialisationService)
jpaStateMachineRepository
- the jpa state machine repositoryserialisationService
- the serialisation serviceprotected StateMachineRepository<JpaRepositoryStateMachine> getRepository()
RepositoryStateMachinePersist
getRepository
in class RepositoryStateMachinePersist<JpaRepositoryStateMachine,S,E>
protected JpaRepositoryStateMachine build(StateMachineContext<S,E> context, java.lang.Object contextObj, byte[] serialisedContext)
RepositoryStateMachinePersist
RepositoryStateMachine
entity.build
in class RepositoryStateMachinePersist<JpaRepositoryStateMachine,S,E>
context
- the contextcontextObj
- the context objserialisedContext
- the serialised context