to top
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