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( ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access