|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.ebusiness.order.OrderLineAdjustmentPersistence
This class's role is to persist and read adjutments
for Order Status type display/Administrator
It follows the pattern established by the
CRUD objects in SmartBMP, only using
the 'directUpdate' and 'directRefresh'
and ignoring Belonging issues which are not relevant
here.
Persistence and reading is done using a connection
object passed by the calling method.
Constructor Summary | |
OrderLineAdjustmentPersistence()
|
Method Summary | |
static long[] |
findOrderLineAdjustmentPK(Connection connection,
long orderLinePk)
Given an Order Line Identifier and a Connection, returns an array of order adjustment identifier. |
static OrderAdjustmentPresentation |
query(Connection connection,
long key)
Refresh from database, using primary key information in the where clause. |
static ArrayList |
retrieveOrderLineAdjustmentPresentations(Connection connection,
long orderLinePk)
Retrieves all the OrderLineAdjustment into an ArrayList of OrderAdjustmentPresentation's, to be associated with and OrderLine, and further for use in JSP pages. |
static void |
updateDirect(Connection connection,
long olaId,
long orderLineId,
Date creationDate,
LineAdjustment lineAdjustment)
Insert a new line adjustment in the ORDER_LINE_ADJUSTMENT table, using a generated key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrderLineAdjustmentPersistence()
Method Detail |
public static long[] findOrderLineAdjustmentPK(Connection connection, long orderLinePk) throws BMPException
It selects the PKs in order they were created
BMPException
public static OrderAdjustmentPresentation query(Connection connection, long key) throws BMPException
connection
- the database connection
BMPException
public static ArrayList retrieveOrderLineAdjustmentPresentations(Connection connection, long orderLinePk)
The returned value may be empty, but not null.
public static void updateDirect(Connection connection, long olaId, long orderLineId, Date creationDate, LineAdjustment lineAdjustment) throws BMPException
BMPException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |