Class JpaRepositoryState
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryState
org.springframework.statemachine.data.jpa.JpaRepositoryState
JPA entity for states.
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionInstantiates a new jpa repository state.JpaRepositoryState
(String state) Instantiates a new jpa repository state.JpaRepositoryState
(String state, Boolean initial) Instantiates a new jpa repository state.JpaRepositoryState
(String machineId, String state, Boolean initial) Instantiates a new jpa repository state.JpaRepositoryState
(String machineId, JpaRepositoryState parentState, String state, Boolean initial) Instantiates a new jpa repository state.JpaRepositoryState
(String machineId, JpaRepositoryState parentState, String state, Boolean initial, Set<JpaRepositoryAction> stateActions, Set<JpaRepositoryAction> entryActions, Set<JpaRepositoryAction> exitActions) Instantiates a new jpa repository state. -
Method Summary
Modifier and TypeMethodDescriptionGets the deferred events.Gets the entry actions.Gets the exit actions.Gets the initial action.getKind()
Gets the pseudo state kind.Gets the machine id.Gets the parent state.Gets the region.getState()
Gets the state.Gets the state actions.Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.Checks if is initial.void
setDeferredEvents
(Set<String> deferredEvents) void
setEntryActions
(Set<JpaRepositoryAction> entryActions) void
setExitActions
(Set<JpaRepositoryAction> exitActions) void
setInitial
(Boolean initial) void
setInitialAction
(JpaRepositoryAction initialAction) void
setKind
(PseudoStateKind kind) void
setMachineId
(String machineId) void
setParentState
(JpaRepositoryState parentState) void
void
void
setStateActions
(Set<JpaRepositoryAction> stateActions) void
setSubmachineId
(String submachineId) toString()
-
Constructor Details
-
JpaRepositoryState
public JpaRepositoryState()Instantiates a new jpa repository state. -
JpaRepositoryState
Instantiates a new jpa repository state.- Parameters:
state
- the state
-
JpaRepositoryState
Instantiates a new jpa repository state.- Parameters:
state
- the stateinitial
- the initial
-
JpaRepositoryState
Instantiates a new jpa repository state.- Parameters:
machineId
- the machine idstate
- the stateinitial
- the initial
-
JpaRepositoryState
public JpaRepositoryState(String machineId, JpaRepositoryState parentState, String state, Boolean initial) Instantiates a new jpa repository state.- Parameters:
machineId
- the machine idparentState
- the parent statestate
- the stateinitial
- the initial
-
JpaRepositoryState
public JpaRepositoryState(String machineId, JpaRepositoryState parentState, String state, Boolean initial, Set<JpaRepositoryAction> stateActions, Set<JpaRepositoryAction> entryActions, Set<JpaRepositoryAction> exitActions) Instantiates a new jpa repository state.- Parameters:
machineId
- the machine idparentState
- the parent statestate
- the stateinitial
- the initialstateActions
- the state actionsentryActions
- the entry actionsexitActions
- the exit actions
-
-
Method Details
-
getMachineId
Description copied from class:RepositoryState
Gets the machine id.- Specified by:
getMachineId
in classRepositoryState
- Returns:
- the machine id
-
setMachineId
-
getRegion
Description copied from class:RepositoryState
Gets the region.- Specified by:
getRegion
in classRepositoryState
- Returns:
- the region
-
setRegion
-
getParentState
Description copied from class:RepositoryState
Gets the parent state.- Specified by:
getParentState
in classRepositoryState
- Returns:
- the parent state
-
setParentState
-
getState
Description copied from class:RepositoryState
Gets the state.- Specified by:
getState
in classRepositoryState
- Returns:
- the state
-
setState
-
getKind
Description copied from class:RepositoryState
Gets the pseudo state kind.- Specified by:
getKind
in classRepositoryState
- Returns:
- the pseudo state kind
-
setKind
-
isInitial
Description copied from class:RepositoryState
Checks if is initial.- Specified by:
isInitial
in classRepositoryState
- Returns:
- true, if is initial
-
setInitial
-
getInitialAction
Description copied from class:RepositoryState
Gets the initial action. This is any meaningful if state is initial state.- Specified by:
getInitialAction
in classRepositoryState
- Returns:
- the initial action
-
setInitialAction
-
getStateActions
Description copied from class:RepositoryState
Gets the state actions.- Specified by:
getStateActions
in classRepositoryState
- Returns:
- the state actions
-
setStateActions
-
getEntryActions
Description copied from class:RepositoryState
Gets the entry actions.- Specified by:
getEntryActions
in classRepositoryState
- Returns:
- the entry actions
-
setEntryActions
-
getExitActions
Description copied from class:RepositoryState
Gets the exit actions.- Specified by:
getExitActions
in classRepositoryState
- Returns:
- the exit actions
-
setExitActions
-
getDeferredEvents
Description copied from class:RepositoryState
Gets the deferred events.- Specified by:
getDeferredEvents
in classRepositoryState
- Returns:
- the deferred events
-
setDeferredEvents
-
getSubmachineId
Description copied from class:RepositoryState
Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.- Specified by:
getSubmachineId
in classRepositoryState
- Returns:
- the submachine id
-
setSubmachineId
-
toString
-