|
Oracle10g JDBC | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleOCIConnectionPool
Field Summary | |
static java.lang.String |
BUILD_DATE
|
static java.lang.String |
CONNECTION_ID
|
static java.lang.String |
CONNECTION_POOL
|
static java.lang.String |
CONNPOOL_ACTIVE_SIZE
|
static java.lang.String |
CONNPOOL_ALIASED_CONNECTION
|
static java.lang.String |
CONNPOOL_CONNECTION
|
static java.lang.String |
CONNPOOL_INCREMENT
|
static java.lang.String |
CONNPOOL_IS_POOLCREATED
|
static java.lang.String |
CONNPOOL_LOGON_MODE
|
static java.lang.String |
CONNPOOL_MAX_LIMIT
|
static java.lang.String |
CONNPOOL_MIN_LIMIT
|
static java.lang.String |
CONNPOOL_NOWAIT
|
static java.lang.String |
CONNPOOL_OBJECT
|
static java.lang.String |
CONNPOOL_POOL_SIZE
|
static java.lang.String |
CONNPOOL_PROXY_CONNECTION
|
static java.lang.String |
CONNPOOL_TIMEOUT
|
static java.lang.String |
IS_CONNECTION_POOLING
|
oracle.jdbc.oci.OracleOCIConnection |
m_connection_pool
|
static boolean |
PRIVATE_TRACE
|
static java.lang.String |
PROXY_CERTIFICATE
|
static java.lang.String |
PROXY_DISTINGUISHED_NAME
|
static java.lang.String |
PROXY_NUM_ROLES
|
static java.lang.String |
PROXY_PASSWORD
|
static java.lang.String |
PROXY_ROLES
|
static java.lang.String |
PROXY_USER_NAME
|
static java.lang.String |
PROXYTYPE
|
static java.lang.String |
PROXYTYPE_CERTIFICATE
|
static java.lang.String |
PROXYTYPE_DISTINGUISHED_NAME
|
static java.lang.String |
PROXYTYPE_USER_NAME
|
static boolean |
TRACE
|
static java.lang.String |
TRANSACTIONS_DISTRIBUTED
|
Fields inherited from class oracle.jdbc.pool.OracleDataSource |
isOracleDataSource |
Constructor Summary | |
OracleOCIConnectionPool()
This will use the user-id, password and connection pool name values set using the methods setUser, setPassword, setConnectionPoolName. |
|
OracleOCIConnectionPool(java.lang.String us,
java.lang.String p,
java.lang.String url)
|
|
OracleOCIConnectionPool(java.lang.String us,
java.lang.String p,
java.lang.String url,
java.util.Properties info)
|
Method Summary | |
void |
close()
Close DataSource API. |
void |
connectionClosed(oracle.jdbc.oci.OracleOCIConnection conn)
|
int |
getActiveSize()
Return the number of active or busy connections in the connection pool Note that the count cannot be guaranteed on any invoking subsequent OracleOCIConnectionCacheImpl method. |
oracle.jdbc.internal.OracleConnection |
getAliasedConnection(byte[] conId)
|
java.sql.Connection |
getConnection()
Attempt to establish a database connection. |
java.sql.Connection |
getConnection(java.lang.String us,
java.lang.String p)
Attempt to establish a database connection. |
int |
getConnectionIncrement()
Return the Increment for increasing the connections for the Cache. |
int |
getMaxLimit()
Return the Max limit on Connections. |
int |
getMinLimit()
Note: There are no individual setMin, setMax and setIncrement since that needs to be done in one call to setPoolConfig Return the minimum limit on the no of Connections. |
java.lang.String |
getNoWait()
Return the connection No-wait parameter This attribute determines if retrial for a connection has to be done when all connections in the pool are found to be busy and the number of connections already reached max. |
java.util.Properties |
getPoolConfig()
|
int |
getPoolSize()
Return the number of physical connections in the connection pool Note that the count cannot be guaranteed on any invoking subsequent OracleOCIConnectionCacheImpl method. |
oracle.jdbc.internal.OracleConnection |
getProxyConnection(java.lang.String proxytype,
java.util.Properties prop)
|
javax.naming.Reference |
getReference()
|
int |
getStmtCacheSize()
Return the size of Statement Cache. |
int |
getTimeout()
Return the timeout The connections idle for more than this time (seconds) are terminated periodically, to maintain optimum number of open connections.This attribute can be set dynamically. |
boolean |
isDistributedTransEnabled()
|
boolean |
isPoolCreated()
|
boolean |
isStmtCacheEnabled()
Check whether Statement Caching is enabled for this pool or Not. |
static void |
readPoolConfig(java.util.Properties info,
int[] p)
|
void |
setPoolConfig(java.util.Properties prop)
|
void |
setStmtCacheSize(int size)
Set the statement cache size. |
void |
setStmtCacheSize(int size,
boolean clearMetaData)
Set the statement cache size. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public oracle.jdbc.oci.OracleOCIConnection m_connection_pool
public static final java.lang.String IS_CONNECTION_POOLING
public static final java.lang.String CONNPOOL_OBJECT
public static final java.lang.String CONNPOOL_LOGON_MODE
public static final java.lang.String CONNECTION_POOL
public static final java.lang.String CONNPOOL_CONNECTION
public static final java.lang.String CONNPOOL_PROXY_CONNECTION
public static final java.lang.String CONNPOOL_ALIASED_CONNECTION
public static final java.lang.String PROXY_USER_NAME
public static final java.lang.String PROXY_DISTINGUISHED_NAME
public static final java.lang.String PROXY_CERTIFICATE
public static final java.lang.String PROXY_ROLES
public static final java.lang.String PROXY_NUM_ROLES
public static final java.lang.String PROXY_PASSWORD
public static final java.lang.String PROXYTYPE
public static final java.lang.String PROXYTYPE_USER_NAME
public static final java.lang.String PROXYTYPE_DISTINGUISHED_NAME
public static final java.lang.String PROXYTYPE_CERTIFICATE
public static final java.lang.String CONNECTION_ID
public static java.lang.String CONNPOOL_MIN_LIMIT
public static java.lang.String CONNPOOL_MAX_LIMIT
public static java.lang.String CONNPOOL_INCREMENT
public static java.lang.String CONNPOOL_ACTIVE_SIZE
public static java.lang.String CONNPOOL_POOL_SIZE
public static java.lang.String CONNPOOL_TIMEOUT
public static java.lang.String CONNPOOL_NOWAIT
public static java.lang.String CONNPOOL_IS_POOLCREATED
public static final java.lang.String TRANSACTIONS_DISTRIBUTED
public static final boolean TRACE
public static final boolean PRIVATE_TRACE
public static final java.lang.String BUILD_DATE
Constructor Detail |
public OracleOCIConnectionPool(java.lang.String us, java.lang.String p, java.lang.String url, java.util.Properties info) throws java.sql.SQLException
us
- ConnectionPool user-id.p
- ConnectionPool passwordurl
- This would be the full url including the database name.
The database name would be the logical name of the pool.info
- Set of properties (optional) for specifying the pool
configuration.public OracleOCIConnectionPool(java.lang.String us, java.lang.String p, java.lang.String url) throws java.sql.SQLException
public OracleOCIConnectionPool() throws java.sql.SQLException
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
OracleDataSource
Attempt to establish a database connection.
getConnection
in interface javax.sql.DataSource
getConnection
in class OracleDataSource
java.sql.SQLException
- if a database-access error occurs.public java.sql.Connection getConnection(java.lang.String us, java.lang.String p) throws java.sql.SQLException
OracleDataSource
Attempt to establish a database connection.
getConnection
in interface javax.sql.DataSource
getConnection
in class OracleDataSource
us
- the database user on whose behalf the Connection is
being made
java.sql.SQLException
- if a database-access error occurs.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class OracleDataSource
javax.naming.NamingException
public oracle.jdbc.internal.OracleConnection getProxyConnection(java.lang.String proxytype, java.util.Properties prop) throws java.sql.SQLException
java.sql.SQLException
public oracle.jdbc.internal.OracleConnection getAliasedConnection(byte[] conId) throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
OracleDataSource
Close DataSource API. This removes the associated Connection Cache and frees resources. This must be the last method to invoke, after the user is finished using a cache enabled DataSource.
close
in class OracleDataSource
java.sql.SQLException
public void setPoolConfig(java.util.Properties prop) throws java.sql.SQLException
java.sql.SQLException
public static void readPoolConfig(java.util.Properties info, int[] p)
public java.util.Properties getPoolConfig() throws java.sql.SQLException
java.sql.SQLException
public int getActiveSize() throws java.sql.SQLException
java.sql.SQLException
public int getPoolSize() throws java.sql.SQLException
java.sql.SQLException
public int getTimeout() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getNoWait() throws java.sql.SQLException
java.sql.SQLException
public int getMinLimit() throws java.sql.SQLException
java.sql.SQLException
public int getMaxLimit() throws java.sql.SQLException
java.sql.SQLException
public int getConnectionIncrement() throws java.sql.SQLException
java.sql.SQLException
public boolean isDistributedTransEnabled()
public boolean isPoolCreated()
public void connectionClosed(oracle.jdbc.oci.OracleOCIConnection conn) throws java.sql.SQLException
java.sql.SQLException
public void setStmtCacheSize(int size) throws java.sql.SQLException
size
- Size of the Cache
java.sql.SQLException
public void setStmtCacheSize(int size, boolean clearMetaData) throws java.sql.SQLException
size
- Size of the CacheclearMetaData
- Whether the state has to be cleared or not
java.sql.SQLException
public int getStmtCacheSize()
public boolean isStmtCacheEnabled()
|
Oracle10g JDBC | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |