Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.security.spi
Interface JDBCConnectionService


public interface JDBCConnectionService

Interface used to obtain a database connection from a JDBC data source.

JDBC data sources are identified by name, not JNDI path.


Method Summary
 Connection getConnection(String sqlConnectionName)
          Gets a Connection instance from the named JDBC data source.
 void releaseConnection(Connection connection)
          Releases the Connection instance.
 

Method Detail

getConnection

Connection getConnection(String sqlConnectionName)
                         throws SQLException,
                                JDBCConnectionServiceException

Gets a Connection instance from the named JDBC data source. When finished with the connection, the security provider must invoke the releaseConnection method to release that connection.

Parameters:
sqlConnectionName -
Returns:
Returns Connection instance
Throws:
SQLException - - if the database connection is unavailable
JDBCConnectionServiceException - - if the named JDBC data source is unavailable

releaseConnection

void releaseConnection(Connection connection)
                       throws SQLException

Releases the Connection instance.

Parameters:
connection -
Throws:
SQLException - - if the database connection is unavailable

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06