Name
PersistenceManagerFactory
Synopsis
The PersistenceManagerFactory
is used to
obtain PersistenceManager
instances. All PersistenceManager
instances obtained from the same PersistenceManagerFactory
will have the
same default properties.
PersistenceManagerFactory
instances may be configured and serialized for later use. They may
be stored via JNDI and looked up and used later. Any configured
properties will be saved and restored.
If the ConnectionFactory
property is set (non-null
) then
all the other connection properties (including ConnectionFactoryName
) are ignored;
otherwise, if ConnectionFactoryName
is set (non-null
) then all other connection properties
are ignored. Similarly, if the ConnectionFactory2
property is set
(non-null
), then ConnectionFactory2Name
is ignored.
public interface PersistenceManagerFactory implements Serializable { public void close( ); public String getConnectionDriverName( ); public Object getConnectionFactory( ); public Object getConnectionFactory2( ); public String getConnectionFactory2Name( ); public String getConnectionFactoryName( ); public String getConnectionURL( ); public String getConnectionUserName( ); public boolean getIgnoreCache( ); public boolean getMultithreaded( ); public boolean getNontransactionalRead( ); public boolean getNontransactionalWrite( ); public boolean getOptimistic( ); public PersistenceManager getPersistenceManager( ); public PersistenceManager getPersistenceManager(String userid, String password); public Properties getProperties( ...
Get Java Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.