|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.peer.FaqPersistencePeer
This peer manipulates Faq s using the
persistance manager's Archivist.
| Constructor Summary | |
FaqPersistencePeer()
|
|
| Method Summary | |
static boolean |
asked(Archivist archivist,
String question,
Locale loc)
Has this question already been asked in this Locale? |
static void |
delete(Archivist archivist,
Faq faq)
Delete this faq. |
static List |
loadAll(Archivist archivist,
Locale loc)
Loads all the Faqs with the given optional
Locale. |
static Faq |
save(Archivist archivist,
Faq faq)
Sets the last modified date and saves this Faq. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FaqPersistencePeer()
| Method Detail |
public static Faq save(Archivist archivist,
Faq faq)
Faq.
archivist - The Archivist to use to save the Faq.
The session will be flushed but not closed.faq - The faq.
Faq, or null if there was an
error.
public static void delete(Archivist archivist,
Faq faq)
archivist - The Archivist to use to delete the Faq.
The session will be flushed but not closed.faq - The faq.
public static boolean asked(Archivist archivist,
String question,
Locale loc)
archivist - The Archivist to use to delete the faq. The session
will be flushed but not closed.question - The question.loc - The Locale.
Faq with the supplied question
and in the supplied Locale's language.
RuntimeException - if the params were invalid, or if an internal
exception was encountered.
public static List loadAll(Archivist archivist,
Locale loc)
Faqs with the given optional
Locale. Orders by lastModified date.
NOTE: Only works for Hibernate right now. This
is a hack.
archivist - The Archivist to use to delete the Faq.
The session will be flushed but not closed.loc - The Locale.
Faqs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||