August 2000
Intermediate to advanced
348 pages
8h 51m
English
ConnectionEvent
Class Name:
javax.sql.ConnectionEvent
Superclass: java.util.EventObject
Immediate Subclasses: None
Interfaces Implemented: None
Availability: New as of JDK 1.2
This class is used by the connection pooling subsystem to provide
information about connection events, including
SQLException being thrown.
public class ConnectionEvent extends java.util.EventObject {
public ConnectionEvent(PooledConnection conn);
public ConnectionEvent(PooledConnection conn,
java.sql.SQLException ex);
public java.sql.SQLException getSQLException( );
}public ConnectionEvent(PooledConnection conn);
public ConnectionEvent(PooledConnection conn,
java.sql.SQLException ex);This constructor creates a ConnectionEvent
instance tied to the specified pooled connection having the specified
SQLException.
public java.sql.SQLException getSQLException( );
This method provides the SQLException associated
with this event. This value can be
null.
Read now
Unlock full access