|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface providing access to JDBC connections to data resources.
| Method Summary | |
java.sql.Connection |
getJDBCConnection(java.lang.String userCredentials)
Returns a JDBC connection. |
java.lang.String |
getJDBCDriverClassName()
Returns the name of the JDBC driver class. |
void |
releaseJDBCConnection(java.sql.Connection connection)
Releases a previously obtained JDBC connection. |
| Method Detail |
public java.lang.String getJDBCDriverClassName()
public java.sql.Connection getJDBCConnection(java.lang.String userCredentials)
throws DataResourceAuthorizationException,
JDBCConnectionUseException,
AuthorizationExecutionException
The specified user credential may be used to authorize access to the data resource.
userCredentials - Credentials specifing a user.
DataResourceAuthorizationException - if the user is not
authorized to access the connection.
JDBCConnectionUseException - if there is a problem in
using the data resource.
AuthorizationExecutionException - if there is a problem
encountered during the authorization.
public void releaseJDBCConnection(java.sql.Connection connection)
throws JDBCConnectionUseException
Once a connection is finished with it should be passed back to this method. This allows connection pooling to be performed under the surface.
connection - JDBC connection to release. If the connection is
null or already released then nothing is done.
JDBCConnectionUseException - if there is a problem in
using the data resource.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||