Android
javax.sql
public class

javax.sql.ConnectionEvent

java.lang.Object
java.util.EventObject Serializable
javax.sql.ConnectionEvent Serializable

An Event object which is sent when specific events happen on a PooledConnection object. The events involved are when the application closing the PooledConnection and when an error occurs in the PooledConnection.

Summary

Fields inherited from class java.util.EventObject

Public Constructors

            ConnectionEvent(PooledConnection theConnection)
Creates a connection event initialized with a supplied PooledConnection.
            ConnectionEvent(PooledConnection theConnection, SQLException theException)
Creates a ConnectionEvent initialized with a supplied PooledConnection and with a supplied SQLException indicating that an error has occurred within the PooledConnection.

Public Methods

          SQLException  getSQLException()
Gets the SQLException which holds information about the error which occurred in the PooledConnection.
Methods inherited from class java.util.EventObject
Methods inherited from class java.lang.Object

Details

Public Constructors

public ConnectionEvent(PooledConnection theConnection)

Creates a connection event initialized with a supplied PooledConnection.

Parameters

theConnection the PooledConnection

public ConnectionEvent(PooledConnection theConnection, SQLException theException)

Creates a ConnectionEvent initialized with a supplied PooledConnection and with a supplied SQLException indicating that an error has occurred within the PooledConnection.

Parameters

theConnection the PooledConnection
theException the SQLException holding information about the error that has occurred, which is about to be returned to the application.

Public Methods

public SQLException getSQLException()

Gets the SQLException which holds information about the error which occurred in the PooledConnection.

Returns

  • an SQLException containing information about the error. May be null if no error has occurred.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56