|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface OrderManager
The OrderManagerBean is a session bean that isolates
the JSP type calls from dealing directly with
Order Entity Beans in a piece-meal fashion
and improves performance by keeping the
calls on the EJB sides.
Its main purpose is to create an Order and
to retrieve OrderValue's using a variety of
criteria, customerPK, a date range, a SKU, a Status.
The returned objects on those finder methods may be either
straight collection with all the orderValue objects filled,
or a more sophisticated ScrollableModel which caches the
PK and a few orderValues only.
Finally, the OrderManagerBean deals with getting and setting
an Order's status, and helps the JSP presentation by providing
the only possible statuses an Order can move to.
stereotype SessionBean
homeInterface com.beasys.commerce.ebusiness.order.OrderManagerHome
remoteInterface com.beasys.commerce.ebusiness.order.OrderManager
OrderValue
,
StateMachine
,
ScrollableModel
Method Summary | |
---|---|
javax.ejb.Handle |
createOrder(OrderPk orderPK,
OrderValue orderValue,
Quote adjustments)
Deprecated Creates an order using a previously generated primary key and an order value via a Handle. |
Collection |
findByCustomer(CustomerPk customerPK)
Deprecated Finds the overValues associated with a customer and returns a collection |
ScrollableModel |
findByCustomer(CustomerPk customerPK,
int pageSize)
Deprecated Finds the overValues associated with a customer and returns a scrollable model |
Collection |
findByDates(Date startDate,
Date endDate)
Deprecated Finds the overValues associated with a date range and returns a collection |
ScrollableModel |
findByDates(Date startDate,
Date endDate,
int pageSize)
Deprecated Finds the overValues associated with a date range and returns a scrollable model |
OrderValue |
findByPK(OrderPk orderPK)
Deprecated Finds the order value associated with a particular primary key, a basic finder method. |
Collection |
findBySKU(String SKU)
Deprecated Finds the overValues associated with a SKU and returns a collection |
ScrollableModel |
findBySKU(String sku,
int pageSize)
Deprecated Finds the overValues associated with a SKU and returns a scrollable model |
Collection |
findByStatus(String status)
Deprecated Finds the overValues associated with a status and returns a collection |
ScrollableModel |
findByStatus(String status,
int pageSize)
Deprecated Finds the overValues associated with a status and returns a scrollable model |
String |
getOrderStatus(OrderPk orderPK)
Deprecated Gets the status of an order based on its PK |
String[] |
getValidNewStatuses(OrderPk orderPK)
Deprecated Gets all the valid status an order can move to. |
void |
queryOrderAdjusments(OrderPk orderPK,
OrderValue orderValue)
Deprecated this call fills an orderValue with the adjustments that are associated with it. |
void |
setOrderStatus(OrderPk orderPK,
String status)
Deprecated Sets an order status |
void |
updateOrderDiscounts(OrderPk orderPk,
OrderValue orderValue,
Quote adjustments)
Deprecated updates the discounts associated with an order |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
javax.ejb.Handle createOrder(OrderPk orderPK, OrderValue orderValue, Quote adjustments) throws RemoteException
orderPK
- orderValue,
- a value object from which to create an order entityadjustments,
- the audit trail to persist with the order.
RemoteException
OrderValue findByPK(OrderPk orderPK) throws RemoteException
orderPK,
- the primary key for an order entity bean.
RemoteException
ScrollableModel findByCustomer(CustomerPk customerPK, int pageSize) throws RemoteException
CustomerPk
- pageSize,
- the size of a page of cached order values
RemoteException
Collection findByCustomer(CustomerPk customerPK) throws RemoteException
CustomerPk
-
RemoteException
ScrollableModel findByStatus(String status, int pageSize) throws RemoteException
status,
- e.g. "Authorized"pageSize,
- the size of a page of cached order values
RemoteException
Collection findByStatus(String status) throws RemoteException
status,
- e.g. "Authorized"
RemoteException
Collection findBySKU(String SKU) throws RemoteException
sku,
- e.g. "C94E97"
RemoteException
ScrollableModel findBySKU(String sku, int pageSize) throws RemoteException
sku,
- e.g. "C94E97"pageSize,
- the size of a page of cached order values
RemoteException
ScrollableModel findByDates(Date startDate, Date endDate, int pageSize) throws RemoteException
startDate
- of the date rangeendDate
- of the date rangepageSize,
- the size of a page of cached order values
RemoteException
Collection findByDates(Date startDate, Date endDate) throws RemoteException
startDate
- of the date rangeendDate
- of the date range
RemoteException
String getOrderStatus(OrderPk orderPK) throws RemoteException
orderPK
-
RemoteException
void setOrderStatus(OrderPk orderPK, String status) throws RemoteException
orderPK
- status
-
RemoteException
String[] getValidNewStatuses(OrderPk orderPK) throws RemoteException
orderPK
-
RemoteException
void queryOrderAdjusments(OrderPk orderPK, OrderValue orderValue) throws RemoteException
orderPk,
- the order primary key.orderValue,
- the order value to fill with adjustments
RemoteException
void updateOrderDiscounts(OrderPk orderPk, OrderValue orderValue, Quote adjustments) throws RemoteException
orderPk
- the order primary key.orderValue
- the order value which contains the creation
date and the orderlineadjustments
- a Quote object containing the adjustments
RemoteException
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |