This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.sql
class StatementEvent

java.lang.Object extended by java.util.EventObject extended by javax.sql.StatementEvent
All Implemented Interfaces:
Serializable

public class StatementEvent
extends EventObject

A StatementEvent is sent to all StatementEventListeners which were registered with a PooledConnection. This occurs when the driver determines that a PreparedStatement that is associated with the PooledConnection has been closed or the driver determines is invalid.


Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary

          Constructs a StatementEvent with the specified PooledConnection and PreparedStatement.

          Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException
 
Method Summary
 SQLException

          Returns the SQLException the driver is about to throw
 PreparedStatement

          Returns the PreparedStatement that is being closed or is invalid
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementEvent

public StatementEvent(PooledConnection con,
                      PreparedStatement statement)
Constructs a StatementEvent with the specified PooledConnection and PreparedStatement. The SQLException contained in the event defaults to null.

Parameters:
con - The PooledConnection that the closed or invalid PreparedStatementis associated with.
statement - The PreparedStatement that is bieng closed or is invalid


StatementEvent

public StatementEvent(PooledConnection con,
                      PreparedStatement statement,
                      SQLException exception)
Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException

Parameters:
con - The PooledConnection that the closed or invalid PreparedStatement is associated with.
statement - The PreparedStatement that is being closed or is invalid
exception - The SQLException the driver is about to throw to the application
Method Detail

getSQLException

public SQLException getSQLException()
Returns the SQLException the driver is about to throw

Returns:
The SQLException the driver is about to throw


getStatement

public PreparedStatement getStatement()
Returns the PreparedStatement that is being closed or is invalid

Returns:
The PreparedStatement that is being closed or is invalid



This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.