Modifier and Type | Class and Description |
---|---|
static class |
Order.Attribute |
static interface |
Order.Behaviour
On entry procedures for this entity.
|
static interface |
Order.BehaviourFactory
A factory that creates behaviour for a given entity.
|
static class |
Order.Events
Event declarations.
|
static class |
Order.State
The list of all states from the state machine for this entity.
|
Constructor and Description |
---|
Order()
No argument constructor required by JPA.
|
Order(String id)
Constructor using id.
|
Modifier and Type | Method and Description |
---|---|
Order |
cancelSignal(Event<Order> event) |
Order |
cancelSignal(String eventSignatureKey) |
static Order |
create(CreationEvent<Order> creationEvent)
Static creator method using CreationEvent.
|
static Order |
create(javax.persistence.EntityManager em,
CreationEvent<Order> event)
Static creator method associated with the creation transition to 'Preparing' via event 'Create'.
|
static Order |
create(String id)
Static creator method using id.
|
static Order.BehaviourFactory |
createBehaviourFactory(Class<? extends Order.Behaviour> cls)
Returns a BehaviourFactory on the assumption that the given class
has a single constructor with one parameter of type Order.
|
Order |
delete()
Same as this.remove()
|
Order |
event(Event<Order> 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<Order> |
find(String id) |
Integer |
getAttempts()
Returns attempts.
|
static Order.BehaviourFactory |
getBehaviourFactory()
Returns the singleton BehaviourFactory for this.
|
String |
getComment()
Returns comment.
|
Depot |
getDepot_R1()
Getter.
|
String |
getDescription()
Returns description.
|
String |
getDestinationEmail()
Returns destinationEmail.
|
String |
getFromAddress()
Returns fromAddress.
|
String |
getId()
Returns the identifier for this entity.
|
Integer |
getMaxAttempts()
Returns maxAttempts.
|
String |
getSenderEmail()
Returns senderEmail.
|
String |
getState()
For internal use only by the state machine but is persisted by the jpa provider.
|
String |
getStatus()
Returns status.
|
String |
getToAddress()
Returns toAddress.
|
EntityHelper |
helper()
Returns the Helper for this instance.
|
Order |
load() |
Order |
load(javax.persistence.EntityManager em)
Does a merge then a refresh and returns a new updated merged instance.
|
Order |
merge(javax.persistence.EntityManager em)
Same as EntityManager.merge() except allows method chaining.
|
Order |
persist()
Same as
persist(Context.em()) . |
Order |
persist(javax.persistence.EntityManager em)
Same as EntityManager.persist() except allows method chaining.
|
Order |
refresh(javax.persistence.EntityManager em)
Same as EntityManager.refresh() except inverted to facilitate method chaining.
|
Order |
relateAcrossR1(Depot depot_R1)
MANY Order was last at ZERO_ONE Depot
|
Order |
remove()
Same as EntityManager.remove() except inverted to facilitate method chaining.
|
Order |
remove(javax.persistence.EntityManager em)
Same as EntityManager.remove() except inverted to facilitate method chaining.
|
static SelectBuilder<Order> |
select() |
static SelectBuilder<Order> |
select(BooleanExpression<Order> where) |
Order |
setAttempts_(Integer attempts)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setAttempts(Integer attempts)
Sets attempts to the given value.
|
static void |
setBehaviourFactory(Class<? extends Order.Behaviour> cls)
Sets the BehaviourFactory for all instances of
this class using the given Behaviour class as the base.
|
static void |
setBehaviourFactory(Order.BehaviourFactory factory)
Sets the BehaviourFactory for all instances of
this class.
|
Order |
setComment_(String comment)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setComment(String comment)
Sets comment to the given value.
|
void |
setDepot_R1(Depot depot_R1)
Setter.
|
Order |
setDescription_(String description)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setDescription(String description)
Sets description to the given value.
|
Order |
setDestinationEmail_(String destinationEmail)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setDestinationEmail(String destinationEmail)
Sets destinationEmail to the given value.
|
Order |
setFromAddress_(String fromAddress)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setFromAddress(String fromAddress)
Sets fromAddress to the given value.
|
Order |
setId_(String id) |
void |
setId(String id) |
Order |
setMaxAttempts_(Integer maxAttempts)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setMaxAttempts(Integer maxAttempts)
Sets maxAttempts to the given value.
|
Order |
setSenderEmail_(String senderEmail)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setSenderEmail(String senderEmail)
Sets senderEmail to the given value.
|
void |
setState(Order.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.
|
Order |
setStatus_(String status)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setStatus(String status)
Sets status to the given value.
|
Order |
setToAddress_(String toAddress)
Sets the attribute to the given value and returns this
(enables method chaining).
|
void |
setToAddress(String toAddress)
Sets toAddress to the given value.
|
Order |
signal(Event<Order> event)
Asychronously queues the given signal against this entity for processing.
|
Order |
signal(Event<Order> event,
scala.concurrent.duration.Duration delay)
Asychronously queues the given signal against this entity for processing
after the delay specified.
|
Order |
signal(Event<Order> 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.
|
Order |
unrelateAcrossR1(Depot depot_R1)
MANY Order was last at ZERO_ONE Depot
|
public Order()
public Order(String id)
public static void setBehaviourFactory(Order.BehaviourFactory factory)
public static void setBehaviourFactory(Class<? extends Order.Behaviour> cls)
public static Order.BehaviourFactory getBehaviourFactory()
public static Order create(CreationEvent<Order> creationEvent)
public EntityHelper helper()
public String uniqueId()
public Depot getDepot_R1()
public void setDepot_R1(Depot depot_R1)
public Order unrelateAcrossR1(Depot depot_R1)
public String getId()
public void setId(String id)
public String getDescription()
public void setDescription(String description)
public Order setDescription_(String description)
public String getFromAddress()
public void setFromAddress(String fromAddress)
public Order setFromAddress_(String fromAddress)
public String getToAddress()
public void setToAddress(String toAddress)
public Order setToAddress_(String toAddress)
public String getDestinationEmail()
public void setDestinationEmail(String destinationEmail)
public Order setDestinationEmail_(String destinationEmail)
public String getSenderEmail()
public void setSenderEmail(String senderEmail)
public Order setSenderEmail_(String senderEmail)
public Integer getMaxAttempts()
public void setMaxAttempts(Integer maxAttempts)
public Order setMaxAttempts_(Integer maxAttempts)
public Integer getAttempts()
public void setAttempts(Integer attempts)
public Order setAttempts_(Integer attempts)
public String getComment()
public void setComment(String comment)
public Order setComment_(String comment)
public String getStatus()
public void setStatus(String status)
public Order setStatus_(String status)
public String getState()
public void setState(String state)
public void setState(Order.State state)
public Order signal(Event<Order> event)
public Order signal(Event<Order> event, scala.concurrent.duration.Duration delay)
public Order signal(Event<Order> event, long time)
public Order event(Event<Order> event)
public static Order create(javax.persistence.EntityManager em, CreationEvent<Order> event)
public Order merge(javax.persistence.EntityManager em)
public Order persist(javax.persistence.EntityManager em)
public Order persist()
persist(Context.em())
. Returns this.public Order remove(javax.persistence.EntityManager em)
public Order remove()
public Order delete()
public Order refresh(javax.persistence.EntityManager em)
public Order load(javax.persistence.EntityManager em)
public Order load()
public static Order.BehaviourFactory createBehaviourFactory(Class<? extends Order.Behaviour> cls)
public static SelectBuilder<Order> select(BooleanExpression<Order> where)
public static SelectBuilder<Order> select()
Copyright © 2012–2022. All rights reserved.