O'Reilly logo

Database Programming with JDBC & Java, Second Edition by George Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 specified SQLException.

Object Methods

getSQLException( );

public java.sql.SQLException getSQLException( );
Description

This method provides the SQLException associated with this event. This value can be null.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required