?? oracle.jdbc.pool.oracleconnectioneventlistener.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Thu Dec 02 03:30:11 PST 1999 --><title> Class oracle.jdbc.pool.OracleConnectionEventListener</title></head><body><a name="_top_"></a><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="oracle.jdbc.pool.OracleConnectionCacheImpl.html#_top_">Previous</a> <a href="oracle.jdbc.pool.OracleConnectionPoolDataSource.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Class oracle.jdbc.pool.OracleConnectionEventListener</h1><pre>java.lang.Object | +----oracle.jdbc.pool.OracleConnectionEventListener</pre><hr><dl> <dt> public class <b>OracleConnectionEventListener</b> <dt> extends Object</dl><P>A ConnectionEventListener is an object that registers to receiveevents generated by a PooledConnection.<P>The ConnectionEventListener interface is implemented by aconnection pooling component. A connection pooling component willusually be provided by a JDBC driver vendor, or another system softwarevendor. A ConnectionEventListener is notified by a JDBC driver whenan application is finished using its Connection object. This event occursafter the application calls close on its representation of thePooledConnection. A ConnectionEventListener is also notified when aConnection error occurs due to the fact that the PooledConnection is unfitfor future use---the server has crashed, for example. The listener isnotified, by the JDBC driver, just before the driver throws anSQLException to the application using the PooledConnection.<P>OracleConnectionEventListener implements ConnectionEventListener<p><hr><a name="index"></a><h2> <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl> <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#OracleConnectionEventListener()"><b>OracleConnectionEventListener</b></a>() <dd> <P> Default constructor <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o "> <a href="#OracleConnectionEventListener(javax.sql.DataSource)"><b>OracleConnectionEventListener</b></a>(DataSource) <dd> <P> Construct an OracleConnectionEventListener withthe DataSource as it's argument.</dl><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#connectionClosed(oracle.jdbc.pool.ConnectionEvent)"><b>connectionClosed</b></a>(ConnectionEvent) <dd> <P>Invoked when the application calls close() on itsrepresentation of the connection. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#connectionErrorOccurred(oracle.jdbc.pool.ConnectionEvent)"><b>connectionErrorOccurred</b></a>(ConnectionEvent) <dd> <p>Invoked when a fatal connection error occurs, just beforean SQLException is thrown to the application. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#setDataSource(javax.sql.DataSource)"><b>setDataSource</b></a>(DataSource) <dd> Set the DataSource corresponding to this listener.</dl><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="OracleConnectionEventListener"></a><a name="OracleConnectionEventListener()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>OracleConnectionEventListener</b><pre> public OracleConnectionEventListener()</pre><dl> <dd> <P> Default constructor<p></dl><a name="OracleConnectionEventListener(javax.sql.DataSource)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>OracleConnectionEventListener</b><pre> public OracleConnectionEventListener(DataSource ds)</pre><dl> <dd> <P> Construct an OracleConnectionEventListener withthe DataSource as it's argument.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> DataSource - corresponding to this listener </dl></dd></dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="setDataSource(javax.sql.DataSource)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDataSource"><b>setDataSource</b></a><pre> public void setDataSource(DataSource ds)</pre><dl> <dd> Set the DataSource corresponding to this listener.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> DataSource - corresponding to this listener </dl></dd></dl><a name="connectionClosed(oracle.jdbc.pool.ConnectionEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="connectionClosed"><b>connectionClosed</b></a><pre> public void connectionClosed(ConnectionEvent ce)</pre><dl> <dd> <P>Invoked when the application calls close() on itsrepresentation of the connection.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> event - an event object describing the source ofthe event </dl></dd></dl><a name="connectionErrorOccurred(oracle.jdbc.pool.ConnectionEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="connectionErrorOccurred"><b>connectionErrorOccurred</b></a><pre> public void connectionErrorOccurred(ConnectionEvent ce)</pre><dl> <dd> <p>Invoked when a fatal connection error occurs, just beforean SQLException is thrown to the application.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> event - an event object describing the source ofthe event </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="oracle.jdbc.pool.OracleConnectionCacheImpl.html#_top_">Previous</a> <a href="oracle.jdbc.pool.OracleConnectionPoolDataSource.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -