com.ibm.websphere.sdo.mediator.jdbc

Interface ConnectionWrapperFactory


  1. public interface ConnectionWrapperFactory
A ConnectionWrapperFactory is used to create a new ConnectionWrapper object.

Field Summary

Modifier and Type Field and Description
  1. static
  2. ConnectionWrapperFactory
soleInstance
The singleton instance of a ConnectionWrapperFactory

Method Summary

Modifier and Type Method and Description
  1. ConnectionWrapper
createConnectionWrapper(java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance.
  1. ConnectionWrapper
createPassiveConnectionWrapper(java.sql.Connection connection)
Create a connection wrapper based on the provided Connection instance.

Field Detail

soleInstance

  1. static final ConnectionWrapperFactory soleInstance
The singleton instance of a ConnectionWrapperFactory

Method Detail

createConnectionWrapper

  1. 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

  1. 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