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
ConstructorsConstructorDescriptionInstantiates 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.voidsetDeferredEvents(Set<String> deferredEvents) voidsetEntryActions(Set<JpaRepositoryAction> entryActions) voidsetExitActions(Set<JpaRepositoryAction> exitActions) voidsetInitial(Boolean initial) voidsetInitialAction(JpaRepositoryAction initialAction) voidsetKind(PseudoStateKind kind) voidsetMachineId(String machineId) voidsetParentState(JpaRepositoryState parentState) voidvoidvoidsetStateActions(Set<JpaRepositoryAction> stateActions) voidsetSubmachineId(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:RepositoryStateGets the machine id.- Specified by:
getMachineIdin classRepositoryState- Returns:
- the machine id
-
setMachineId
-
getRegion
Description copied from class:RepositoryStateGets the region.- Specified by:
getRegionin classRepositoryState- Returns:
- the region
-
setRegion
-
getParentState
Description copied from class:RepositoryStateGets the parent state.- Specified by:
getParentStatein classRepositoryState- Returns:
- the parent state
-
setParentState
-
getState
Description copied from class:RepositoryStateGets the state.- Specified by:
getStatein classRepositoryState- Returns:
- the state
-
setState
-
getKind
Description copied from class:RepositoryStateGets the pseudo state kind.- Specified by:
getKindin classRepositoryState- Returns:
- the pseudo state kind
-
setKind
-
isInitial
Description copied from class:RepositoryStateChecks if is initial.- Specified by:
isInitialin classRepositoryState- Returns:
- true, if is initial
-
setInitial
-
getInitialAction
Description copied from class:RepositoryStateGets the initial action. This is any meaningful if state is initial state.- Specified by:
getInitialActionin classRepositoryState- Returns:
- the initial action
-
setInitialAction
-
getStateActions
Description copied from class:RepositoryStateGets the state actions.- Specified by:
getStateActionsin classRepositoryState- Returns:
- the state actions
-
setStateActions
-
getEntryActions
Description copied from class:RepositoryStateGets the entry actions.- Specified by:
getEntryActionsin classRepositoryState- Returns:
- the entry actions
-
setEntryActions
-
getExitActions
Description copied from class:RepositoryStateGets the exit actions.- Specified by:
getExitActionsin classRepositoryState- Returns:
- the exit actions
-
setExitActions
-
getDeferredEvents
Description copied from class:RepositoryStateGets the deferred events.- Specified by:
getDeferredEventsin classRepositoryState- Returns:
- the deferred events
-
setDeferredEvents
-
getSubmachineId
Description copied from class:RepositoryStateGets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.- Specified by:
getSubmachineIdin classRepositoryState- Returns:
- the submachine id
-
setSubmachineId
-
toString
-