|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.MediaPeer
This peer manipulates Media
hibernate.
| Constructor Summary | |
MediaPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
Media media)
Delete this Media. |
static boolean |
exists(Session sess,
String id)
A quick tests to determine if the id supplied matched a
known Media. |
static Media |
load(Session sess,
String id)
Load the Media with the supplied id only, if valid. |
static Long |
save(Session sess,
Media media)
Save this Media. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MediaPeer()
| Method Detail |
public static Long save(Session sess,
Media media)
Media.
sess - The Session to use to save the Media. The
session will be flushed but not closed.media - The Media.
Media, or null if there was an
error.
public static void delete(Session sess,
Media media)
Media.
sess - The Session to use to delete the Media. The
session will be flushed but not closed.media - The Media.
public static boolean exists(Session sess,
String id)
id supplied matched a
known Media. This is much faster that using load below.
sess - The Session to use to query for the Media.id - The id number to test.
Media.
public static Media load(Session sess,
String id)
Media with the supplied id only, if valid.
sess - The Session to use to query for the Media.id - The id of the Media we wish to load.
Media o or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||