|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An Invoice is the primary mechanism for billing a customer for items purchased. It associates a PackingList with a payment method.
Inventory Records are managed by the InventoryManager
and referenced by the ItemInventory
Primary Key = theory.smart.ebusiness.invoicing.InvoicePk
orderKey
[Invoice] <*>------> [String
] (Primary Key)
authorizationCode
[Invoice] <*>------> [String
]
creationDate
[Invoice] <*>------> [java.sql.Date
]
paymentMethod
[Invoice] <*>------> [theory.smart.axiom.contact.CreditCard
]
packingList
[Invoice] <>------> [theory.smart.ebusiness.shipping.PackingList
]
shippingCost
[Invoice] <*>------> [theory.smart.axiom.units.Price
]
InvoicePk
,
InvoiceHome
,
InvoiceImpl
,
InvoiceValue
Method Summary | |
java.lang.String |
commit()
|
java.lang.String |
getAuthorizationCode()
Get the value of authorizationCode |
java.sql.Date |
getCreationDate()
Get the value of creationDate |
Customer |
getCustomer()
|
InvoiceValue |
getInvoiceByValue()
Get all of Invoice's attributes. |
java.lang.String |
getOrderKey()
|
PackingList |
getPackingList()
Get the remote object reference of packingList |
CreditCard |
getPaymentMethod()
Get the value of paymentMethod |
Price |
getShippingCost()
Get the value of shippingCost |
java.lang.String |
getStatus()
Retrieve the status of the order through the PackingList. |
Price |
getSubTotal()
Calculate a subtotal that does not include shipping costs. |
Price |
getTaxAmount()
Calculate the taxes on an order. |
Price |
getTotal()
Get the final total for the order including all costs. |
void |
setAuthorizationCode(java.lang.String authorizationCode)
Set the value of authorizationCode |
void |
setCreationDate(java.sql.Date creationDate)
Set the value of creationDate |
void |
setInvoiceByValue(InvoiceValue value)
Set all of Invoice's attributes to the passed in value. |
void |
setPackingList(PackingList packingList)
Set the remote object reference of packingList |
void |
setPaymentMethod(CreditCard paymentMethod)
Set the value of paymentMethod |
void |
setShippingCost(Price shippingCost)
Set the value of shippingCost |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public InvoiceValue getInvoiceByValue() throws java.rmi.RemoteException
public void setInvoiceByValue(InvoiceValue value) throws java.rmi.RemoteException
InvoiceValue
- the Invoice value objectpublic java.lang.String getOrderKey() throws java.rmi.RemoteException
public java.lang.String getAuthorizationCode() throws java.rmi.RemoteException
public void setAuthorizationCode(java.lang.String authorizationCode) throws java.rmi.RemoteException
authorizationCodes
- authorizationCode to be addedpublic java.sql.Date getCreationDate() throws java.rmi.RemoteException
public void setCreationDate(java.sql.Date creationDate) throws java.rmi.RemoteException
creationDates
- creationDate to be addedpublic CreditCard getPaymentMethod() throws java.rmi.RemoteException
public void setPaymentMethod(CreditCard paymentMethod) throws java.rmi.RemoteException
paymentMethods
- paymentMethod to be addedpublic PackingList getPackingList() throws java.rmi.RemoteException
public void setPackingList(PackingList packingList) throws java.rmi.RemoteException
packingLists
- packingList to be addedpublic Price getShippingCost() throws java.rmi.RemoteException
public void setShippingCost(Price shippingCost) throws java.rmi.RemoteException
shippingCosts
- shippingCost to be addedpublic java.lang.String commit() throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public Customer getCustomer() throws java.rmi.RemoteException
public java.lang.String getStatus() throws java.rmi.RemoteException
public Price getTaxAmount() throws java.rmi.RemoteException
public Price getSubTotal() throws java.rmi.RemoteException
public Price getTotal() throws java.rmi.RemoteException
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |