public interface ConnectionFactory
Modifier and Type | Field and Description |
---|---|
static String |
DATANUCLEUS_CONNECTION_RESOURCE_TYPE
User-visible configuration property name
|
static String |
DATANUCLEUS_CONNECTION2_RESOURCE_TYPE
User-visible configuration property name
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources that have been allocated.
|
ManagedConnection |
createManagedConnection(ExecutionContext ec,
Map<String,Object> transactionOptions)
Create the ManagedConnection.
|
String |
getResourceName()
Accessor for the resource name (e.g "jdbc/tx").
|
String |
getResourceType()
Type of resource that this ConnectionFactory represents.
|
static final String DATANUCLEUS_CONNECTION_RESOURCE_TYPE
static final String DATANUCLEUS_CONNECTION2_RESOURCE_TYPE
ManagedConnection createManagedConnection(ExecutionContext ec, Map<String,Object> transactionOptions)
ec
- ExecutionContext that the connection is bound to during its lifecycle (if any)transactionOptions
- the Transaction options this connection will be enlisted to, null if non existentvoid close()
String getResourceType()
String getResourceName()
Copyright © 2019. All rights reserved.