| |
|
| java.lang.Object java.util.EventObject javax.sql.ConnectionEvent
ConnectionEvent | public class ConnectionEvent extends EventObject implements Serializable(Code) | | An Event object which is sent when specific events happen on a
PooledConnection object. The events involved are when the application closing
the PooledConnection and when an error occurs in the PooledConnection.
|
Constructor Summary | |
public | ConnectionEvent(PooledConnection theConnection) Creates a connection event initialized with a supplied PooledConnection. | public | ConnectionEvent(PooledConnection theConnection, SQLException theException) Creates a ConnectionEvent initialized with a supplied PooledConnection
and with a supplied SQLException indicating that an error has occurred
within the PooledConnection. |
Method Summary | |
public SQLException | getSQLException() Gets the SQLException which holds information about the error which
occurred in the PooledConnection.
an SQLException containing information about the error. |
ConnectionEvent | public ConnectionEvent(PooledConnection theConnection)(Code) | | Creates a connection event initialized with a supplied PooledConnection.
Parameters: theConnection - the PooledConnection |
ConnectionEvent | public ConnectionEvent(PooledConnection theConnection, SQLException theException)(Code) | | Creates a ConnectionEvent initialized with a supplied PooledConnection
and with a supplied SQLException indicating that an error has occurred
within the PooledConnection.
Parameters: theConnection - the PooledConnection Parameters: theException - the SQLException holding information about the error that hasoccurred, which is about to be returned to the application. |
getSQLException | public SQLException getSQLException()(Code) | | Gets the SQLException which holds information about the error which
occurred in the PooledConnection.
an SQLException containing information about the error. May benull if no error has occurred. |
|
|
|