Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.beasys.commerce.ebusiness.order
Class OrderImpl

    java.lang.Object
      com.beasys.commerce.foundation.EntityImpl
          com.beasys.commerce.ebusiness.order.OrderImpl

All Implemented Interfaces:
  EnterpriseBean, EntityBean, RelationalReference, Serializable

public class OrderImpl
extends EntityImpl

This is a class that will implement the business process of order fulfillment.

     Primary Key = com.beasys.commerce.ebusiness.order.OrderPk

See Also:
  `Order`, `OrderHome`, `OrderValue`, Serialized Form

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 com.beasys.commerce.foundation.EntityImpl
`bscInitializeAttributes, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, ejbCreate, ejbFindAll, ejbFindByPrimaryKey, ejbPostCreate, enumerateRelationalBinding, enumerateRelationalBinding, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, getEntityContext, getEnvironmentNamingContext, getEnvironmentProperty, getEnvironmentProperty, getEnvironmentPropertyCache, getPersistenceHelperPlugin, getSmartBMP, initSmartBMP, isModified, set__classIdentifier, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### identifier

    public String identifier

  - Containment: By Value
  - Multiplicity: 1:1
  - PRIMARY KEY FIELD

### createdDate

    public Date createdDate

  - Containment: By Value
  - Multiplicity: 1:1

### shippingMethod

    public String shippingMethod

  - Containment: By Value
  - Multiplicity: 1:1

### customer

    public SmartEntityReference customer

  Order has a reference to the Customer that committed it
  - Containment: By Reference
  - Multiplicity: 1:1

### shippingAddress

    public com.beasys.commerce.axiom.contact.Address shippingAddress

  - Containment: By Value
  - Multiplicity: 1:1

### shipping

    public Money shipping

  - Containment: By Value
  - Multiplicity: 1:1

### paymentTransaction

    public SmartEntityReference paymentTransaction

  - Containment: By Reference
  - Multiplicity: 1:1

### orderStatus

    public String orderStatus

  - Containment: By Value
  - Multiplicity: 1:1

### splittingPreference

    public String splittingPreference

  - Containment: By Value
  - Multiplicity: 1:1

### orderLines

    public SmartCollectionReference orderLines

  - Containment: By Value
  - Multiplicity: 0:N
  - Interface: java.util.Collection

### price

    public Money price

  - Containment: By Value
  - Multiplicity: 1:1

### specialInstructions

    public String specialInstructions

  - Containment: By Value
  - Multiplicity: 1:1

### subtotal

    public double subtotal

  The subtotal for the order

Constructor Detail

### OrderImpl

    public OrderImpl()

Method Detail

### getOrderByValue

    public OrderValue getOrderByValue()
                               throws RemoteException

  Get all of Order's attributes.

  Returns:
    OrderValue the Order value object
  Throws:
    `RemoteException`

### setOrderByValue

    public void setOrderByValue(OrderValue value)
                         throws RemoteException

  Set all of Order's attributes to the passed in value. Note: Primary key attributes are not set.

  Throws:
    `RemoteException`

### ejbCreate

    public OrderPk ejbCreate(OrderPk orderPk)
                      throws CreateException

  Throws:
    `CreateException`

### bscInitializeAttributes

    protected void bscInitializeAttributes(OrderPk orderPk)
                                    throws CreateException

  Throws:
    `CreateException`

### ejbPostCreate

    public void ejbPostCreate(OrderPk orderPk)
                       throws CreateException

  Throws:
    `CreateException`

### ejbLoad

    public void ejbLoad()
                 throws EJBException

  Description copied from class: `EntityImpl`
  ejbLoad method.

  Specified by:
    `ejbLoad` in interface `EntityBean`
  Overrides:
    `ejbLoad` in class `EntityImpl`
  Throws:
    `EJBException`

### ejbStore

    public void ejbStore()
                  throws EJBException

  Description copied from class: `EntityImpl`
  ejbStore method.

  Specified by:
    `ejbStore` in interface `EntityBean`
  Overrides:
    `ejbStore` in class `EntityImpl`
  Throws:
    `EJBException`

### ejbRemove

    public void ejbRemove()
                   throws RemoveException

  Description copied from class: `EntityImpl`
  ejbRemove method.

  Specified by:
    `ejbRemove` in interface `EntityBean`
  Overrides:
    `ejbRemove` in class `EntityImpl`
  Throws:
    `RemoveException`

### ejbActivate

    public void ejbActivate()
                     throws EJBException

  Description copied from class: `EntityImpl`
  ejbActivate method.

  Specified by:
    `ejbActivate` in interface `EntityBean`
  Overrides:
    `ejbActivate` in class `EntityImpl`
  Throws:
    `EJBException`

### ejbPassivate

    public void ejbPassivate()
                      throws EJBException

  Description copied from class: `EntityImpl`
  ejbPassivate method.

  Specified by:
    `ejbPassivate` in interface `EntityBean`
  Overrides:
    `ejbPassivate` in class `EntityImpl`
  Throws:
    `EJBException`

### setEntityContext

    public void setEntityContext(EntityContext ctx)
                          throws EJBException

  Description copied from class: `EntityImpl`
  setEntityContext method.

  Specified by:
    `setEntityContext` in interface `EntityBean`
  Overrides:
    `setEntityContext` in class `EntityImpl`
  Throws:
    `EJBException`

### unsetEntityContext

    public void unsetEntityContext()
                            throws EJBException

  Description copied from class: `EntityImpl`
  unsetEntityContext method.

  Specified by:
    `unsetEntityContext` in interface `EntityBean`
  Overrides:
    `unsetEntityContext` in class `EntityImpl`
  Throws:
    `EJBException`

### ejbFindByPrimaryKey

    public OrderPk ejbFindByPrimaryKey(OrderPk pk)
                                throws FinderException

  Throws:
    `FinderException`

### getCreatedDate

    public Date getCreatedDate()

  Get the value of createdDate

  Returns:
    createdDate.

### setCreatedDate

    public void setCreatedDate(Date createdDate)

  Set the value of createdDate

  Parameters:
    `createdDate` - createdDate to be added

### getShippingMethod

    public String getShippingMethod()

  Get the value of shippingMethod

  Returns:
    shippingMethod.

### setShippingMethod

    public void setShippingMethod(String shippingMethod)

  Set the value of shippingMethod

  Parameters:
    `shippingMethod` - shippingMethod to be added

### getIdentifier

    public String getIdentifier()

### setIdentifier

    public void setIdentifier(String value)

### getCustomerReference

    public SmartEntityReference getCustomerReference()

  Get the SmartEntityReference for customer

### setCustomerReference

    public void setCustomerReference(SmartEntityReference smartEntityReference)

  Set the SmartEntityReference for customer

### getCustomer

    public Customer getCustomer()

  Get the remote object reference of customer

  Returns:
    customer.

### setCustomer

    public void setCustomer(Customer customer)

  Set the remote object reference of customer

  Parameters:
    `customer` - customer to be added

### getShippingAddress

    public com.beasys.commerce.axiom.contact.Address getShippingAddress()

  Get the value of shippingAddress

  Returns:
    shippingAddress.

### setShippingAddress

    public void setShippingAddress(com.beasys.commerce.axiom.contact.Address shippingAddress)

  Set the value of shippingAddress

  Parameters:
    `shippingAddress` - shippingAddress to be added

### getShipping

    public Money getShipping()

  Get the value of shipping

  Returns:
    shipping.

### setShipping

    public void setShipping(Money shipping)

  Set the value of shipping

  Parameters:
    `shipping` - shipping to be added

### getPaymentTransactionReference

    public SmartEntityReference getPaymentTransactionReference()

  Get the SmartEntityReference for paymentTransaction

### setPaymentTransactionReference

    public void setPaymentTransactionReference(SmartEntityReference smartEntityReference)

  Set the SmartEntityReference for paymentTransaction

### getPaymentTransaction

    public PaymentTransaction getPaymentTransaction()

  Get the remote object reference of paymentTransaction

  Returns:
    paymentTransaction.

### setPaymentTransaction

    public void setPaymentTransaction(PaymentTransaction paymentTransaction)

  Set the remote object reference of paymentTransaction

  Parameters:
    `paymentTransaction` - paymentTransaction to be added

### getOrderStatus

    public String getOrderStatus()

  Get the value of orderStatus

  Returns:
    orderStatus.

### setOrderStatus

    public void setOrderStatus(String orderStatus)

  Set the value of orderStatus

  Parameters:
    `orderStatus` - orderStatus to be added

### getSplittingPreference

    public String getSplittingPreference()

  Get the value of splittingPreference

  Returns:
    splittingPreference.

### setSplittingPreference

    public void setSplittingPreference(String splittingPreference)

  Set the value of splittingPreference

  Parameters:
    `splittingPreference` - splittingPreference to be added

### getOrderLinesCollectionReference

    public SmartCollectionReference getOrderLinesCollectionReference()

  Get the SmartCollectionReference for orderLines

### setOrderLinesCollectionReference

    public void setOrderLinesCollectionReference(SmartCollectionReference smartCollectionReference)

  Set the SmartCollectionReference for orderLines

### getOrderLinesCollection

    public Collection getOrderLinesCollection()

  Returns a deep copy of the entire collection

### setOrderLinesCollection

    public void setOrderLinesCollection(Collection collection)

  Sets the entire collection

### addOrderLines

    public boolean addOrderLines(OrderLine element)

  Ensures that this collection contains the specified element (optional operation).

### addOrderLinesCollection

    public boolean addOrderLinesCollection(Collection collection)

  Adds all of the elements in the specified collection to this collection (optional operation).

### clearOrderLinesCollection

    public void clearOrderLinesCollection()

  Removes all of the elements from this collection (optional operation).

### containsOrderLines

    public boolean containsOrderLines(OrderLine element)

  Returns true if this collection contains the specified element.

### containsOrderLinesCollection

    public boolean containsOrderLinesCollection(Collection collection)

  Returns true if this collection contains all of the elements in the specified collection.

### equalsOrderLinesCollection

    public boolean equalsOrderLinesCollection(Object object)

  Compares the specified object with this collection for equality.

### orderLinesCollectionHashCode

    public int orderLinesCollectionHashCode()

  Returns the hash code value for this collection.

### isOrderLinesCollectionEmpty

    public boolean isOrderLinesCollectionEmpty()

  Returns true if this collection contains no elements.

### orderLinesCollectionIterator

    public Iterator orderLinesCollectionIterator()

  Returns an iterator over the elements in this collection.

### removeOrderLines

    public boolean removeOrderLines(OrderLine element)

  Removes a single instance of the specified element from this collection, if it is present (optional operation).

### removeOrderLinesCollection

    public boolean removeOrderLinesCollection(Collection collection)

  Removes all this collection's elements that are also contained in the specified collection (optional operation).

### retainOrderLinesCollection

    public boolean retainOrderLinesCollection(Collection collection)

  Retains only the elements in this collection that are contained in the specified collection (optional operation).

### getPrice

    public Money getPrice()

  Get the value of price

  Returns:
    price.

### setPrice

    public void setPrice(Money price)

  Set the value of price

  Parameters:
    `price` - price to be added

### setSubtotal

    public void setSubtotal(double subtotal)

  Sets the value of subtotal

  Parameters:
    `subtotal` - for the order.

### getSubtotal

    public double getSubtotal()

  Get the value of subtotal

  Returns:
    the subtotal for the order

### getSpecialInstructions

    public String getSpecialInstructions()

  Get the value of specialInstructions

  Returns:
    specialInstructions.

### setSpecialInstructions

    public void setSpecialInstructions(String specialInstructions)

  Set the value of specialInstructions

  Parameters:
    `specialInstructions` - specialInstructions to be added

### orderLinesCollectionSize

    public int orderLinesCollectionSize()

  Returns the number of elements in this collection.

### ejbFindByStatus

    public Collection ejbFindByStatus(String findStatus)
                               throws FinderException

  Returns an enumeration of all the Orders in the system with the specified status.

  Throws:
    `FinderException`

### ejbFindByCustomer

    public Collection ejbFindByCustomer(String customerIdentifier)
                                 throws FinderException

  Returns a list of Orders in the system that are associated with the specified Customer identifier.

  Throws:
    `FinderException`

### ejbFindByDate

    public Collection ejbFindByDate(Date from,
                                    Date to)
                             throws FinderException

  Returns a list of Orders in the system that fall within the given date range.

  Throws:
    `FinderException`

### getTotal

    public Money getTotal(int totalType)
                   throws InvalidArgumentException

  Gets the shopping cart total for the given total type

  Throws:
    `InvalidArgumentException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved