📄 oracle.jdbc.pool.oracleconnectioncacheimpl.html
字号:
<p> <dd><dl> <dt> <b>Returns:</b> <dd> Connection A logical Connection Object. <dt> <b>Throws:</b> SQLException <dd> error creating Connection Object. <dt> <b>Overrides:</b> <dd> <a href="oracle.jdbc.pool.OracleDataSource.html#getConnection()">getConnection</a> in class <a href="oracle.jdbc.pool.OracleDataSource.html#_top_">OracleDataSource</a> </dl></dd></dl><a name="getConnection(java.lang.String, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getConnection"><b>getConnection</b></a><pre> public Connection getConnection(String user, String passwd) throws SQLException</pre><dl> <dd> Attempt to get a logical connection from the Cache. May returnnull depending upon the Schemes selected. User and passwordarguments should match the one given either directly orfrom ConnectionPoolDataSource.<p> <dd><dl> <dt> <b>Returns:</b> <dd> Connection A logical Connection Object. <dt> <b>Throws:</b> SQLException <dd> error creating Connection Object. <dt> <b>Overrides:</b> <dd> <a href="oracle.jdbc.pool.OracleDataSource.html#getConnection(java.lang.String, java.lang.String)">getConnection</a> in class <a href="oracle.jdbc.pool.OracleDataSource.html#_top_">OracleDataSource</a> </dl></dd></dl><a name="reusePooledConnection(javax.sql.PooledConnection)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="reusePooledConnection"><b>reusePooledConnection</b></a><pre> public void reusePooledConnection(PooledConnection pc) throws SQLException</pre><dl> <dd> <p> Invoked by the ConnectionEventListener instance when Logicalconnection handles are closed signaling that the PooledConnectioncan be recycled into the pool for further use.<p><p> <dd><dl> <dt> <b>Parameters:</b> <dd> pc - The pooled connection object that needs to be recylced. <dt> <b>Throws:</b> SQLException <dd> error in recycling the PooledConnection. </dl></dd></dl><a name="closePooledConnection(javax.sql.PooledConnection)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="closePooledConnection"><b>closePooledConnection</b></a><pre> public void closePooledConnection(PooledConnection pc) throws SQLException</pre><dl> <dd> <p> Invoked by the ConnectionEventListener when an error occurson a PooledConnection/LogicalConnection signaling that it is nolonger good to be used and can be closed.<p><p> <dd><dl> <dt> <b>Parameters:</b> <dd> pc - The pooled connection object that has to be closedbecause of an error. <dt> <b>Throws:</b> SQLException <dd> error in closing the PooledConnection </dl></dd></dl><a name="close()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="close"><b>close</b></a><pre> public void close() throws SQLException</pre><dl> <dd> <p> Invoked by the ConnectionEventListener when an error occurson a PooledConnection/LogicalConnection signaling that it is nolonger good to be used and can be closed.<p><p> <dd><dl> <dt> <b>Parameters:</b> <dd> PooledConnection - The pooled connection object that has tobe closed because of an error. <dt> <b>Throws:</b> SQLException <dd> error in closing the PooledConnection </dl></dd></dl><a name="setMinLimit(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setMinLimit"><b>setMinLimit</b></a><pre> public void setMinLimit(int l) throws SQLException</pre><dl> <dd> Set the minimum no of connections for the Cache.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> l - Minimum no. of Connections. </dl></dd></dl><a name="getMinLimit()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getMinLimit"><b>getMinLimit</b></a><pre> public int getMinLimit()</pre><dl> <dd> Return the minimum limit on the no of Connections.<p> <dd><dl> <dt> <b>Returns:</b> <dd> minimum limit on the no of Connections. </dl></dd></dl><a name="setMaxLimit(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setMaxLimit"><b>setMaxLimit</b></a><pre> public void setMaxLimit(int l) throws SQLException</pre><dl> <dd> Set the maximum no of connections for the Cache.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> l - maximum no. of Connections. </dl></dd></dl><a name="getMaxLimit()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getMaxLimit"><b>getMaxLimit</b></a><pre> public int getMaxLimit()</pre><dl> <dd> Return the Max limit on Connections. <p><p> <dd><dl> <dt> <b>Returns:</b> <dd> int Max no of Connections that can be opened. </dl></dd></dl><a name="getCacheScheme()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCacheScheme"><b>getCacheScheme</b></a><pre> public int getCacheScheme()</pre><dl> <dd> Return the Caching Scheme being used.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the caching scheme. </dl></dd></dl><a name="setCacheScheme(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setCacheScheme"><b>setCacheScheme</b></a><pre> public void setCacheScheme(int s) throws SQLException</pre><dl> <dd> Set the Scheme for this Cache. Possible values areOracleConnectionCacheImpl.DYNAMIC_SCHEMEOracleConnectionCacheImpl.FIXED_RETURN_NULL_SCHEME<p> <dd><dl> <dt> <b>Parameters:</b> <dd> int - Caching Scheme </dl></dd></dl><a name="getActiveSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getActiveSize"><b>getActiveSize</b></a><pre> public int getActiveSize()</pre><dl> <dd> Return the total no of connections that are being used.<p> <dd><dl> <dt> <b>Returns:</b> <dd> total no of active connections. </dl></dd></dl><a name="getCacheSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCacheSize"><b>getCacheSize</b></a><pre> public int getCacheSize()</pre><dl> <dd> Return the total no of connections in the Cache.<p> <dd><dl> <dt> <b>Returns:</b> <dd> total no of connections opened. </dl></dd></dl><a name="getReference()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getReference"><b>getReference</b></a><pre> public Reference getReference() throws NamingException</pre><dl> <dd><dl> <dt> <b>Overrides:</b> <dd> <a href="oracle.jdbc.pool.OracleDataSource.html#getReference()">getReference</a> in class <a href="oracle.jdbc.pool.OracleDataSource.html#_top_">OracleDataSource</a> </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.jdbc.pool.html">This Package</a> <a href="Package-oracle.jdbc.pool.html">Previous</a> <a href="oracle.jdbc.pool.OracleConnectionEventListener.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -