|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.util.jdo.JdoUtil
Provides static class functions to access JDO persistence manager.
| Constructor Summary | |
|---|---|
JdoUtil()
|
|
| Method Summary | |
|---|---|
static void |
commitLocalTransaction(javax.jdo.PersistenceManager pm,
boolean startedLocalTransaction)
Commit's a local transaction if one was started. |
static javax.jdo.PersistenceManager |
getPM()
Utility function to help get current JDO PersistenceManager. |
static javax.jdo.PersistenceManager |
getPM(java.lang.Object object)
Util function to get a persistence manager from an object with an existing persistence manager. |
static javax.jdo.PersistenceManagerFactory |
getPMF()
Get's JDO PersistenceManagerFactory based on kodo.properties settings. |
static java.util.Properties |
getProperties()
Returns properties contained in kodo.properties. |
static boolean |
startLocalTransaction(javax.jdo.PersistenceManager pm)
Starts a local transaction if one is not already started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdoUtil()
| Method Detail |
public static boolean startLocalTransaction(javax.jdo.PersistenceManager pm)
pm - The caller's current JDO PersistenceManager.
public static void commitLocalTransaction(javax.jdo.PersistenceManager pm,
boolean startedLocalTransaction)
pm - The caller's current JDO PersistenceManager.public static java.util.Properties getProperties()
public static javax.jdo.PersistenceManagerFactory getPMF()
public static javax.jdo.PersistenceManager getPM()
public static javax.jdo.PersistenceManager getPM(java.lang.Object object)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||