|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.LinkPeer
This peer manipulates Link s
hibernate.
| Constructor Summary | |
LinkPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
Link link)
Delete this link. |
static List |
loadAll(Session sess,
Locale loc)
Loads all the Link with the given optional Locale. |
static List |
loadAll(Session sess,
Locale loc,
boolean validity)
Loads all the Link with the given optional Locale, and the
given validity flag. |
static Long |
save(Session sess,
Link link)
Sets the last modified date and saves this Link. |
static boolean |
validate(Session sess,
Link link)
Checks that the url of the Link provided actually resolves to something. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinkPeer()
| Method Detail |
public static Long save(Session sess,
Link link)
Link.
sess - The Session to use to save the Link. The
session will be flushed but not closed.link - The link.
Link, or null if there was an
error.
public static void delete(Session sess,
Link link)
sess - The Session to use to delete the Link. The
session will be flushed but not closed.link - The link.
public static boolean validate(Session sess,
Link link)
sess - The Session to use to save the link. The session will be
flushed but not closed.link - The Link.
Link resolves to something,
false if not.
RuntimeException - if the params were invalid, or if an internal
exception was encountered.
public static List loadAll(Session sess,
Locale loc)
Link with the given optional Locale. Orders
by lastModified date.
sess - The Session to use to delete the Link. The
session will be flushed but not closed.loc - The Locale.
Links.
public static List loadAll(Session sess,
Locale loc,
boolean validity)
Link with the given optional Locale, and the
given validity flag. Orders by lastModified date.
sess - The Session to use to delete the Link.
The session will be flushed but not closed.loc - The Locale.validity - the validity flag.
Links.
RuntimeException - if the params are invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||