|
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 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
|---|
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.
sqlConnectionName -SQLException - - if the database connection is unavailableJDBCConnectionServiceException - - if the named JDBC data source is unavailable
void releaseConnection(Connection connection)
throws SQLException
Releases the Connection instance.
connection -SQLException - - if the database connection is unavailable
|
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 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||