|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.SiteCopyPeer
This peer manipulates SiteCopy s
using hibernate.
| Constructor Summary | |
SiteCopyPeer()
|
|
| Method Summary | |
static void |
delete(Session sess,
SiteCopy sitecopy)
Delete this SiteCopy. |
static List |
loadAll(Session sess,
User author,
Locale loc)
Loads all the SiteCopy authored by the given otional
User, optionally using the locale as a qualifier. |
static SiteCopy |
loadLatest(Session sess,
String section,
Locale loc)
Loads the most recently modified SiteCopy in the given
section optionally using the locale as a qualifier. |
static Long |
save(Session sess,
SiteCopy sitecopy)
Save this SiteCopy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SiteCopyPeer()
| Method Detail |
public static Long save(Session sess,
SiteCopy sitecopy)
SiteCopy.
sess - The Session to use to save the SiteCopy.
The session will be flushed but not closed.sitecopy - The SiteCopy.
SiteCopy, or null if there was
an error.
public static void delete(Session sess,
SiteCopy sitecopy)
SiteCopy.
sess - The Session to use to delete the SiteCopy.
The session will be flushed but not closed.sitecopy - The SiteCopy.
public static List loadAll(Session sess,
User author,
Locale loc)
SiteCopy authored by the given otional
User, optionally using the locale as a qualifier. If the
User is null this method will return SiteCopy by any
author. If loc is null it will return SiteCopy in any
language.
sess - The Hiberante Session.author - The User who wrote the text, or null.loc - The Locale we are interested in, or null if we don't
care about language.
SiteCopy objects or an empty
list, never null.
public static SiteCopy loadLatest(Session sess,
String section,
Locale loc)
SiteCopy in the given
section optionally using the locale as a qualifier.
sess - The Hiberante Session.section - The section you want SiteCopy for.loc - The Locale we are interested in, or null if we don't
care about language.
SiteCopy or null if there
is none.
RuntimeException - if the params are invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||