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
  • Constructor Details

    • StatementEvent

      public StatementEvent​(PooledConnection con, PreparedStatement statement, SQLException exception)
      the constructor
      Parameters:
      con - the statment related connection
      statement - the statement to be closed
      exception - the exception to throw
    • StatementEvent

      public StatementEvent​(PooledConnection con, PreparedStatement statement)
      the constructor with null exception
      Parameters:
      con - the statment related connection
      statement - the statement to be closed
  • Method Details

    • 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