|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.modelutils.PMUtils
public class PMUtils
Persistence Manager utilities.
Field Summary | |
---|---|
protected static boolean |
useWordHoardPM
True to always use global WordHoard persistence manager. |
Constructor Summary | |
---|---|
protected |
PMUtils()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static void |
closePM(PersistenceManager pm)
Close persistence manager. |
static PersistenceManager |
getPM()
Get persistence manager. |
static PersistentObject |
refreshObject(org.hibernate.Session session,
PersistentObject obj)
Refresh a persistent object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean useWordHoardPM
Constructor Detail |
---|
protected PMUtils()
Method Detail |
---|
public static PersistenceManager getPM()
public static void closePM(PersistenceManager pm)
pm
- Persistence manager to close. public static PersistentObject refreshObject(org.hibernate.Session session, PersistentObject obj)
session
- Session in which to refresh object.obj
- Persistent object to refresh.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |