| java.lang.Object org.jpox.ConnectionManagerImpl
ConnectionManagerImpl | public class ConnectionManagerImpl implements ConnectionManager(Code) | | Manager of connections for an OMF, allowing ManagedConnection pooling, enlistment in transaction.
The pool caches one connection per ObjectManager.
The "allocate" method can create connections and enlist them (like most normal persistence operations need)
or create a connection and return it.
version: $Revision: 1.17 $ |
Inner Class :class ManagedConnectionPool | |
Method Summary | |
public ManagedConnection | allocateConnection(ConnectionFactory factory, ObjectManager om, Map options) Method to return a connection for this ObjectManager.
If a connection for the ObjectManager exists in the cache will return it.
If no connection exists will create a new one using the ConnectionFactory.
Parameters: factory - ConnectionFactory it relates to Parameters: om - The ObjectManager Parameters: options - Options for the connection (e.g isolation). |
LOCALISER | final protected static Localiser LOCALISER(Code) | | Localisation of messages.
|
connectionPool | ManagedConnectionPool connectionPool(Code) | | |
ConnectionManagerImpl | public ConnectionManagerImpl(OMFContext omfContext)(Code) | | Constructor.
Parameters: omfContext - OMFContext for this manager. |
allocateConnection | public ManagedConnection allocateConnection(ConnectionFactory factory, ObjectManager om, Map options)(Code) | | Method to return a connection for this ObjectManager.
If a connection for the ObjectManager exists in the cache will return it.
If no connection exists will create a new one using the ConnectionFactory.
Parameters: factory - ConnectionFactory it relates to Parameters: om - The ObjectManager Parameters: options - Options for the connection (e.g isolation). These will override those of the txn itself The ManagedConnection |
|
|