|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.ShoppingOrderPeer
This peer manipulates ShoppingOrder s
hibernate.
| Constructor Summary | |
ShoppingOrderPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
ShoppingOrder order)
Delete this order. |
static ShoppingOrder |
load(Session sess,
Long transid)
Load an order with a given transactionID. |
static Long |
save(Session sess,
ShoppingOrder order)
Saves this ShoppingOrder. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShoppingOrderPeer()
| Method Detail |
public static Long save(Session sess,
ShoppingOrder order)
ShoppingOrder.
sess - The Session to use to save the ShoppingOrder. The
session will be flushed but not closed.order - The order.
ShoppingOrder, or null if there was an
error.
public static void delete(Session sess,
ShoppingOrder order)
sess - The Session to use to delete the ShoppingOrder. The
session will be flushed but not closed.order - The order.
public static ShoppingOrder load(Session sess,
Long transid)
sess - the hibernate session.transid - the transaction id of the order to load.
RuntimeException - if the params are invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||