Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

StatementEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ javax.sql.StatementEvent

Class Overview

A statement event that a PreparedStatement is closed

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
StatementEvent ( PooledConnection con, PreparedStatement statement, SQLException exception)
the constructor
StatementEvent ( PooledConnection con, PreparedStatement statement)
the constructor with null exception
Public Methods
SQLException getSQLException ()
Returns the exception to be thrown
PreparedStatement getStatement ()
Returns the statement of this event
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public StatementEvent ( PooledConnection con, PreparedStatement statement, SQLException exception)

Added in API level 9

the constructor

Parameters
con the statment related connection
statement the statement to be closed
exception the exception to throw

public StatementEvent ( PooledConnection con, PreparedStatement statement)

Added in API level 9

the constructor with null exception

Parameters
con the statment related connection
statement the statement to be closed

Public Methods

public SQLException getSQLException ()

Added in API level 9

Returns the exception to be thrown

Returns
  • the exception of this event

public PreparedStatement getStatement ()

Added in API level 9

Returns the statement of this event