Skip to content

Most visited

Recently visited

navigation
Added in API level 9

StatementEvent

public class StatementEvent
extends EventObject

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


A statement event that a PreparedStatement is closed

Summary

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

Inherited methods

From class java.util.EventObject
From class java.lang.Object

Public constructors

StatementEvent

Added in API level 9
StatementEvent (PooledConnection con, 
                PreparedStatement statement, 
                SQLException exception)

the constructor

Parameters
con PooledConnection: the statment related connection
statement PreparedStatement: the statement to be closed
exception SQLException: the exception to throw

StatementEvent

Added in API level 9
StatementEvent (PooledConnection con, 
                PreparedStatement statement)

the constructor with null exception

Parameters
con PooledConnection: the statment related connection
statement PreparedStatement: the statement to be closed

Public methods

getSQLException

Added in API level 9
SQLException getSQLException ()

Returns the exception to be thrown

Returns
SQLException the exception of this event

getStatement

Added in API level 9
PreparedStatement getStatement ()

Returns the statement of this event

Returns
PreparedStatement
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.