getPersistenceManager(String userName, String password) Get an instance of PersistenceManager from this factory.
The instance has default values for options.
public static synchronized PersistenceManagerFactory
getPersistenceManagerFactory(Properties overridingProps) Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
This method exists for JDO1 compliance whereas in JDO2 the method takes a Map.
Parameters: overridingProps - The Properties to initialize the PersistenceManagerFactory with.
public static synchronized PersistenceManagerFactory
getPersistenceManagerFactory(Map overridingProps) Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
Parameters: overridingProps - The Map of properties to initialize the PersistenceManagerFactory with.
public static synchronized PersistenceManagerFactory
getPersistenceManagerFactory(Map overrides, Map props) Return a new PersistenceManagerFactoryImpl with options set according to the given properties and
given overrides.
Create a PMF using the (JNDI) location or reference information specified.
Parameters: obj - The object Parameters: name - Name of the object relative to the context Parameters: ctx - The context Parameters: env - properties used for creating the object The PMF instance throws: Exception - If an error occurs generating the referenced object
getPersistenceManager
public synchronized PersistenceManager getPersistenceManager()(Code)
Get an instance of PersistenceManager from this factory. The instance has default values for options.
After the first use of getPersistenceManager, no "set" methods will succeed.
a PersistenceManager instance with default options.
getPersistenceManager
public synchronized PersistenceManager getPersistenceManager(String userName, String password)(Code)
Get an instance of PersistenceManager from this factory.
The instance has default values for options. The parameters userid/password are used when obtaining
datastore connections from the connection pool.
After the first use of getPersistenceManager, no "set" methods will succeed.
Parameters: userName - the user name for the connection Parameters: password - the password for the connection PersistenceManager instance with default options.
getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Properties overridingProps)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
This method exists for JDO1 compliance whereas in JDO2 the method takes a Map.
Parameters: overridingProps - The Properties to initialize the PersistenceManagerFactory with. A PersistenceManagerFactoryImpl with options set according to the given Properties. See Also: javax.jdo.JDOHelper.getPersistenceManagerFactory(java.util.Map)
getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Map overridingProps)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
Parameters: overridingProps - The Map of properties to initialize the PersistenceManagerFactory with. A PersistenceManagerFactoryImpl with options set according to the given Properties. See Also: javax.jdo.JDOHelper.getPersistenceManagerFactory(java.util.Map)
getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Map overrides, Map props)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given properties and
given overrides.
Parameters: overrides - Map of properties to override the supplied props (if any) Parameters: props - Map of properties to initialise the PMF with A PersistenceManagerFactoryImpl with options set according to the given Properties
getPersistenceManagerProxy
public PersistenceManager getPersistenceManagerProxy()(Code)
Accessor for the PersistenceManager proxy object
The PMF proxy
Method to process any lifecycle listeners specified in the properties.
Parameters: pmf - PMF being used Parameters: props - The properties to process for lifecycle listener specifications
Convenience method to set the API and properties that a PMF will use.
Parameters: pmf - The PMF to set the API/options for Parameters: overridingProps - The overriding properties supplied by the user
Fields inherited from org.jpox.jdo.AbstractPersistenceManagerFactory