|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.jdo.PersistenceManagerFactory
public final class PersistenceManagerFactory
A factory for accessing instances of a JDO Persistence
Manager that are necessary for interacting with the
JDO data store.
Copyright 2006, Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private static java.lang.String |
JDO_DATASTORE_PROPERTIES
The name of the system property used to specify the location of the JDO DataStore connection properties. |
private static java.util.logging.Logger |
logger
The logger used to log messages to. |
private static javax.jdo.PersistenceManager |
persistenceManager
The single application wide instanace that is used to manage read only objects. |
| Constructor Summary | |
|---|---|
private |
PersistenceManagerFactory()
Default constructor. |
| Method Summary | |
|---|---|
private static java.util.Properties |
fetchProperties()
Open the properties file and read the properties from it. |
static javax.jdo.PersistenceManager |
getPersistenceManager()
Return an instance of a PersistenceManager for
interacting with the JDO data store. |
private static void |
initPersistenceManager()
Initialise the persistenceManager if it has not already
been initialised, or has been closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
private static final java.lang.String JDO_DATASTORE_PROPERTIES
private static javax.jdo.PersistenceManager persistenceManager
| Constructor Detail |
|---|
private PersistenceManagerFactory()
| Method Detail |
|---|
public static final javax.jdo.PersistenceManager getPersistenceManager()
throws java.lang.RuntimeException
PersistenceManager for
interacting with the JDO data store.
java.lang.RuntimeException - If errors are encountered while reading
the properties fileinitPersistenceManager()
private static final void initPersistenceManager()
throws java.lang.RuntimeException
persistenceManager if it has not already
been initialised, or has been closed.
java.lang.RuntimeException - If errors are encountered while reading
the properties file while initialising the persistence
manager.fetchProperties()
private static final java.util.Properties fetchProperties()
throws java.lang.RuntimeException
ObjectDBProperties
java.lang.RuntimeException - If errors are encountered while reading
the properties fileJDO_DATASTORE_PROPERTIES
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||