public abstract class JDBCConnectionFactoryAdapter
extends oracle.ucp.common.ConnectionFactoryAdapterBase
javx.sql.DataSource
.
The physical connections that this adapter creates and closes are instances
of java.sql.Connection
.ConnectionFactoryAdapter
Constructor and Description |
---|
JDBCConnectionFactoryAdapter() |
Modifier and Type | Method and Description |
---|---|
UniversalPooledConnection |
createPooledConnection(Object connection,
ConnectionRetrievalInfo connectionRequestInfo)
Creates a
UniversalPooledConnection object. |
String |
getUrl()
Obtains the connection url set on the connection factory.
|
void |
initializeUrlFromConnectionFactory()
Initializes the connection url with the one set on the connection
factory.
|
void |
setUrl(String url)
Sets the supplied connection url on the connection factory.
|
protected String m_url
public void initializeUrlFromConnectionFactory()
public String getUrl()
public void setUrl(String url)
url
- The connection url to set on the connection factory.public UniversalPooledConnection createPooledConnection(Object connection, ConnectionRetrievalInfo connectionRequestInfo) throws UniversalConnectionPoolException
UniversalPooledConnection
object.createPooledConnection
in interface ConnectionFactoryAdapter
createPooledConnection
in class oracle.ucp.common.ConnectionFactoryAdapterBase
connection
- The physical connection this
pooled connection decorates.connectionRequestInfo
- The connection retrieval info object
used to create the decorated
connection.JDBCUniversalPooledConnection
object.UniversalConnectionPoolException
- if an error occurs creating the
UniversalPooledConnection
object.
Copyright © 2008, 2017, Oracle. All rights reserved.