Class MongoDbRepositoryTransition
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryTransition
org.springframework.statemachine.data.mongodb.MongoDbRepositoryTransition
MongoDb entity for transitions.
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionInstantiates a new MongoDb repository transition.MongoDbRepositoryTransition
(String machineId, MongoDbRepositoryState source, MongoDbRepositoryState target, String event) Instantiates a new MongoDb repository transition.MongoDbRepositoryTransition
(String machineId, MongoDbRepositoryState source, MongoDbRepositoryState target, String event, Set<MongoDbRepositoryAction> actions) Instantiates a new MongoDb repository transition.MongoDbRepositoryTransition
(MongoDbRepositoryState source, MongoDbRepositoryState target, String event) Instantiates a new MongoDb 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<MongoDbRepositoryAction> actions) void
void
setGuard
(MongoDbRepositoryGuard guard) void
setKind
(TransitionKind kind) void
setMachineId
(String machineId) void
setSource
(MongoDbRepositoryState source) void
setTarget
(MongoDbRepositoryState target) toString()
-
Constructor Details
-
MongoDbRepositoryTransition
public MongoDbRepositoryTransition()Instantiates a new MongoDb repository transition. -
MongoDbRepositoryTransition
public MongoDbRepositoryTransition(MongoDbRepositoryState source, MongoDbRepositoryState target, String event) Instantiates a new MongoDb repository transition.- Parameters:
source
- the sourcetarget
- the targetevent
- the event
-
MongoDbRepositoryTransition
public MongoDbRepositoryTransition(String machineId, MongoDbRepositoryState source, MongoDbRepositoryState target, String event) Instantiates a new MongoDb repository transition.- Parameters:
machineId
- the machine idsource
- the sourcetarget
- the targetevent
- the event
-
MongoDbRepositoryTransition
public MongoDbRepositoryTransition(String machineId, MongoDbRepositoryState source, MongoDbRepositoryState target, String event, Set<MongoDbRepositoryAction> actions) Instantiates a new MongoDb 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
-