|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionFactory
Factory for connections to the datastore. To be implemented by all StoreManagers.
| Field Summary | |
|---|---|
static java.lang.String |
DATANUCLEUS_CONNECTION_RESOURCE_TYPE
User-visible configuration property name |
static java.lang.String |
DATANUCLEUS_CONNECTION2_RESOURCE_TYPE
User-visible configuration property name |
static java.lang.String |
RESOURCE_TYPE_OPTION
Internal property name used on ConnectionFactory instances, range of Values: JTA | RESOURCE_LOCAL |
| Method Summary | |
|---|---|
ManagedConnection |
createManagedConnection(java.lang.Object poolKey,
java.util.Map transactionOptions)
Create the ManagedConnection. |
ManagedConnection |
getConnection(java.lang.Object poolKey,
Transaction transaction,
java.util.Map options)
Obtain a connection from the Factory. |
| Field Detail |
|---|
static final java.lang.String DATANUCLEUS_CONNECTION_RESOURCE_TYPE
static final java.lang.String DATANUCLEUS_CONNECTION2_RESOURCE_TYPE
static final java.lang.String RESOURCE_TYPE_OPTION
DATANUCLEUS_CONNECTION_RESOURCE_TYPE,
DATANUCLEUS_CONNECTION2_RESOURCE_TYPE,
Constant Field Values| Method Detail |
|---|
ManagedConnection getConnection(java.lang.Object poolKey,
Transaction transaction,
java.util.Map options)
Transaction
associated to the poolKey if "enlist" is set to true.
poolKey - the pool that is bound the connection during its lifecycle (or null)options - Any options for then creating the connection
ManagedConnection
ManagedConnection createManagedConnection(java.lang.Object poolKey,
java.util.Map transactionOptions)
poolKey - the pool that is bound the connection during its lifecycle (if any)transactionOptions - the Transaction options this connection will be enlisted to, null if non existent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||