|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.EntityImpl
com.beasys.commerce.ebusiness.order.OrderImpl
This is a class that will implement the business process of order fulfillment.
Primary Key = com.beasys.commerce.ebusiness.order.OrderPk
Order
,
OrderHome
,
OrderValue
,
Serialized FormField Summary | |
Date |
createdDate
Containment: By Value Multiplicity: 1:1 |
SmartEntityReference |
customer
Order has a reference to the Customer that committed it Containment: By Reference Multiplicity: 1:1 |
String |
identifier
Containment: By Value Multiplicity: 1:1 PRIMARY KEY FIELD |
SmartCollectionReference |
orderLines
Containment: By Value Multiplicity: 0:N Interface: java.util.Collection |
String |
orderStatus
Containment: By Value Multiplicity: 1:1 |
SmartEntityReference |
paymentTransaction
Containment: By Reference Multiplicity: 1:1 |
Money |
price
Containment: By Value Multiplicity: 1:1 |
Money |
shipping
Containment: By Value Multiplicity: 1:1 |
com.beasys.commerce.axiom.contact.Address |
shippingAddress
Containment: By Value Multiplicity: 1:1 |
String |
shippingMethod
Containment: By Value Multiplicity: 1:1 |
String |
specialInstructions
Containment: By Value Multiplicity: 1:1 |
String |
splittingPreference
Containment: By Value Multiplicity: 1:1 |
double |
subtotal
The subtotal for the order |
Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP |
Constructor Summary | |
OrderImpl()
|
Method Summary | |
boolean |
addOrderLines(OrderLine element)
Ensures that this collection contains the specified element (optional operation). |
boolean |
addOrderLinesCollection(Collection collection)
Adds all of the elements in the specified collection to this collection (optional operation). |
protected void |
bscInitializeAttributes(OrderPk orderPk)
|
void |
clearOrderLinesCollection()
Removes all of the elements from this collection (optional operation). |
boolean |
containsOrderLines(OrderLine element)
Returns true if this collection contains the specified element. |
boolean |
containsOrderLinesCollection(Collection collection)
Returns true if this collection contains all of the elements in the specified collection. |
void |
ejbActivate()
ejbActivate method. |
OrderPk |
ejbCreate(OrderPk orderPk)
|
Collection |
ejbFindByCustomer(String customerIdentifier)
Returns a list of Orders in the system that are associated with the specified Customer identifier. |
Collection |
ejbFindByDate(Date from,
Date to)
Returns a list of Orders in the system that fall within the given date range. |
OrderPk |
ejbFindByPrimaryKey(OrderPk pk)
|
Collection |
ejbFindByStatus(String findStatus)
Returns an enumeration of all the Orders in the system with the specified status. |
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(OrderPk orderPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
boolean |
equalsOrderLinesCollection(Object object)
Compares the specified object with this collection for equality. |
Date |
getCreatedDate()
Get the value of createdDate |
Customer |
getCustomer()
Get the remote object reference of customer |
SmartEntityReference |
getCustomerReference()
Get the SmartEntityReference for customer |
String |
getIdentifier()
|
OrderValue |
getOrderByValue()
Get all of Order's attributes. |
Collection |
getOrderLinesCollection()
Returns a deep copy of the entire collection |
SmartCollectionReference |
getOrderLinesCollectionReference()
Get the SmartCollectionReference for orderLines |
String |
getOrderStatus()
Get the value of orderStatus |
PaymentTransaction |
getPaymentTransaction()
Get the remote object reference of paymentTransaction |
SmartEntityReference |
getPaymentTransactionReference()
Get the SmartEntityReference for paymentTransaction |
Money |
getPrice()
Get the value of price |
Money |
getShipping()
Get the value of shipping |
com.beasys.commerce.axiom.contact.Address |
getShippingAddress()
Get the value of shippingAddress |
String |
getShippingMethod()
Get the value of shippingMethod |
String |
getSpecialInstructions()
Get the value of specialInstructions |
String |
getSplittingPreference()
Get the value of splittingPreference |
double |
getSubtotal()
Get the value of subtotal |
Money |
getTotal(int totalType)
Gets the shopping cart total for the given total type |
boolean |
isOrderLinesCollectionEmpty()
Returns true if this collection contains no elements. |
int |
orderLinesCollectionHashCode()
Returns the hash code value for this collection. |
Iterator |
orderLinesCollectionIterator()
Returns an iterator over the elements in this collection. |
int |
orderLinesCollectionSize()
Returns the number of elements in this collection. |
boolean |
removeOrderLines(OrderLine element)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeOrderLinesCollection(Collection collection)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
boolean |
retainOrderLinesCollection(Collection collection)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
void |
setCreatedDate(Date createdDate)
Set the value of createdDate |
void |
setCustomer(Customer customer)
Set the remote object reference of customer |
void |
setCustomerReference(SmartEntityReference smartEntityReference)
Set the SmartEntityReference for customer |
void |
setEntityContext(EntityContext ctx)
setEntityContext method. |
void |
setIdentifier(String value)
|
void |
setOrderByValue(OrderValue value)
Set all of Order's attributes to the passed in value. |
void |
setOrderLinesCollection(Collection collection)
Sets the entire collection |
void |
setOrderLinesCollectionReference(SmartCollectionReference smartCollectionReference)
Set the SmartCollectionReference for orderLines |
void |
setOrderStatus(String orderStatus)
Set the value of orderStatus |
void |
setPaymentTransaction(PaymentTransaction paymentTransaction)
Set the remote object reference of paymentTransaction |
void |
setPaymentTransactionReference(SmartEntityReference smartEntityReference)
Set the SmartEntityReference for paymentTransaction |
void |
setPrice(Money price)
Set the value of price |
void |
setShipping(Money shipping)
Set the value of shipping |
void |
setShippingAddress(com.beasys.commerce.axiom.contact.Address shippingAddress)
Set the value of shippingAddress |
void |
setShippingMethod(String shippingMethod)
Set the value of shippingMethod |
void |
setSpecialInstructions(String specialInstructions)
Set the value of specialInstructions |
void |
setSplittingPreference(String splittingPreference)
Set the value of splittingPreference |
void |
setSubtotal(double subtotal)
Sets the value of subtotal |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Date createdDate
public SmartEntityReference customer
public String identifier
public SmartCollectionReference orderLines
public String orderStatus
public SmartEntityReference paymentTransaction
public Money price
public Money shipping
public com.beasys.commerce.axiom.contact.Address shippingAddress
public String shippingMethod
public String specialInstructions
public String splittingPreference
public double subtotal
Constructor Detail |
public OrderImpl()
Method Detail |
public boolean addOrderLines(OrderLine element)
public boolean addOrderLinesCollection(Collection collection)
protected void bscInitializeAttributes(OrderPk orderPk) throws CreateException
CreateException
public void clearOrderLinesCollection()
public boolean containsOrderLines(OrderLine element)
public boolean containsOrderLinesCollection(Collection collection)
public void ejbActivate() throws EJBException
EntityImpl
ejbActivate
in interface EntityBean
ejbActivate
in class EntityImpl
EJBException
public OrderPk ejbCreate(OrderPk orderPk) throws CreateException
CreateException
public Collection ejbFindByCustomer(String customerIdentifier) throws FinderException
FinderException
public Collection ejbFindByDate(Date from, Date to) throws FinderException
FinderException
public OrderPk ejbFindByPrimaryKey(OrderPk pk) throws FinderException
FinderException
public Collection ejbFindByStatus(String findStatus) throws FinderException
FinderException
public void ejbLoad() throws EJBException
EntityImpl
ejbLoad
in interface EntityBean
ejbLoad
in class EntityImpl
EJBException
public void ejbPassivate() throws EJBException
EntityImpl
ejbPassivate
in interface EntityBean
ejbPassivate
in class EntityImpl
EJBException
public void ejbPostCreate(OrderPk orderPk) throws CreateException
CreateException
public void ejbRemove() throws RemoveException
EntityImpl
ejbRemove
in interface EntityBean
ejbRemove
in class EntityImpl
RemoveException
public void ejbStore() throws EJBException
EntityImpl
ejbStore
in interface EntityBean
ejbStore
in class EntityImpl
EJBException
public boolean equalsOrderLinesCollection(Object object)
public Date getCreatedDate()
public Customer getCustomer()
public SmartEntityReference getCustomerReference()
public String getIdentifier()
public OrderValue getOrderByValue() throws RemoteException
RemoteException
public Collection getOrderLinesCollection()
public SmartCollectionReference getOrderLinesCollectionReference()
public String getOrderStatus()
public PaymentTransaction getPaymentTransaction()
public SmartEntityReference getPaymentTransactionReference()
public Money getPrice()
public Money getShipping()
public com.beasys.commerce.axiom.contact.Address getShippingAddress()
public String getShippingMethod()
public String getSpecialInstructions()
public String getSplittingPreference()
public double getSubtotal()
public Money getTotal(int totalType) throws InvalidArgumentException
InvalidArgumentException
public boolean isOrderLinesCollectionEmpty()
public int orderLinesCollectionHashCode()
public Iterator orderLinesCollectionIterator()
public int orderLinesCollectionSize()
public boolean removeOrderLines(OrderLine element)
public boolean removeOrderLinesCollection(Collection collection)
public boolean retainOrderLinesCollection(Collection collection)
public void setCreatedDate(Date createdDate)
createdDate
- createdDate to be addedpublic void setCustomer(Customer customer)
customer
- customer to be addedpublic void setCustomerReference(SmartEntityReference smartEntityReference)
public void setEntityContext(EntityContext ctx) throws EJBException
EntityImpl
setEntityContext
in interface EntityBean
setEntityContext
in class EntityImpl
EJBException
public void setIdentifier(String value)
public void setOrderByValue(OrderValue value) throws RemoteException
RemoteException
public void setOrderLinesCollection(Collection collection)
public void setOrderLinesCollectionReference(SmartCollectionReference smartCollectionReference)
public void setOrderStatus(String orderStatus)
orderStatus
- orderStatus to be addedpublic void setPaymentTransaction(PaymentTransaction paymentTransaction)
paymentTransaction
- paymentTransaction to be addedpublic void setPaymentTransactionReference(SmartEntityReference smartEntityReference)
public void setPrice(Money price)
price
- price to be addedpublic void setShipping(Money shipping)
shipping
- shipping to be addedpublic void setShippingAddress(com.beasys.commerce.axiom.contact.Address shippingAddress)
shippingAddress
- shippingAddress to be addedpublic void setShippingMethod(String shippingMethod)
shippingMethod
- shippingMethod to be addedpublic void setSpecialInstructions(String specialInstructions)
specialInstructions
- specialInstructions to be addedpublic void setSplittingPreference(String splittingPreference)
splittingPreference
- splittingPreference to be addedpublic void setSubtotal(double subtotal)
subtotal
- for the order.public void unsetEntityContext() throws EJBException
EntityImpl
unsetEntityContext
in interface EntityBean
unsetEntityContext
in class EntityImpl
EJBException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |