|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
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
public class 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
Field 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 String identifier
public Date createdDate
public String shippingMethod
public SmartEntityReference customer
public com.beasys.commerce.axiom.contact.Address shippingAddress
public Money shipping
public SmartEntityReference paymentTransaction
public String orderStatus
public String splittingPreference
public SmartCollectionReference orderLines
public Money price
public String specialInstructions
public double subtotal
Constructor Detail |
---|
public OrderImpl()
Method Detail |
---|
public OrderValue getOrderByValue() throws RemoteException
RemoteException
public void setOrderByValue(OrderValue value) throws RemoteException
OrderValue
- the Order value object
RemoteException
public OrderPk ejbCreate(OrderPk orderPk) throws CreateException
CreateException
protected void bscInitializeAttributes(OrderPk orderPk) throws CreateException
CreateException
public void ejbPostCreate(OrderPk orderPk) throws CreateException
CreateException
public void ejbLoad() throws EJBException
EntityImpl
ejbLoad
in class EntityImpl
EJBException
public void ejbStore() throws EJBException
EntityImpl
ejbStore
in class EntityImpl
EJBException
public void ejbRemove() throws RemoveException
EntityImpl
ejbRemove
in class EntityImpl
RemoveException
public void ejbActivate() throws EJBException
EntityImpl
ejbActivate
in class EntityImpl
EJBException
public void ejbPassivate() throws EJBException
EntityImpl
ejbPassivate
in class EntityImpl
EJBException
public void setEntityContext(EntityContext ctx) throws EJBException
EntityImpl
setEntityContext
in class EntityImpl
EJBException
public void unsetEntityContext() throws EJBException
EntityImpl
unsetEntityContext
in class EntityImpl
EJBException
public OrderPk ejbFindByPrimaryKey(OrderPk pk) throws FinderException
FinderException
public Date getCreatedDate()
public void setCreatedDate(Date createdDate)
createdDate
- createdDate to be addedpublic String getShippingMethod()
public void setShippingMethod(String shippingMethod)
shippingMethod
- shippingMethod to be addedpublic String getIdentifier()
public void setIdentifier(String value)
public SmartEntityReference getCustomerReference()
public void setCustomerReference(SmartEntityReference smartEntityReference)
public Customer getCustomer()
public void setCustomer(Customer customer)
customer
- customer to be addedpublic com.beasys.commerce.axiom.contact.Address getShippingAddress()
public void setShippingAddress(com.beasys.commerce.axiom.contact.Address shippingAddress)
shippingAddress
- shippingAddress to be addedpublic Money getShipping()
public void setShipping(Money shipping)
shipping
- shipping to be addedpublic SmartEntityReference getPaymentTransactionReference()
public void setPaymentTransactionReference(SmartEntityReference smartEntityReference)
public PaymentTransaction getPaymentTransaction()
public void setPaymentTransaction(PaymentTransaction paymentTransaction)
paymentTransaction
- paymentTransaction to be addedpublic String getOrderStatus()
public void setOrderStatus(String orderStatus)
orderStatus
- orderStatus to be addedpublic String getSplittingPreference()
public void setSplittingPreference(String splittingPreference)
splittingPreference
- splittingPreference to be addedpublic SmartCollectionReference getOrderLinesCollectionReference()
public void setOrderLinesCollectionReference(SmartCollectionReference smartCollectionReference)
public Collection getOrderLinesCollection()
public void setOrderLinesCollection(Collection collection)
public boolean addOrderLines(OrderLine element)
public boolean addOrderLinesCollection(Collection collection)
public void clearOrderLinesCollection()
public boolean containsOrderLines(OrderLine element)
public boolean containsOrderLinesCollection(Collection collection)
public boolean equalsOrderLinesCollection(Object object)
public int orderLinesCollectionHashCode()
public boolean isOrderLinesCollectionEmpty()
public Iterator orderLinesCollectionIterator()
public boolean removeOrderLines(OrderLine element)
public boolean removeOrderLinesCollection(Collection collection)
public boolean retainOrderLinesCollection(Collection collection)
public Money getPrice()
public void setPrice(Money price)
price
- price to be addedpublic void setSubtotal(double subtotal)
subtotal
- for the order.public double getSubtotal()
public String getSpecialInstructions()
public void setSpecialInstructions(String specialInstructions)
specialInstructions
- specialInstructions to be addedpublic int orderLinesCollectionSize()
public Collection ejbFindByStatus(String findStatus) throws FinderException
FinderException
public Collection ejbFindByCustomer(String customerIdentifier) throws FinderException
FinderException
public Collection ejbFindByDate(Date from, Date to) throws FinderException
FinderException
public Money getTotal(int totalType) throws InvalidArgumentException
total
- type
InvalidArgumentException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |