Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


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
abstract  Connection getConnection(String sqlConnectionName)
          Gets a Connection instance from the named JDBC data source.
abstract  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

Skip navigation links

Copyright 1996, 2015, 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
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09