Package javax.sql

Class StatementEvent

    • Constructor Detail

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