Name
ConnectionEvent
Synopsis
Class Name:
javax.sql.ConnectionEvent
Superclass: java.util.EventObject
Immediate Subclasses: None
Interfaces Implemented: None
Availability: New as of JDK 1.2
Description
This class is used by the connection pooling subsystem to provide
information about connection events, including
SQLException
being thrown.
Class Summary
public class ConnectionEvent extends java.util.EventObject { public ConnectionEvent(PooledConnection conn); public ConnectionEvent(PooledConnection conn, java.sql.SQLException ex); public java.sql.SQLException getSQLException( ); }
Object Constructors
ConnectionEvent( )
public ConnectionEvent(PooledConnection conn); public ConnectionEvent(PooledConnection conn, java.sql.SQLException ex);
- Description
This constructor creates a
ConnectionEvent
instance tied to the specified pooled connection having the specifiedSQLException
.
Object Methods
getSQLException( );
public java.sql.SQLException getSQLException( );
- Description
This method provides the
SQLException
associated with this event. This value can benull
.
Get Database Programming with JDBC & Java, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.