Stateless factory to create persistence manager. This class is totally thread-safe and can be shared by many threads. You should normally have only one instance of PersistenceManagerFactory across the application
PersistenceManagerFactory
is the interface to use 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 properties configured will be saved and restored.
Once the first PersistenceManager
is obtained from the PersistenceManagerFactory
, the factory can no longer be configured.
If the ConnectionFactory
property is set (non-null
) then all 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.
Operational state (PersistenceManager
pooling, connection pooling, operational parameters) must not be serialized.
@version 2.1
|
|
|
|
|
|