com.ibm.websphere.sdo.mediator.jdbc
Interface ConnectionWrapperFactory
- public interface ConnectionWrapperFactory
Field Summary
Modifier and Type | Field and Description |
---|---|
|
soleInstance
The singleton instance of a ConnectionWrapperFactory
|
Method Summary
Modifier and Type | Method and Description |
---|---|
createConnectionWrapper(java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance.
|
|
createPassiveConnectionWrapper(java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance.
|
Field Detail
soleInstance
- static final ConnectionWrapperFactory soleInstance
The singleton instance of a ConnectionWrapperFactory
Method Detail
createConnectionWrapper
- ConnectionWrapper createConnectionWrapper( java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance. This
wrapper indicates to the JDBC Mediator that it is to be actively managed. That is
transactions will be committed or rolled back based on the success status of operations
applied the connection
Parameters:
connection
- Returns:
the connection wrapper
createPassiveConnectionWrapper
- ConnectionWrapper createPassiveConnectionWrapper( java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance. This
wrapper indicates to the JDBC Mediator that it is NOT to be managed. That is
transactions will be not committed or rolled back based on the success status of operations
applied the connection. The mediator assumes that the client is managing the transaction.
Parameters:
connection
- Returns:
the connection wrapper