An Event object that provides information about the
source of a connection-related event. ConnectionEvent
objects are generated when an application closes a pooled connection
and when an error occurs. The ConnectionEvent object
contains two kinds of information:
SQLException
about to be thrown to the application
| Modifier and Type | Field and Description |
|---|---|
| private SQLException | ex
The |
| pack-priv static final long | serialVersionUID
Private serial version unique ID to ensure serialization
compatibility.
|
| Access | Constructor and Description |
|---|---|
| public | ConnectionEvent(PooledConnection
the pooled connection that is the source of the event con)Constructs a |
| public | ConnectionEvent(PooledConnection
the pooled connection that is the source of the event con, SQLException the SQLException about to be thrown to the application ex)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public SQLException | Returns: the SQLException about to be thrown ornullRetrieves the |
| ex | back to summary |
|---|---|
| private SQLException ex The | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides java. Private serial version unique ID to ensure serialization compatibility. | |
| ConnectionEvent | back to summary |
|---|---|
| public ConnectionEvent(PooledConnection con) Constructs a
| |
| ConnectionEvent | back to summary |
|---|---|
| public ConnectionEvent(PooledConnection con, SQLException ex) Constructs a
| |
| getSQLException | back to summary |
|---|---|
| public SQLException getSQLException() Retrieves the
| |