org.davesag.generica.peer
Class ShoppingOrderPeer

java.lang.Object
  extended byorg.davesag.generica.peer.ShoppingOrderPeer

public class ShoppingOrderPeer
extends Object

This peer manipulates ShoppingOrder s hibernate.

Since:
Generica 1.0
Version:
CVS Revision $Id: ShoppingOrderPeer.java,v 1.10 2004/04/06 15:40:41 davesag Exp $
Author:
Dave Sag http://www.davesag.com

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

ShoppingOrderPeer

public ShoppingOrderPeer()
Method Detail

save

public static Long save(Session sess,
                        ShoppingOrder order)
Saves this ShoppingOrder.

Parameters:
sess - The Session to use to save the ShoppingOrder. The session will be flushed but not closed.
order - The order.
Returns:
The ID of the saved ShoppingOrder, or null if there was an error.

delete

public static void delete(Session sess,
                          ShoppingOrder order)
Delete this order.

Parameters:
sess - The Session to use to delete the ShoppingOrder. The session will be flushed but not closed.
order - The order.

load

public static ShoppingOrder load(Session sess,
                                 Long transid)
Load an order with a given transactionID.

Parameters:
sess - the hibernate session.
transid - the transaction id of the order to load.
Returns:
the order with the given transaction id.
Throws:
RuntimeException - if the params are invalid.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.