|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.PersistenceConfiguration
org.datanucleus.ObjectManagerFactoryImpl
org.datanucleus.jdo.AbstractPersistenceManagerFactory
org.datanucleus.jdo.JDOPersistenceManagerFactory
public class JDOPersistenceManagerFactory
Implementation of a JDO PersistenceManagerFactory, used to obtain PersistenceManager instances.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.jdo.AbstractPersistenceManagerFactory |
|---|
lifecycleListeners, LOCALISER_JDO |
| Fields inherited from class org.datanucleus.ObjectManagerFactoryImpl |
|---|
cache, omfContext |
| Fields inherited from class org.datanucleus.PersistenceConfiguration |
|---|
configurable, LOCALISER |
| Constructor Summary | |
|---|---|
JDOPersistenceManagerFactory()
Constructs a new PersistenceManagerFactoryImpl. |
|
JDOPersistenceManagerFactory(java.util.Map props)
Constructs a new PersistenceManagerFactoryImpl. |
|
| Method Summary | |
|---|---|
static JDOPersistenceManagerFactory |
createInstance(java.util.Map props)
Convenience method to create a new PMF of this type. |
boolean |
equals(java.lang.Object obj)
Equality operator. |
protected void |
freezeConfiguration()
Freezes the current configuration. |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
Create a PMF using the (JNDI) location or reference information specified. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String userName,
java.lang.String password)
Get an instance of PersistenceManager from this factory. |
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Map overridingProps)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. |
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Map overrides,
java.util.Map props)
Return a new PersistenceManagerFactoryImpl with options set according to the given properties and given overrides. |
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Properties overridingProps)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. |
javax.jdo.PersistenceManager |
getPersistenceManagerProxy()
Accessor for the PersistenceManager proxy object |
javax.naming.Reference |
getReference()
Retrieves the (JNDI) reference of this PMF object. |
protected void |
initialiseProperties(java.util.Map props)
Convenience method to set the API and properties that a PMF will use. |
| Methods inherited from class org.datanucleus.PersistenceConfiguration |
|---|
getBooleanObjectProperty, getBooleanProperty, getCalendarForDateTimezone, getIntProperty, getLongProperty, getOptions, getPrimaryClassLoader, getProperty, getStringProperty, getSupportedOptions, hasProperty, isJcaMode, setDefaultProperties, setJCAMode, setOptions, setPrimaryClassLoader, setPropertiesFile, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jdo.PersistenceManagerFactory |
|---|
addFetchGroups, addInstanceLifecycleListener, close, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionURL, getConnectionUserName, getCopyOnAttach, getDataStoreCache, getDetachAllOnCommit, getFetchGroup, getFetchGroups, getIgnoreCache, getMapping, getMultithreaded, getName, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceUnitName, getProperties, getReadOnly, getRestoreValues, getRetainValues, getServerTimeZoneID, getTransactionIsolationLevel, getTransactionType, isClosed, removeAllFetchGroups, removeFetchGroups, removeInstanceLifecycleListener, setConnectionDriverName, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactoryName, setConnectionPassword, setConnectionURL, setConnectionUserName, setCopyOnAttach, setDetachAllOnCommit, setIgnoreCache, setMapping, setMultithreaded, setName, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setPersistenceUnitName, setReadOnly, setRestoreValues, setRetainValues, setServerTimeZoneID, setTransactionIsolationLevel, setTransactionType, supportedOptions |
| Constructor Detail |
|---|
public JDOPersistenceManagerFactory()
public JDOPersistenceManagerFactory(java.util.Map props)
props - Persistent properties| Method Detail |
|---|
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Properties overridingProps)
overridingProps - The Properties to initialize the PersistenceManagerFactory with.
JDOHelper.getPersistenceManagerFactory(java.util.Map)public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Map overridingProps)
overridingProps - The Map of properties to initialize the PersistenceManagerFactory with.
JDOHelper.getPersistenceManagerFactory(java.util.Map)
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Map overrides,
java.util.Map props)
overrides - Map of properties to override the supplied props (if any)props - Map of properties to initialise the PMF with
public static JDOPersistenceManagerFactory createInstance(java.util.Map props)
protected void initialiseProperties(java.util.Map props)
props - The properties to use for this PMFprotected void freezeConfiguration()
freezeConfiguration in class AbstractPersistenceManagerFactoryNucleusException - if the configuration was invalid or inconsistent in some waypublic javax.jdo.PersistenceManager getPersistenceManager()
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String userName,
java.lang.String password)
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactoryuserName - the user name for the connectionpassword - the password for the connection
public boolean equals(java.lang.Object obj)
equals in class PersistenceConfigurationobj - Object to compare against
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryobj - The objectname - Name of the object relative to the contextctx - The contextenv - properties used for creating the object
java.lang.Exception - If an error occurs generating the referenced objectpublic javax.naming.Reference getReference()
getReference in interface javax.naming.Referenceablepublic javax.jdo.PersistenceManager getPersistenceManagerProxy()
getPersistenceManagerProxy in interface javax.jdo.PersistenceManagerFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||