| org.jpox.ConnectionManager
All known Subclasses: org.jpox.ConnectionManagerImpl,
ConnectionManager | public interface ConnectionManager (Code) | | Manager of connections for an OMF, allowing ManagedConnection pooling, enlistment in transaction.
The pool caches one connection per ObjectManager.
The "allocateConnection" method can create connections and enlist them (like most normal persistence operations need)
or create a connection and return it without enlisting it into a transaction, for example the connections used to
generate object identity, create the database schema or obtaining the schema metadata.
Connections can be locked per ObjectManager basis. Locking of connections is used to
handle the connection over to the user application. A locked connection denies any further
access to the datastore, until the user application unlock it.
version: $Revision: 1.13 $ |
allocateConnection | public ManagedConnection allocateConnection(ConnectionFactory factory, ObjectManager om, Map options)(Code) | | Allocate a connection using the specified factory (unless we already have one cached for this ObjectManager).
Parameters: factory - The ConnectionFactory to create any new connection with Parameters: om - The ObjectManager Parameters: options - Any options for allocating the connection (e.g isolation) The ManagedConnection |
|
|