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
- All Implemented Interfaces:
- Serializable
public class StatementEvent
extends EventObject
A StatementEvent
is sent to all StatementEventListener
s 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.
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PreparedStatement
is 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
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:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.