|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JDOEntityManagerFactory
Method Summary | |
---|---|
JDOEntityManager |
getPersistenceManager()
Get an instance of JDOEntityManager from this factory. |
JDOEntityManager |
getPersistenceManager(java.lang.String userid,
java.lang.String password)
Get an instance of JDOEntityManager from this factory. |
JDOEntityManager |
getPersistenceManagerProxy()
Get a thread-safe instance of a proxy that dynamically binds on each method call to an instance of JDOEntityManager . |
Methods inherited from interface javax.persistence.EntityManagerFactory |
---|
close, createEntityManager, createEntityManager, isOpen |
Method Detail |
---|
JDOEntityManager getPersistenceManager()
JDOEntityManager
from this factory.
The instance has default values for options. This method overrides
the getPersistenceManager method from PersistenceManagerFactory.
After the first use of getPersistenceManager
, no "set"
methods will succeed.
getPersistenceManager
in interface PersistenceManagerFactory
JDOEntityManager
instance with default options.JDOEntityManager getPersistenceManagerProxy()
JDOEntityManager
.
When used with a JDOEntityManagerFactory
that uses TransactionType JTA,
the proxy can be used in a server to dynamically bind to an instance
from this factory associated with the thread's current transaction.
In this case, the close method is ignored, as the
PersistenceManager
is automatically closed when the
transaction completes.
When used with a JDOEntityManagerFactory
that uses TransactionType RESOURCE_LOCAL, the proxy uses an inheritable
ThreadLocal to bind to an instance of JDOEntityManager
associated with the thread. In this case, the close method executed
on the proxy closes the JDOEntityManager
and then
clears the ThreadLocal.
Use of this method does not affect the configurability of the
JDOEntityManagerFactory
.
getPersistenceManagerProxy
in interface PersistenceManagerFactory
PersistenceManager
proxy.JDOEntityManager getPersistenceManager(java.lang.String userid, java.lang.String password)
JDOEntityManager
from this factory.
The instance has default values for options.
The parameters userid
and password
are used
when obtaining datastore connections from the connection pool.
After the first use of getPersistenceManager
, no "set"
methods will succeed.
getPersistenceManager
in interface PersistenceManagerFactory
userid
- the userid for the connectionpassword
- the password for the connection
JDOEntityManager
instance with default options.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |