java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | javax.sql.ConnectionEvent |
Sent when specific events happen on a PooledConnection
object. These
events are a facility to report when an application closes the pooled
connection or when an error occurs in the pooled connection.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a connection event initialized with the supplied
PooledConnection reporting that the application has closed the
connection. | |||||||||||
Creates a
ConnectionEvent initialized with the supplied PooledConnection and with the supplied SQLException indicating
that an error has occurred within the PooledConnection . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the
SQLException which holds information about the error
which occurred in the PooledConnection . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
|
Creates a connection event initialized with the supplied PooledConnection
reporting that the application has closed the
connection.
theConnection | the connection for which this event is created. |
---|
Creates a ConnectionEvent
initialized with the supplied PooledConnection
and with the supplied SQLException
indicating
that an error has occurred within the PooledConnection
.
theConnection | the connection for which this event is created. |
---|---|
theException | information about the state of error that has occurred on the application side. |
Gets the SQLException
which holds information about the error
which occurred in the PooledConnection
.
SQLException
containing information about the error.
May be null
if no error has occurred.