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
Modifier and Type Method Description SQLExceptiongetSQLException()Returns the exception to be thrownPreparedStatementgetStatement()Returns the statement of this eventMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
StatementEvent
the constructor- Parameters:
con- the statment related connectionstatement- the statement to be closedexception- the exception to throw
-
StatementEvent
the constructor with null exception- Parameters:
con- the statment related connectionstatement- the statement to be closed
-
-
Method Details
-
getStatement
Returns the statement of this event -
getSQLException
Returns the exception to be thrown- Returns:
- the exception of this event
-