|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2) E12826-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ucp.jdbc.PoolDataSourceImpl
public class PoolDataSourceImpl
A connection pool-aware data source. This DataSource uses the Universal Connection Pool to get a connection, creating a proxy to that connection, and returning the proxy to the client. When the client calls close on the connection proxy, the underlying physical connection is returned to the pool. <p/> Besides other data source properties, applications must set the connection factory class name. The connection factory class is a class that implements javax.sql.DataSource and does not implement its own connection pooling. The connection factory's getConnection(...) methods should return a physical JDBC connection to the database. For example, "oracle.jdbc.pool.OracleDataSource" is a valid connection factory class name.
| Field Summary | |
|---|---|
protected java.lang.Object |
m_connectionFactory |
protected java.lang.String |
m_connectionFactoryClassName |
protected oracle.ucp.jdbc.JDBCConnectionPool |
m_cp |
| Constructor Summary | |
|---|---|
PoolDataSourceImpl() |
|
| Method Summary | ||
|---|---|---|
protected void |
createPoolWithDefaultProperties() |
|
UniversalConnectionPool |
createUniversalConnectionPool()Creates a Universal Connection Pool instance using this adapter. |
|
UniversalConnectionPoolMBean |
createUniversalConnectionPoolMBean()Creates a Universal Connection Pool MBean using this adapter. |
|
int |
getAbandonedConnectionTimeout()Gets the abandoned connection timeout value. |
|
int |
getAvailableConnectionsCount()Gets the number of available connections in the pool. |
|
int |
getBorrowedConnectionsCount()Gets the number of borrowed connections from the pool. |
|
java.sql.Connection |
getConnection() |
|
java.sql.Connection |
getConnection(java.util.Properties labels)Attempts to obtain a database connection with the requested connection labels. |
|
java.sql.Connection |
getConnection(java.lang.String username, java.lang.String password) |
|
java.sql.Connection |
getConnection(java.lang.String username, java.lang.String password, java.util.Properties labels)Attempts to obtain a database connection with the requested connection labels. |
|
java.lang.String |
getConnectionFactoryClassName()Gets the Connection Factory class name. |
|
java.util.Properties |
getConnectionFactoryProperties()Gets the connection factory properties that are set on this data source. |
|
java.lang.String |
getConnectionFactoryProperty(java.lang.String propertyName)Gets the specified connection factory property that are set on this data source. |
|
int |
getConnectionHarvestMaxCount()Gets the maximum number of connections that may be harvested when the connection harvesting occurs. |
|
int |
getConnectionHarvestTriggerCount()Gets the number of available connections at which the connection pool's connection harvesting will occur. |
|
java.lang.String |
getConnectionPoolName()Gets the connection pool name. |
|
java.util.Properties |
getConnectionProperties()Gets the connection properties that are set on this data source. |
|
java.lang.String |
getConnectionProperty(java.lang.String propertyName)Gets the specified connection property that are set on this data source. |
|
int |
getConnectionWaitTimeout()Gets the amount of time to wait (in seconds) for a used connection to be released by a client. |
|
java.lang.String |
getDatabaseName()Gets the database name. |
|
java.lang.String |
getDataSourceName()Gets the data source name. |
|
java.lang.String |
getDescription()Gets the data source description. |
|
boolean |
getFastConnectionFailoverEnabled()Checks if Fast Connection Failover is enabled. |
|
int |
getInactiveConnectionTimeout()Gets the inactive connection timeout. |
|
int |
getInitialPoolSize()Gets the initial pool size. |
|
int |
getLoginTimeout() |
|
java.io.PrintWriter |
getLogWriter() |
|
int |
getMaxConnectionReuseCount()Gets the connection reuse count property. |
|
long |
getMaxConnectionReuseTime()Gets the connection reuse time property. |
|
int |
getMaxIdleTime()Gets Idle timeout value. |
|
int |
getMaxPoolSize()Gets the maximum number of connections that the connection pool will maintain. |
|
int |
getMaxStatements()Gets the maximum number of statements that may be pooled or cached on a Connection. |
|
int |
getMinPoolSize()Gets the minimum number of connections that the connection pool will maintain. |
|
java.lang.String |
getNetworkProtocol()Gets the datasource networkProtocol. |
|
java.lang.Object |
getObjectInstance(java.lang.Object refObj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env) |
|
java.lang.String |
getONSConfiguration()Returns the ONS configuration string that is used for remote ONS subscription, in the form specified in setONSConfiguration(String). |
|
java.lang.String |
getPassword()Gets the Password for this data source. |
|
int |
getPortNumber()Gets the database port number. |
|
int |
getPropertyCycle()Gets Property cycle in seconds. |
|
javax.naming.Reference |
getReference() |
|
java.lang.String |
getRoleName()Gets the datasource role name. |
|
java.lang.String |
getServerName()Gets the database server name. |
|
java.lang.String |
getSQLForValidateConnection()Gets the Value for SQLForValidateConnection property. |
|
JDBCConnectionPoolStatistics |
getStatistics()Gets the statistics of the connection pool. |
|
int |
getTimeoutCheckInterval()Gets the timeout check interval (in seconds). |
|
int |
getTimeToLiveConnectionTimeout()Gets the maximum time (in seconds) a connection may remain in-use. |
|
java.lang.String |
getURL()Gets the URL for this data source. |
|
java.lang.String |
getUser()Gets the user name for this data source. |
|
boolean |
getValidateConnectionOnBorrow()Returns whether or not a connection being borrowed should first be validated. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)Since this class is not a wrapper, just check to see if this implements the requested interface. |
|
void |
registerConnectionAffinityCallback(ConnectionAffinityCallback cbk)Registers a ConnectionAffinityCallback on the connection pool. |
|
void |
registerConnectionLabelingCallback(ConnectionLabelingCallback cbk)Registers a ConnectionLabelingCallback with the underlying connection pool. |
|
void |
removeConnectionAffinityCallback()Removes the ConnectionAffinityCallback registered on the connection pool. |
|
void |
removeConnectionLabelingCallback()Removes the ConnectionLabelingCallback object registered with the underlying connection pool, if any. |
|
void |
setAbandonedConnectionTimeout(int abandonedConnectionTimeout)Sets the abandoned connection timeout. |
|
void |
setConnectionFactoryClassName(java.lang.String factoryClassName)Sets the Connection Factory class name. |
|
void |
setConnectionFactoryProperties(java.util.Properties factoryProperties)Sets the connection factory properties on the connection factory. |
|
void |
setConnectionFactoryProperty(java.lang.String name, java.lang.String value)Sets a connection factory property on the connection factory. |
|
void |
setConnectionHarvestMaxCount(int connectionHarvestMaxCount)Sets the maximum number of connections that may be harvested when the connection harvesting occurs. |
|
void |
setConnectionHarvestTriggerCount(int connectionHarvestTriggerCount)Sets the number of available connections at which the connection pool's connection harvesting will occur. |
|
void |
setConnectionPoolName(java.lang.String connectionPoolName)Sets the connection pool name. |
|
void |
setConnectionProperties(java.util.Properties connectionProperties)Sets the connection properties on the connection factory. |
|
void |
setConnectionProperty(java.lang.String name, java.lang.String value)Sets a connection property on the connection factory. |
|
void |
setConnectionWaitTimeout(int waitTimeout)Sets the amount of time to wait (in seconds) for a used connection to be released by a client. |
|
void |
setDatabaseName(java.lang.String databaseName)Sets the database name. |
|
void |
setDataSourceName(java.lang.String dataSourceName)Sets the data source name. |
|
void |
setDescription(java.lang.String description)Sets the data source description. |
|
void |
setFastConnectionFailoverEnabled(boolean failoverEnabled)Enables Fast Connection Failover (FCF) for the connection pool accessed using this pool-enabled data source. |
|
void |
setInactiveConnectionTimeout(int inactivityTimeout)Sets the inactive connection timeout. |
|
void |
setInitialPoolSize(int initialPoolSize)Sets the initial pool size. |
|
void |
setLoginTimeout(int seconds) |
|
void |
setLogWriter(java.io.PrintWriter out) |
|
void |
setMaxConnectionReuseCount(int maxConnectionReuseCount)Gets the connection reuse count property. |
|
void |
setMaxConnectionReuseTime(long maxConnectionReuseTime)Gets the connection reuse time property. |
|
void |
setMaxIdleTime(int idleTime)Sets Idle timeout for available connections in the pool. |
|
void |
setMaxPoolSize(int maxPoolSize)Sets the maximum number of connections. |
|
void |
setMaxStatements(int maxStatements)Sets the maximum number of statements that may be pooled or cached on a connection. |
|
void |
setMinPoolSize(int minPoolSize)Sets the minimum number of connections. |
|
void |
setNetworkProtocol(java.lang.String networkProtocol)Sets the datasource networkProtocol. |
|
void |
setONSConfiguration(java.lang.String onsConfigStr)Sets the configuration string used for remote ONS subscription. |
|
void |
setPassword(java.lang.String password)Sets the password with which connections have to be obtained. |
|
void |
setPortNumber(int portNumber)Sets the database port number. |
|
void |
setPropertyCycle(int propertyCycle)Sets Property cycle in seconds. |
|
void |
setRoleName(java.lang.String roleName)Sets the datasource role name. |
|
void |
setServerName(java.lang.String serverName)Sets the database server name. |
|
void |
setSQLForValidateConnection(java.lang.String SQLString)Sets the value(SQL) for SQLForValidateConnection property. |
|
void |
setTimeoutCheckInterval(int timeInterval)Sets the timeoutCheckInterval (in seconds). |
|
void |
setTimeToLiveConnectionTimeout(int timeToLiveConnectionTimeout)Sets the maximum time (in seconds) a connection may remain in-use. |
|
void |
setURL(java.lang.String url)Sets the URL that the data source uses to obtain connections to the database. |
|
void |
setUser(java.lang.String user)Sets the user name with which connections have to be obtained. |
|
void |
setValidateConnectionOnBorrow(boolean validateConnectionOnBorrow)Sets whether or not a connection being borrowed should first be validated. |
|
void |
startPool() |
|
static java.lang.Object |
toBasicType(java.lang.String value, java.lang.String type) |
|
|
unwrap(java.lang.Class<T> iface)Since this class is not a wrapper, just check to see if this implements the requested interface. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_connectionFactoryClassName
protected java.lang.Object m_connectionFactory
protected oracle.ucp.jdbc.JDBCConnectionPool m_cp
| Constructor Detail |
|---|
public PoolDataSourceImpl()
| Method Detail |
|---|
public void startPool()
throws java.sql.SQLException
java.sql.SQLException
protected void createPoolWithDefaultProperties()
throws java.sql.SQLException
java.sql.SQLException
public UniversalConnectionPool createUniversalConnectionPool()
throws java.sql.SQLException
createUniversalConnectionPool in interface UniversalConnectionPoolAdapterjava.sql.SQLException - If any error occurs during the process of connection pool creation.UniversalConnectionPoolManager
public UniversalConnectionPoolMBean createUniversalConnectionPoolMBean()
throws java.sql.SQLException
createUniversalConnectionPoolMBean in interface UniversalConnectionPoolAdapterjava.sql.SQLException - If any error occurs during the process of connection pool creation.UniversalConnectionPoolManagerMBean
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.util.Properties labels)
throws java.sql.SQLException
getConnection in interface PoolDataSourcelabels - The requested connection labels.java.sql.SQLException - if a database-access error occurs.
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password,
java.util.Properties labels)
throws java.sql.SQLException
getConnection in interface PoolDataSourceusername - The database user on whose behalf the connection is being made.password - The user's password.labels - The requested connection labels.java.sql.SQLException - if a database-access error occurs.
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.DataSourcejava.sql.SQLException
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.DataSourcejava.sql.SQLException
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.lang.String getUser()
PoolDataSourcegetUser in interface PoolDataSource
public void setUser(java.lang.String user)
throws java.sql.SQLException
PoolDataSourcesetUser in interface PoolDataSourceuser - Username to be set.java.sql.SQLExceptionpublic java.lang.String getPassword()
PoolDataSourcegetPassword in interface PoolDataSource
public void setPassword(java.lang.String password)
throws java.sql.SQLException
PoolDataSourcesetPassword in interface PoolDataSourcepassword - Passowrd to be set.java.sql.SQLExceptionpublic java.lang.String getURL()
PoolDataSourcegetURL in interface PoolDataSource
public void setURL(java.lang.String url)
throws java.sql.SQLException
PoolDataSourcesetURL in interface PoolDataSourceurl - URL to be set.java.sql.SQLException
public void setServerName(java.lang.String serverName)
throws java.sql.SQLException
setServerName in interface PoolDataSourceserverName - Database server name to be set.java.sql.SQLExceptionpublic java.lang.String getServerName()
getServerName in interface PoolDataSource
public void setPortNumber(int portNumber)
throws java.sql.SQLException
setPortNumber in interface PoolDataSourceportNumber - Database port number to be set.java.sql.SQLExceptionpublic int getPortNumber()
getPortNumber in interface PoolDataSource
public void setDatabaseName(java.lang.String databaseName)
throws java.sql.SQLException
setDatabaseName in interface PoolDataSourcedatabaseName - Database name to be set.java.sql.SQLExceptionpublic java.lang.String getDatabaseName()
getDatabaseName in interface PoolDataSource
public void setDataSourceName(java.lang.String dataSourceName)
throws java.sql.SQLException
setDataSourceName in interface PoolDataSourcedataSourceName - data source name to be set.java.sql.SQLExceptionpublic java.lang.String getDataSourceName()
getDataSourceName in interface PoolDataSource
public void setDescription(java.lang.String description)
throws java.sql.SQLException
setDescription in interface PoolDataSourcedescription - data source description to be set.java.sql.SQLExceptionpublic java.lang.String getDescription()
getDescription in interface PoolDataSource
public void setNetworkProtocol(java.lang.String networkProtocol)
throws java.sql.SQLException
setNetworkProtocol in interface PoolDataSourcenetworkProtocol - datasource networkProtocol to be set.java.sql.SQLExceptionpublic java.lang.String getNetworkProtocol()
getNetworkProtocol in interface PoolDataSource
public void setRoleName(java.lang.String roleName)
throws java.sql.SQLException
setRoleName in interface PoolDataSourceroleName - datasource role name to be set.java.sql.SQLExceptionpublic java.lang.String getRoleName()
getRoleName in interface PoolDataSource
public void setInitialPoolSize(int initialPoolSize)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. It is illegal to set this to a value greater than the maximum pool size. Defaults to 0.setInitialPoolSize in interface PoolDataSourceinitialPoolSize - the initial pool size.java.sql.SQLExceptionpublic int getInitialPoolSize()
PoolDataSourcegetInitialPoolSize in interface PoolDataSourcepublic int getMinPoolSize()
PoolDataSourcegetMinPoolSize in interface PoolDataSource
public void setMinPoolSize(int minPoolSize)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. It is illegal to set this to a value greater than the maximum pool size. Defaults to 0.setMinPoolSize in interface PoolDataSourceminPoolSize - The minimum number of connections.java.sql.SQLExceptionpublic int getMaxPoolSize()
PoolDataSourcegetMaxPoolSize in interface PoolDataSource
public void setMaxPoolSize(int maxPoolSize)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to Integer.MAX_VALUE.setMaxPoolSize in interface PoolDataSourcemaxPoolSize - The maximum number of connections.java.sql.SQLException
public void setInactiveConnectionTimeout(int inactivityTimeout)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to 0. <p/> Setting the value to 0 disables inactive connection timeout processing.setInactiveConnectionTimeout in interface PoolDataSourceinactivityTimeout - The inactive connection timeout in seconds.java.sql.SQLExceptionpublic int getInactiveConnectionTimeout()
PoolDataSourcegetInactiveConnectionTimeout in interface PoolDataSource
public void setConnectionWaitTimeout(int waitTimeout)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to 3. <p/> Setting the value to 0 disables connection wait timeout processing.setConnectionWaitTimeout in interface PoolDataSourcewaitTimeout - The amount of time to wait.java.sql.SQLExceptionpublic int getConnectionWaitTimeout()
PoolDataSourcegetConnectionWaitTimeout in interface PoolDataSource
public void setTimeToLiveConnectionTimeout(int timeToLiveConnectionTimeout)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to 0. <p/> Setting the value to 0 disables time-to-live connection timeout processing.setTimeToLiveConnectionTimeout in interface PoolDataSourcetimeToLiveConnectionTimeout - The maximum time (in seconds) a used connection may be active.java.sql.SQLExceptionpublic int getTimeToLiveConnectionTimeout()
PoolDataSourcegetTimeToLiveConnectionTimeout in interface PoolDataSourcepublic int getAbandonedConnectionTimeout()
PoolDataSourcegetAbandonedConnectionTimeout in interface PoolDataSource
public void setAbandonedConnectionTimeout(int abandonedConnectionTimeout)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to 0. <p/> Setting the value to 0 disables abandoned connect.Specified by:setAbandonedConnectionTimeout in interface PoolDataSourceabandonedConnectionTimeout - The value of how long a connection has not been used before it is abandoned (in seconds).java.sql.SQLException
public void setTimeoutCheckInterval(int timeInterval)
throws java.sql.SQLException
PoolDataSourceInteger.MAX_VALUE. Defaults to 30. <p/> Setting the value to 0 disables all connection timeout processing.setTimeoutCheckInterval in interface PoolDataSourcetimeInterval - The timeInterval (in seconds) between checks to enforce the timeout properties.java.sql.SQLExceptionpublic int getTimeoutCheckInterval()
PoolDataSourcegetTimeoutCheckInterval in interface PoolDataSourcetimeInterval (in seconds) between checks to enforce the timeout properties.
public void setFastConnectionFailoverEnabled(boolean failoverEnabled)
throws java.sql.SQLException
PoolDataSourcesetFastConnectionFailoverEnabled in interface PoolDataSourcefailoverEnabled - true if Fast Connection Failover is enabled; false if not.java.sql.SQLExceptionpublic boolean getFastConnectionFailoverEnabled()
PoolDataSourcegetFastConnectionFailoverEnabled in interface PoolDataSourcetrue if Fast Connection Failover is enabled; false if not.public java.lang.String getConnectionFactoryClassName()
PoolDataSourcegetConnectionFactoryClassName in interface PoolDataSource
public void setConnectionFactoryClassName(java.lang.String factoryClassName)
throws java.sql.SQLException
PoolDataSourcePoolDataSource to operate.setConnectionFactoryClassName in interface PoolDataSourcefactoryClassName - Connection factory class name for obtaining physical connections.java.sql.SQLException
public void setMaxStatements(int maxStatements)
throws java.sql.SQLException
setMaxStatements in interface PoolDataSourcemaxStatements - maximum number of statements to be pooled.java.sql.SQLException - Exception occurred during the process of setting maximum statements that may be pooled on a connection.public int getMaxStatements()
getMaxStatements in interface PoolDataSource
public void setMaxIdleTime(int idleTime)
throws java.sql.SQLException
setMaxIdleTime in interface PoolDataSourceidleTime - Idle timeout value in seconds.java.sql.SQLExceptionpublic int getMaxIdleTime()
getMaxIdleTime in interface PoolDataSource
public void setPropertyCycle(int propertyCycle)
throws java.sql.SQLException
setPropertyCycle in interface PoolDataSourcepropertyCycle - Time interval in seconds to enforce connection pool timeout properties.java.sql.SQLExceptionpublic int getPropertyCycle()
getPropertyCycle in interface PoolDataSource
public void setConnectionPoolName(java.lang.String connectionPoolName)
throws java.sql.SQLException
setConnectionPoolName in interface PoolDataSourceconnectionPoolName - Name of connection pool.java.sql.SQLExceptionpublic java.lang.String getConnectionPoolName()
getConnectionPoolName in interface PoolDataSource
public void setValidateConnectionOnBorrow(boolean validateConnectionOnBorrow)
throws java.sql.SQLException
setValidateConnectionOnBorrow in interface PoolDataSourcevalidateConnectionOnBorrow - Whether or not a connection being borrowed should first be validated.java.sql.SQLExceptionpublic boolean getValidateConnectionOnBorrow()
getValidateConnectionOnBorrow in interface PoolDataSource
public void setSQLForValidateConnection(java.lang.String SQLString)
throws java.sql.SQLException
setSQLForValidateConnection in interface PoolDataSourceSQLString - The SQL string used for connection validation.java.sql.SQLExceptionpublic java.lang.String getSQLForValidateConnection()
getSQLForValidateConnection in interface PoolDataSourcepublic int getConnectionHarvestTriggerCount()
getConnectionHarvestTriggerCount in interface PoolDataSource
public void setConnectionHarvestTriggerCount(int connectionHarvestTriggerCount)
throws java.sql.SQLException
setConnectionHarvestTriggerCount in interface PoolDataSourceconnectionHarvestTriggerCount - The number of available connections at which the connection pool's connection harvesting will occur.java.sql.SQLExceptionpublic int getConnectionHarvestMaxCount()
getConnectionHarvestMaxCount in interface PoolDataSource
public void setConnectionHarvestMaxCount(int connectionHarvestMaxCount)
throws java.sql.SQLException
setConnectionHarvestMaxCount in interface PoolDataSourceconnectionHarvestMaxCount - the maximum number of connections that may be harvested when the connection harvesting occurs.java.sql.SQLExceptionpublic long getMaxConnectionReuseTime()
getMaxConnectionReuseTime in interface PoolDataSource
public void setMaxConnectionReuseTime(long maxConnectionReuseTime)
throws java.sql.SQLException
setMaxConnectionReuseTime in interface PoolDataSourceconnection - reuse time (in seconds), 0 value means that the feature is disabled.java.sql.SQLExceptionpublic int getMaxConnectionReuseCount()
getMaxConnectionReuseCount in interface PoolDataSource
public void setMaxConnectionReuseCount(int maxConnectionReuseCount)
throws java.sql.SQLException
setMaxConnectionReuseCount in interface PoolDataSourceconnection - reuse count, 0 value means that the feature is disabled.java.sql.SQLExceptionpublic int getAvailableConnectionsCount()
getAvailableConnectionsCount in interface PoolDataSourcepublic int getBorrowedConnectionsCount()
getBorrowedConnectionsCount in interface PoolDataSource
public java.lang.String getONSConfiguration()
throws java.sql.SQLException
getONSConfiguration in interface PoolDataSourcejava.sql.SQLException
public void setONSConfiguration(java.lang.String onsConfigStr)
throws java.sql.SQLException
"nodes=host1:4200,host2:4200\nwalletfile=wfile\nwalletpassword=wpwd"
<p/> This is used primarily by Fast Connection Failover and Runtime Load Balancing.setONSConfiguration in interface PoolDataSourceonsConfigStr - The configuration string for remote ONS subscription.java.sql.SQLException
public void registerConnectionLabelingCallback(ConnectionLabelingCallback cbk)
throws java.sql.SQLException
registerConnectionLabelingCallback in interface PoolDataSourcecbk - The ConnectionLabelingCallback object to be registered.java.sql.SQLException - If there is a callback already registered with the pool.
public void removeConnectionLabelingCallback()
throws java.sql.SQLException
removeConnectionLabelingCallback in interface PoolDataSourcejava.sql.SQLException - If callback removal fails.
public void registerConnectionAffinityCallback(ConnectionAffinityCallback cbk)
throws java.sql.SQLException
registerConnectionAffinityCallback in interface PoolDataSourcecbk - Affinity Callback object that must be registered.java.sql.SQLException - If callback registration fails.
public void removeConnectionAffinityCallback()
throws java.sql.SQLException
removeConnectionAffinityCallback in interface PoolDataSourcejava.sql.SQLException - If callback removal fails.public JDBCConnectionPoolStatistics getStatistics()
getStatistics in interface PoolDataSourcepublic java.util.Properties getConnectionProperties()
getConnectionProperties in interface PoolDataSourcepublic java.lang.String getConnectionProperty(java.lang.String propertyName)
getConnectionProperty in interface PoolDataSourcepropertyName - The name of the specified property.
public void setConnectionProperty(java.lang.String name,
java.lang.String value)
throws java.sql.SQLException
oracle.jdbc.pool.OracleDataSource in the Oracle JDBC driver.setConnectionProperty in interface PoolDataSourcename - The name of the connection property to be set on the connection factory class.value - The value of the connection property to be set on the connection factory class.java.sql.SQLException - If any exception occurred while setting the connection property.setConnectionFactoryProperties
public void setConnectionProperties(java.util.Properties connectionProperties)
throws java.sql.SQLException
oracle.jdbc.pool.OracleDataSource in the Oracle JDBC driver.setConnectionProperties in interface PoolDataSourceconnectionProperties - Connection properties to be set on the connection factory class.java.sql.SQLException - If any exception occurred while setting the connection properties.setConnectionFactoryPropertiespublic java.util.Properties getConnectionFactoryProperties()
getConnectionFactoryProperties in interface PoolDataSourcepublic java.lang.String getConnectionFactoryProperty(java.lang.String propertyName)
getConnectionFactoryProperty in interface PoolDataSourcepropertyName - The name of the specified property.
public void setConnectionFactoryProperty(java.lang.String name,
java.lang.String value)
throws java.sql.SQLException
java.sql.Driver, the connection factory property specified here will be assumed as a connection property. <p/> For DataSource connection factories, the property specified here will be assumed as a DataSource property.setConnectionFactoryProperty in interface PoolDataSourcename - The name of the connection factory property to be set on the connection factory class.value - The value of the connection factory property to be set on the connection factory class.java.sql.SQLException - If any exception occurred while setting the connection factory property.java.lang.IllegalArgumentException - If the property name or value is invalid.
public void setConnectionFactoryProperties(java.util.Properties factoryProperties)
throws java.sql.SQLException
java.sql.Driver, the connection factory properties specified here will be assumed as the connection properties. <p/> For DataSource connection factories, the properties specified here will be assumed as the DataSource properties.setConnectionFactoryProperties in interface PoolDataSourcefactoryProperties - Connection factory properties to be set on the connection factory class.java.sql.SQLException - If any exception occurred while setting the connection factory properties.java.lang.IllegalArgumentException - If factoryProperties is empty.
public static final java.lang.Object toBasicType(java.lang.String value,
java.lang.String type)
public javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingException
public java.lang.Object getObjectInstance(java.lang.Object refObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryjava.lang.Exception
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
iface - Requested interface.java.sql.SQLException - If the argument is not an interface.
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
iface - Requested interface.java.sql.SQLException - If this does not implement the arg or the arg is not an interface.
|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2) E12826-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||