|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.PMFConfiguration
org.jpox.AbstractPersistenceManagerFactory
org.jpox.PersistenceManagerFactoryImpl
public class PersistenceManagerFactoryImpl
A factory used to obtain PersistenceManager instances.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.PMFConfiguration |
|---|
PMFConfiguration.ObjectPropertySetter, PMFConfiguration.StringPropertySetter |
| Field Summary |
|---|
| Fields inherited from class org.jpox.AbstractPersistenceManagerFactory |
|---|
cache, lifecycleListeners, pmfContext |
| Constructor Summary | |
|---|---|
PersistenceManagerFactoryImpl()
Constructs a new PersistenceManagerFactoryImpl. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Equality operator. |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
Uses StringRefAddr's to store the information |
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 props)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. |
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Properties props)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. |
javax.naming.Reference |
getReference()
Uses StringRefAddr's to store the information |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jdo.PersistenceManagerFactory |
|---|
addInstanceLifecycleListener, close, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionURL, getConnectionUserName, getDataStoreCache, getDetachAllOnCommit, getIgnoreCache, getMapping, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getProperties, getRestoreValues, getRetainValues, isClosed, removeInstanceLifecycleListener, setConnectionDriverName, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactoryName, setConnectionPassword, setConnectionURL, setConnectionUserName, setDetachAllOnCommit, setIgnoreCache, setMapping, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, supportedOptions |
| Constructor Detail |
|---|
public PersistenceManagerFactoryImpl()
| Method Detail |
|---|
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Properties props)
props - The Properties to initialize the PersistenceManagerFactory with.
UnsupportedConnectionFactoryException - Thrown if the
configured connection factory is not a javax.sql.DataSourceJDOHelper.getPersistenceManagerFactory(java.util.Map)public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Map props)
props - The Map of properties to initialize the PersistenceManagerFactory with.
UnsupportedConnectionFactoryException - Thrown if the
configured connection factory is not a javax.sql.DataSourceJDOHelper.getPersistenceManagerFactory(java.util.Map)public javax.jdo.PersistenceManager getPersistenceManager()
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactoryUnsupportedConnectionFactoryException - Thrown if the
configured connection factory is not a javax.sql.DataSource
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
UnsupportedConnectionFactoryException - Thrown if the
configured connection factory is not a javax.sql.DataSourcepublic boolean equals(java.lang.Object obj)
equals in class PMFConfigurationobj - 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 - Namectx - Contextenv - properties
java.lang.Exceptionpublic javax.naming.Reference getReference()
getReference in interface javax.naming.Referenceable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||