| Modifier and Type | Class and Description |
|---|---|
static class |
Depot.Attribute |
static interface |
Depot.Behaviour
On entry procedures for this entity.
|
static interface |
Depot.BehaviourFactory
A factory that creates behaviour for a given entity.
|
static class |
Depot.Events
Event declarations.
|
static class |
Depot.State
The list of all states from the state machine for this entity.
|
| Constructor and Description |
|---|
Depot()
No argument constructor required by JPA.
|
Depot(String id)
Constructor using id.
|
| Modifier and Type | Method and Description |
|---|---|
Depot |
cancelSignal(Event<Depot> event) |
Depot |
cancelSignal(String eventSignatureKey) |
static Depot |
create(CreationEvent<Depot> creationEvent)
Static creator method using CreationEvent.
|
static Depot |
create(javax.persistence.EntityManager em,
CreationEvent<Depot> event)
Static creator method associated with the creation transition to 'Created' via event 'Create'.
|
static Depot |
create(String id)
Static creator method using id.
|
static Depot.BehaviourFactory |
createBehaviourFactory(Class<? extends Depot.Behaviour> cls)
Returns a BehaviourFactory on the assumption that the given class
has a single constructor with one parameter of type Depot.
|
Depot |
delete()
Same as this.remove()
|
Depot |
event(Event<Depot> event)
Synchronously runs the on entry procedure associated
with this event and also any signals to self that are
made during the procedure.
|
static com.google.common.base.Optional<Depot> |
find(String id) |
static Depot.BehaviourFactory |
getBehaviourFactory()
Returns the singleton BehaviourFactory for this.
|
String |
getId()
Returns the identifier for this entity.
|
Double |
getLatitude()
Returns latitude.
|
Double |
getLongitude()
Returns longitude.
|
String |
getName()
Returns name.
|
Set<Order> |
getOrder_R1()
Getter.
|
String |
getState()
For internal use only by the state machine but is persisted by the jpa provider.
|
EntityHelper |
helper()
Returns the Helper for this instance.
|
Depot |
load() |
Depot |
load(javax.persistence.EntityManager em)
Does a merge then a refresh and returns a new updated merged instance.
|
Depot |
merge(javax.persistence.EntityManager em)
Same as EntityManager.merge() except allows method chaining.
|
Depot |
persist()
Same as
persist(Context.em()). |
Depot |
persist(javax.persistence.EntityManager em)
Same as EntityManager.persist() except allows method chaining.
|
Depot |
refresh(javax.persistence.EntityManager em)
Same as EntityManager.refresh() except inverted to facilitate method chaining.
|
Depot |
relateAcrossR1(Order order_R1)
ZERO_ONE Depot is last location of MANY Order
|
Depot |
remove()
Same as EntityManager.remove() except inverted to facilitate method chaining.
|
Depot |
remove(javax.persistence.EntityManager em)
Same as EntityManager.remove() except inverted to facilitate method chaining.
|
static SelectBuilder<Depot> |
select() |
static SelectBuilder<Depot> |
select(BooleanExpression<Depot> where) |
static void |
setBehaviourFactory(Class<? extends Depot.Behaviour> cls)
Sets the BehaviourFactory for all instances of
this class using the given Behaviour class as the base.
|
static void |
setBehaviourFactory(Depot.BehaviourFactory factory)
Sets the BehaviourFactory for all instances of
this class.
|
Depot |
setId_(String id) |
void |
setId(String id) |
Depot |
setLatitude_(Double latitude)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setLatitude(Double latitude)
Sets latitude to the given value.
|
Depot |
setLongitude_(Double longitude)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setLongitude(Double longitude)
Sets longitude to the given value.
|
Depot |
setName_(String name)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setName(String name)
Sets name to the given value.
|
void |
setOrder_R1(Set<Order> order_R1)
Setter.
|
void |
setState(Depot.State state)
Sets the current state.
|
void |
setState(String state)
For internal use only by the state machine but is persisted by the jpa provider.
|
Depot |
signal(Event<Depot> event)
Asychronously queues the given signal against this entity for processing.
|
Depot |
signal(Event<Depot> event,
scala.concurrent.duration.Duration delay)
Asychronously queues the given signal against this entity for processing
after the delay specified.
|
Depot |
signal(Event<Depot> event,
long time)
Asychronously queues the given signal against this entity for processing
at the epoch time in ms specified.
|
String |
uniqueId()
Returns a unique id for this instance as a String.
|
Depot |
unrelateAcrossR1(Order order_R1)
ZERO_ONE Depot is last location of MANY Order
|
public Depot()
public Depot(String id)
public static void setBehaviourFactory(Depot.BehaviourFactory factory)
public static void setBehaviourFactory(Class<? extends Depot.Behaviour> cls)
public static Depot.BehaviourFactory getBehaviourFactory()
public static Depot create(CreationEvent<Depot> creationEvent)
public EntityHelper helper()
public String uniqueId()
public void setOrder_R1(Set<Order> order_R1)
public Depot relateAcrossR1(Order order_R1)
public Depot unrelateAcrossR1(Order order_R1)
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public Depot setName_(String name)
public Double getLatitude()
public void setLatitude(Double latitude)
public Depot setLatitude_(Double latitude)
public Double getLongitude()
public void setLongitude(Double longitude)
public Depot setLongitude_(Double longitude)
public String getState()
public void setState(String state)
public void setState(Depot.State state)
public Depot signal(Event<Depot> event)
public Depot signal(Event<Depot> event, scala.concurrent.duration.Duration delay)
public Depot signal(Event<Depot> event, long time)
public Depot event(Event<Depot> event)
public static Depot create(javax.persistence.EntityManager em, CreationEvent<Depot> event)
public Depot merge(javax.persistence.EntityManager em)
public Depot persist(javax.persistence.EntityManager em)
public Depot persist()
persist(Context.em()). Returns this.public Depot remove(javax.persistence.EntityManager em)
public Depot remove()
public Depot delete()
public Depot refresh(javax.persistence.EntityManager em)
public Depot load(javax.persistence.EntityManager em)
public Depot load()
public static Depot.BehaviourFactory createBehaviourFactory(Class<? extends Depot.Behaviour> cls)
public static SelectBuilder<Depot> select(BooleanExpression<Depot> where)
public static SelectBuilder<Depot> select()
Copyright © 2012–2022. All rights reserved.