Class JpaRepositoryTransition
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryTransition
org.springframework.statemachine.data.jpa.JpaRepositoryTransition
JPA entity for transitions.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new jpa repository transition.JpaRepositoryTransition(String machineId, JpaRepositoryState source, JpaRepositoryState target, String event) Instantiates a new jpa repository transition.JpaRepositoryTransition(String machineId, JpaRepositoryState source, JpaRepositoryState target, String event, Set<JpaRepositoryAction> actions) Instantiates a new jpa repository transition.JpaRepositoryTransition(JpaRepositoryState source, JpaRepositoryState target, String event) Instantiates a new jpa repository transition. -
Method Summary
Modifier and TypeMethodDescriptionGets the actions.getEvent()Gets the event.getGuard()Gets the guard.getKind()Gets the transition kind.Gets the machine id.Gets the source.Gets the target.voidsetActions(Set<JpaRepositoryAction> actions) voidvoidsetGuard(JpaRepositoryGuard guard) voidsetKind(TransitionKind kind) voidsetMachineId(String machineId) voidsetSource(JpaRepositoryState source) voidsetTarget(JpaRepositoryState target) toString()
-
Constructor Details
-
JpaRepositoryTransition
public JpaRepositoryTransition()Instantiates a new jpa repository transition. -
JpaRepositoryTransition
Instantiates a new jpa repository transition.- Parameters:
source- the sourcetarget- the targetevent- the event
-
JpaRepositoryTransition
public JpaRepositoryTransition(String machineId, JpaRepositoryState source, JpaRepositoryState target, String event) Instantiates a new jpa repository transition.- Parameters:
machineId- the machine idsource- the sourcetarget- the targetevent- the event
-
JpaRepositoryTransition
public JpaRepositoryTransition(String machineId, JpaRepositoryState source, JpaRepositoryState target, String event, Set<JpaRepositoryAction> actions) Instantiates a new jpa repository transition.- Parameters:
machineId- the machine idsource- the sourcetarget- the targetevent- the eventactions- the actions
-
-
Method Details
-
getMachineId
Description copied from class:RepositoryTransitionGets the machine id.- Specified by:
getMachineIdin classRepositoryTransition- Returns:
- the machine id
-
setMachineId
-
getSource
Description copied from class:RepositoryTransitionGets the source.- Specified by:
getSourcein classRepositoryTransition- Returns:
- the source
-
setSource
-
getTarget
Description copied from class:RepositoryTransitionGets the target.- Specified by:
getTargetin classRepositoryTransition- Returns:
- the target
-
setTarget
-
getEvent
Description copied from class:RepositoryTransitionGets the event.- Specified by:
getEventin classRepositoryTransition- Returns:
- the event
-
setEvent
-
getActions
Description copied from class:RepositoryTransitionGets the actions.- Specified by:
getActionsin classRepositoryTransition- Returns:
- the actions
-
setActions
-
getGuard
Description copied from class:RepositoryTransitionGets the guard.- Specified by:
getGuardin classRepositoryTransition- Returns:
- the guard
-
setGuard
-
getKind
Description copied from class:RepositoryTransitionGets the transition kind.- Specified by:
getKindin classRepositoryTransition- Returns:
- the transition kind
-
setKind
-
toString
-