|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.TextPeer
This peer manipulates AbstractText s using hibernate.
| Constructor Summary | |
TextPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
AbstractText text)
Delete this text. |
static List |
loadAll(Session sess,
Locale loc,
String classname)
loads all the texts with the given optional Locale and of the given optional classname and orders by lastModified date. |
static List |
loadAll(Session sess,
User author,
Locale loc,
String classname)
Loads all the texts by the given author, optionally using the locale and classname as qualifiers. |
static Long |
save(Session sess,
AbstractText text)
Sets the last modified date and saves this text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextPeer()
| Method Detail |
public static Long save(Session sess,
AbstractText text)
sess - The Session to use to save the text. The session will be
flushed but not closed.text - The text.
public static void delete(Session sess,
AbstractText text)
sess - The Session to use to delete the text. The session will be
flushed but not closed.text - The text.
public static List loadAll(Session sess,
Locale loc,
String classname)
sess - the hibernate session.loc - the locale.classname - the name of the class to load.
public static List loadAll(Session sess,
User author,
Locale loc,
String classname)
sess - The Hiberante Session.author - The User who wrote the text.loc - The Locale we are interested in, or null if we don't
care about language.classname - The specific class of text we are concernet with, or
null if we want all Texts.
RuntimeException - if the params are invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||