|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.CreditCardPeer
This peer manipulates CreditCard
s using hibernate.
| Constructor Summary | |
CreditCardPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
CreditCard card)
Delete this credit card. |
static boolean |
exists(Session sess,
String num)
A quick tests to determine if the number supplied matched a known credit card number. |
static Long |
save(Session sess,
CreditCard card)
Save this credit card. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CreditCardPeer()
| Method Detail |
public static Long save(Session sess,
CreditCard card)
sess - The Session to use to save the credit card. The session
will be flushed but not closed.card - The credit card.
public static void delete(Session sess,
CreditCard card)
sess - The Session to use to delete the credit card. The session
will be flushed but not closed.card - The credit card.
public static boolean exists(Session sess,
String num)
sess - The Session to use to query for the card.num - The credit card number to test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||