declare namespace javax {
namespace sql {
/**
* 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.
*
* @since 1.6
*/
// @ts-ignore
class StatementEvent extends java.util.EventObject {
/**
* Constructs a StatementEvent
with the specified PooledConnection
and
* PreparedStatement
. The SQLException
contained in the event defaults to
* null.
*
* @param con The PooledConnection
that the closed or invalid
* PreparedStatement
is associated with.
* @param statement The PreparedStatement
that is being closed or is invalid
*
* @throws IllegalArgumentException if con
is null.
* @since 1.6
*/
// @ts-ignore
constructor(con: javax.sql.PooledConnection, statement: java.sql.PreparedStatement)
/**
* Constructs a StatementEvent
with the specified PooledConnection
,
* PreparedStatement
and SQLException
*
* @param con The PooledConnection
that the closed or invalid PreparedStatement
* is associated with.
* @param statement The PreparedStatement
that is being closed or is invalid
* @param exception The SQLException
the driver is about to throw to
* the application
* @throws IllegalArgumentException if con
is null.
*
* @since 1.6
*/
// @ts-ignore
constructor(con: javax.sql.PooledConnection, statement: java.sql.PreparedStatement, exception: java.sql.SQLException)
/**
* Returns the PreparedStatement
that is being closed or is invalid
*
* @return The PreparedStatement
that is being closed or is invalid
*
* @since 1.6
*/
// @ts-ignore
public getStatement(): java.sql.PreparedStatement
/**
* Returns the SQLException
the driver is about to throw
*
* @return The SQLException
the driver is about to throw
*
* @since 1.6 */ // @ts-ignore public getSQLException(): java.sql.SQLException } } }