|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 | |
---|---|
Connection |
getConnection(String sqlConnectionName)
Gets a Connection instance from the named JDBC data source. |
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 unavailable
JDBCConnectionServiceException
- - if the named JDBC data source is unavailablevoid releaseConnection(Connection connection) throws SQLException
Releases the Connection
instance.
connection
-
SQLException
- - if the database connection is unavailable
|
Copyright 1996, 2013, 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.1.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |