Package javax.sql
Class StatementEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.sql.StatementEvent
-
- All Implemented Interfaces:
Serializable
public class StatementEvent extends EventObject
A statement event that a PreparedStatement is closed- Since:
- 1.6
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description StatementEvent(PooledConnection con, PreparedStatement statement)the constructor with null exceptionStatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)the constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptiongetSQLException()Returns the exception to be thrownPreparedStatementgetStatement()Returns the statement of this event-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
the constructor- Parameters:
con- the statment related connectionstatement- the statement to be closedexception- the exception to throw
-
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement)
the constructor with null exception- Parameters:
con- the statment related connectionstatement- the statement to be closed
-
-
Method Detail
-
getStatement
public PreparedStatement getStatement()
Returns the statement of this event
-
getSQLException
public SQLException getSQLException()
Returns the exception to be thrown- Returns:
- the exception of this event
-
-