Package com.ibm.websphere.rsadapter
Interface JDBCConnectionSpec
-
- All Superinterfaces:
WSConnectionSpec
public interface JDBCConnectionSpec extends WSConnectionSpec
An interface provided for JDBC users to specify additional Connection properties on getConnection.
To make use of this functionality, the JDBC application must cast to WSDataSource as follows,
Connection conn = ((WSDataSource) ds).getConnection(jdbcConnectionSpec);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getTransactionIsolation()
Get the transaction isolation level.void
setTransactionIsolation(int isolationLevel)
Set the transaction isolation level.-
Methods inherited from interface com.ibm.websphere.rsadapter.WSConnectionSpec
getCatalog, getHoldability, getNetworkTimeout, getPassword, getSchema, getTypeMap, getUserName, isReadOnly, setCatalog, setHoldability, setNetworkTimeout, setPassword, setReadOnly, setSchema, setTypeMap, setUserName
-
-
-
-
Method Detail
-
getTransactionIsolation
int getTransactionIsolation()
Get the transaction isolation level.- Returns:
- the java.sql.Connection transaction isolation constant for the isolation level.
-
setTransactionIsolation
void setTransactionIsolation(int isolationLevel)
Set the transaction isolation level. Any isolation level constant from the java.sql.Connection interface can be used, provided the backend supports it.
A value of TRANSACTION_NONE indicates unspecified, in which case the isolation level is determined as usual.
- Parameters:
isolationLevel
- the isolation level.
-
-