com.ibm.websphere.rsadapter
Interface WSDataSource

All Superinterfaces:
javax.sql.DataSource

public interface WSDataSource
extends javax.sql.DataSource

Interface which enables an application to provide additional parameters when requesting a Connection. These parameters are provided in a ConnectionSpec object.


Method Summary
 java.sql.Connection getConnection(JDBCConnectionSpec connSpec)
          Obtains a Connection based on the information provided in the JDBCConnectionSpec object.
 java.sql.Connection getConnection(WSCciConnectionSpec connSpec)
           
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Method Detail

getConnection

public java.sql.Connection getConnection(JDBCConnectionSpec connSpec)
                                  throws java.sql.SQLException
Obtains a Connection based on the information provided in the JDBCConnectionSpec object. This method is provided to give JDBC applications a mechanism for specifying the catalog, isReadOnly, and typeMap Connection properties. This allows the underlying Connection to be shared based on the above criteria.
Parameters:
connSpec - information used to establish the Connection, such as user name, password, and type map. This value should never be null.
Returns:
the Connection
Throws:
java.sql.SQLException - if an error occurs while obtaining a Connection.

getConnection

public java.sql.Connection getConnection(WSCciConnectionSpec connSpec)
                                  throws java.sql.SQLException
Parameters:
connSpec - information used to establish the Connection, such as user name, password, and AccessIntent. This value should never be null, however, an empty WSConnectionSpec may be used instead.
Returns:
the Connection
Throws:
java.sql.SQLException - if an error occurs while obtaining a Connection.