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