|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.ebusiness.order.OrderManagerBean
@Deprecated public class OrderManagerBean
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.
OrderValue
,
StateMachine
,
,
OrderManagerHome
,
OrderManager
,
Serialized FormConstructor Summary | |
---|---|
OrderManagerBean()
Deprecated The constructor gets an order state machine for any status associated action. |
Method Summary | |
---|---|
protected static void |
close(Connection connection,
PreparedStatement statement,
ResultSet resultSet)
Deprecated Close database "stuff" quietly and without exceptions. |
javax.ejb.Handle |
createOrder(OrderPk orderPK,
OrderValue orderValue,
Quote adjustments)
Deprecated Creates an order using a value object. |
void |
ejbActivate()
Deprecated Empty ejb method implementation |
void |
ejbCreate()
Deprecated Empty ejb method implementation |
void |
ejbPassivate()
Deprecated Empty ejb method implementation |
void |
ejbPostCreate()
Deprecated Empty ejb method implementation |
void |
ejbRemove()
Deprecated Empty ejb method implementation |
Collection |
findByCustomer(CustomerPk customerPk)
Deprecated Finds the OrderValues associated with a customer and returns a collection |
ScrollableModel |
findByCustomer(CustomerPk customerPK,
int pageSize)
Deprecated Finds the OrderValues associated with a customer and returns a scrollable model |
Collection |
findByDates(Date startDate,
Date endDate)
Deprecated Finds a collection of orders given a range of dates. |
ScrollableModel |
findByDates(Date startDate,
Date endDate,
int pageSize)
Deprecated Finds the OrderValues associated with a date range and returns a scrollable model |
OrderValue |
findByPK(OrderPk pk)
Deprecated Finds an order value given its primary key. |
Collection |
findBySKU(String SKU)
Deprecated This method uses a prepared statement and a Jdbc Connection to retrieve Order Values from the WLCS_ORDER_LINE table, based on the SKU of a product item. |
ScrollableModel |
findBySKU(String sku,
int pageSize)
Deprecated This method uses a prepared statement and a Jdbc Connection to retrieve Order Values organized in a ScrollableModel from the WLCS_ORDER_LINE table, based on the SKU of a product item. |
Collection |
findByStatus(String status)
Deprecated Finds the OrderValues associated with a status and returns a collection |
ScrollableModel |
findByStatus(String status,
int pageSize)
Deprecated Finds the OrderValues associated with a status and returns a scrollable model |
String |
getOrderStatus(OrderPk pk)
Deprecated Gets the status of an order, given the order's primary key. |
String[] |
getValidNewStatuses(OrderPk orderPK)
Deprecated Retrieves all the possible statuses an Order can move to based on its primary key. |
void |
queryOrderAdjusments(OrderPk orderPk,
OrderValue orderValue)
Deprecated this call fills an orderValue with the adjustments that are associated with it. |
void |
setOrderStatus(OrderPk pk,
String orderStatus)
Deprecated Sets an order's status to a specified value, given the order's primary key. |
void |
setSessionContext(javax.ejb.SessionContext context)
Deprecated Set the session context |
void |
updateOrderDiscounts(OrderPk orderPk,
OrderValue orderValue,
Quote adjustments)
Deprecated updates the discounts associated with an order |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderManagerBean() throws Exception
Exception
Method Detail |
---|
public javax.ejb.Handle createOrder(OrderPk orderPK, OrderValue orderValue, Quote adjustments) throws RemoteException
orderPK,
- the primary key for the orderorderValue,
- the value object for the orderadjustments,
- the adjustments for the order (and its lines)
RemoteException
public OrderValue findByPK(OrderPk pk) throws RemoteException
pk
- The primary key of the order to be found
RemoteException
public ScrollableModel findByCustomer(CustomerPk customerPK, int pageSize) throws RemoteException
CustomerPk
- pageSize,
- the size of a page of cached order values
RemoteException
public Collection findByCustomer(CustomerPk customerPk) throws RemoteException
CustomerPk
-
RemoteException
public ScrollableModel findByStatus(String status, int pageSize) throws RemoteException
status,
- e.g. "Authorized"pageSize,
- the size of a page of cached order values
RemoteException
public Collection findByStatus(String status) throws RemoteException
status,
- e.g. "Authorized"
RemoteException
public Collection findBySKU(String SKU) throws RemoteException
SKU
-
RemoteException
public ScrollableModel findBySKU(String sku, int pageSize) throws RemoteException
SKU
- pageSize
-
RemoteException
public 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
public Collection findByDates(Date startDate, Date endDate) throws RemoteException
startDate
- endDate
-
RemoteException
public String getOrderStatus(OrderPk pk) throws RemoteException
pk
- The primary key of the order in question
RemoteException
public void setOrderStatus(OrderPk pk, String orderStatus) throws RemoteException
pk
- The order's primary keyorderStatus
-
RemoteException
public String[] getValidNewStatuses(OrderPk orderPK) throws RemoteException
orderPK
-
RemoteException
public void queryOrderAdjusments(OrderPk orderPk, OrderValue orderValue) throws RemoteException
orderPk,
- the order primary key.orderValue,
- the order value to fill with adjustments
RemoteException
public 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
public void setSessionContext(javax.ejb.SessionContext context)
setSessionContext
in interface javax.ejb.SessionBean
context
- the Session contextpublic void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbCreate()
public void ejbPostCreate()
protected static void close(Connection connection, PreparedStatement statement, ResultSet resultSet)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |