|
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.OrderAdjustmentPersistence
@Deprecated public class OrderAdjustmentPersistence
Create (persist) and Read Order Adjustments
Order Adjustments are passed back as part of the Pricing Service
Reply and are persisted as part of the Order (for now) persistence
model.
It follows the pattern established by the
CRUD objects in SmartBMP, ignoring Belonging issues
which are not relevant here.
Persistence and reading is done using a connection
object passed by the calling method.
Constructor Summary | |
---|---|
OrderAdjustmentPersistence()
Deprecated |
Method Summary | |
---|---|
static long[] |
findOrderAdjustmentPK(Connection connection,
String orderPk)
Deprecated Given an Order Identifier and a Connection, returns a array of order adjustment identifier. |
static void |
insert(Connection connection,
long key,
String orderId,
Date creationDate,
OrderAdjustment orderAdjustment)
Deprecated Insert one OrderAdjustment in the ORDER_ADJUSTMENT table, including the previously generated primary key. |
static OrderAdjustmentPresentation |
query(Connection connection,
long key)
Deprecated Query from database one Order Adjustments, using the adjustment primary key information in the where clause. |
static ArrayList |
retrieveOrderAdjustmentPresentations(Connection connection,
OrderPk orderPk)
Deprecated Retrieves all the OrderAdjustment into an ArrayList of OrderAdjustmentPresentation's. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderAdjustmentPersistence()
Method Detail |
---|
public static void insert(Connection connection, long key, String orderId, Date creationDate, OrderAdjustment orderAdjustment) throws BMPException
connection
- the database connectionkey,
- the key for the ORDER_ADJUSTMENT tableorderId,
- the 'foreign' key to the WLCS_ORDER tablecreationDate,
- the date at which the order and its adjustments are persistedthe
- Order Adjustment to be persisted
BMPException
public static OrderAdjustmentPresentation query(Connection connection, long key) throws BMPException
The role is not to query for all the adjustments, that is done in the calling method. Only one adjustmentPresentation is retrieved here, keeping this method clean.
connection
- the database connectionkey,
- the primary key for the adjustment
BMPException
public static long[] findOrderAdjustmentPK(Connection connection, String orderPk) throws BMPException
It selects the PKs in order they were created
connection,
- to connect to the Commerce DBorderPk,
- the PK for an order
BMPException
public static ArrayList retrieveOrderAdjustmentPresentations(Connection connection, OrderPk orderPk)
The returned value may be empty, but not null.
connection,
- to connect to the Commerce DBorderPk,
- the PK for an order
|
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 |