com.ibm.websphere.sdo.mediator.jdbc
Interface ConnectionWrapperFactory
-
public interface ConnectionWrapperFactory
A ConnectionWrapperFactory is used to create a new ConnectionWrapper object.
-
-
Field Summary
Fields Modifier and Type Field and Description static ConnectionWrapperFactory
soleInstance
The singleton instance of a ConnectionWrapperFactory
-
Method Summary
Methods Modifier and Type Method and Description ConnectionWrapper
createConnectionWrapper(java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance.ConnectionWrapper
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
-
-