|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.ConnectionFactoryImpl
public class ConnectionFactoryImpl
ConnectionFactory for RDBMS datastores. Each instance is a factory of Transactional connection or NonTransactional connection.
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER_RDBMS
Localiser for messages. |
| Fields inherited from interface org.datanucleus.ConnectionFactory |
|---|
DATANUCLEUS_CONNECTION_RESOURCE_TYPE, DATANUCLEUS_CONNECTION2_RESOURCE_TYPE, RESOURCE_TYPE_OPTION |
| Constructor Summary | |
|---|---|
ConnectionFactoryImpl(org.datanucleus.OMFContext omfContext,
java.lang.String resourceType)
Constructor. |
|
| Method Summary | |
|---|---|
org.datanucleus.ManagedConnection |
createManagedConnection(org.datanucleus.ObjectManager om,
java.util.Map transactionOptions)
Method to create a new ManagedConnection. |
org.datanucleus.ManagedConnection |
getConnection(org.datanucleus.ObjectManager om,
java.util.Map options)
Method to return a connection (either already existing from cache, or newly allocated) enlisting it in any transaction. |
java.lang.String |
getPoolingType()
Accessor for the pooling type (if any). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER_RDBMS
| Constructor Detail |
|---|
public ConnectionFactoryImpl(org.datanucleus.OMFContext omfContext,
java.lang.String resourceType)
omfContext - The OMF contextresourceType - either tx or nontx| Method Detail |
|---|
public java.lang.String getPoolingType()
public org.datanucleus.ManagedConnection getConnection(org.datanucleus.ObjectManager om,
java.util.Map options)
getConnection in interface org.datanucleus.ConnectionFactoryom - The ObjectManager (or null)options - Options for when creating the connection
public org.datanucleus.ManagedConnection createManagedConnection(org.datanucleus.ObjectManager om,
java.util.Map transactionOptions)
createManagedConnection in interface org.datanucleus.ConnectionFactoryom - ObjectManager (if any)transactionOptions - Transaction options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||