javax.sql.ConnectionEvent
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.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
ConnectionEvent(PooledConnection theConnection)
Creates a connection event initialized with a supplied PooledConnection.
Parameters
theConnection
| the PooledConnection
|
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 |
theException
| the SQLException holding information about the error that has
occurred, which is about to be returned to the application.
|
Public Methods
public
SQLException
getSQLException()
Gets the SQLException which holds information about the error which
occurred in the PooledConnection.
Returns
- an SQLException containing information about the error. May be
null if no error has occurred.