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
ConstructorDescriptionInstantiates 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.void
setActions
(Set<JpaRepositoryAction> actions) void
void
setGuard
(JpaRepositoryGuard guard) void
setKind
(TransitionKind kind) void
setMachineId
(String machineId) void
setSource
(JpaRepositoryState source) void
setTarget
(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:RepositoryTransition
Gets the machine id.- Specified by:
getMachineId
in classRepositoryTransition
- Returns:
- the machine id
-
setMachineId
-
getSource
Description copied from class:RepositoryTransition
Gets the source.- Specified by:
getSource
in classRepositoryTransition
- Returns:
- the source
-
setSource
-
getTarget
Description copied from class:RepositoryTransition
Gets the target.- Specified by:
getTarget
in classRepositoryTransition
- Returns:
- the target
-
setTarget
-
getEvent
Description copied from class:RepositoryTransition
Gets the event.- Specified by:
getEvent
in classRepositoryTransition
- Returns:
- the event
-
setEvent
-
getActions
Description copied from class:RepositoryTransition
Gets the actions.- Specified by:
getActions
in classRepositoryTransition
- Returns:
- the actions
-
setActions
-
getGuard
Description copied from class:RepositoryTransition
Gets the guard.- Specified by:
getGuard
in classRepositoryTransition
- Returns:
- the guard
-
setGuard
-
getKind
Description copied from class:RepositoryTransition
Gets the transition kind.- Specified by:
getKind
in classRepositoryTransition
- Returns:
- the transition kind
-
setKind
-
toString
-