public class OracleDriverConnectionFactoryAdapter extends DriverConnectionFactoryAdapter
DriverConnectionFactoryAdapterm_connectionProperties, m_driverm_url| Constructor and Description |
|---|
OracleDriverConnectionFactoryAdapter(Driver driver,
String url,
Properties connectionProperties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createConnection(ConnectionRetrievalInfo connectionRequestInfo)
Creates a physical
java.sql.Connection. |
UniversalPooledConnection |
createPooledConnection(Object connection,
ConnectionRetrievalInfo connectionRequestInfo)
Creates a UniversalPooledConnection object.
|
closeConnection, getDrivergetUrl, initializeUrlFromConnectionFactory, setUrlpublic OracleDriverConnectionFactoryAdapter(Driver driver, String url, Properties connectionProperties) throws UniversalConnectionPoolException
driver - The JDBC driver. Cannot be null.url - The connect URL. Cannot be null.connectionProperties - The connection properties. If the URL
doesn't specify the user and password, the properties must
also contain the user and password for obtaining connections.UniversalConnectionPoolException - if an error occurs during construction.public Object createConnection(ConnectionRetrievalInfo connectionRequestInfo) throws UniversalConnectionPoolException
DriverConnectionFactoryAdapterjava.sql.Connection.createConnection in interface ConnectionFactoryAdaptercreateConnection in class DriverConnectionFactoryAdapterconnectionRequestInfo - The information to use to create the
connection.java.sql.Connection. null if a
connection could not be created.UniversalConnectionPoolException - if an error occurs while creating
the connection.public UniversalPooledConnection createPooledConnection(Object connection, ConnectionRetrievalInfo connectionRequestInfo) throws UniversalConnectionPoolException
createPooledConnection in interface ConnectionFactoryAdaptercreatePooledConnection in class JDBCConnectionFactoryAdapterconnection - The physical connection that this
pooled connection decorates.connectionRequestInfo - The connection retrieval info object
used to create the decorated
connection.UniversalConnectionPoolException - if an error occurs creating the UniversalPooledConnection
object.
Copyright © 2008, 2016, Oracle. All rights reserved.