|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.EntityImpl | +--theory.smart.ebusiness.invoicing.InvoiceImpl
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
Invoice
,
InvoiceHome
,
InvoiceValue
, Serialized FormField Summary | |
java.lang.String |
authorizationCode
authorizationCode [Invoice] <*>------> [ String ]
|
java.sql.Date |
creationDate
creationDate [Invoice] <*>------> [ java.sql.Date ]
|
java.lang.String |
orderKey
orderKey [Invoice] <*>------> [ String ] (Primary Key)
|
SmartHandle |
packingList
packingList [Invoice] <>------> [ theory.smart.ebusiness.shipping.PackingList ]
|
CreditCard |
paymentMethod
paymentMethod [Invoice] <*>------> [ theory.smart.axiom.contact.CreditCard ]
|
static java.lang.String |
PROP_TAX_CALCULATOR
Set the TaxCalculator environment property and the invoice will perform sales tax calculations. |
Price |
shippingCost
shippingCost [Invoice] <*>------> [ theory.smart.axiom.units.Price ]
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
InvoiceImpl()
|
Method Summary | |
java.lang.String |
commit()
|
void |
ejbActivate()
ejbActivate method. |
InvoicePk |
ejbCreate(InvoicePk invoicePk)
|
java.util.Enumeration |
ejbFindAll()
|
InvoicePk |
ejbFindByPrimaryKey(InvoicePk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(InvoicePk invoicePk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
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 |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
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 |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String PROP_TAX_CALCULATOR
public java.lang.String orderKey
orderKey
[Invoice] <*>------> [String
] (Primary Key)
public java.lang.String authorizationCode
authorizationCode
[Invoice] <*>------> [String
]
public java.sql.Date creationDate
creationDate
[Invoice] <*>------> [java.sql.Date
]
public CreditCard paymentMethod
paymentMethod
[Invoice] <*>------> [theory.smart.axiom.contact.CreditCard
]
public SmartHandle packingList
packingList
[Invoice] <>------> [theory.smart.ebusiness.shipping.PackingList
]
public Price shippingCost
shippingCost
[Invoice] <*>------> [theory.smart.axiom.units.Price
]
Constructor Detail |
public InvoiceImpl() throws javax.ejb.CreateException
Method Detail |
public InvoiceValue getInvoiceByValue() throws java.rmi.RemoteException
public void setInvoiceByValue(InvoiceValue value) throws java.rmi.RemoteException
InvoiceValue
- the Invoice value objectpublic InvoicePk ejbCreate(InvoicePk invoicePk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(InvoicePk invoicePk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public InvoicePk ejbFindByPrimaryKey(InvoicePk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getAuthorizationCode() throws java.rmi.RemoteException
public void setAuthorizationCode(java.lang.String authorizationCode) throws java.rmi.RemoteException
authorizationCode
- authorizationCode to be addedpublic java.lang.String getOrderKey() throws java.rmi.RemoteException
public java.sql.Date getCreationDate() throws java.rmi.RemoteException
public void setCreationDate(java.sql.Date creationDate) throws java.rmi.RemoteException
creationDate
- creationDate to be addedpublic CreditCard getPaymentMethod() throws java.rmi.RemoteException
public void setPaymentMethod(CreditCard paymentMethod) throws java.rmi.RemoteException
paymentMethod
- 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
shippingCost
- 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 |