Class SqlStatement.MyDelegatingInvocationHandler

  • All Implemented Interfaces:
    InvocationHandler
    Enclosing class:
    SqlStatement

    public static class SqlStatement.MyDelegatingInvocationHandler
    extends DelegatingInvocationHandler
    Reflectively implements the ResultSet interface by routing method calls to the result set inside a SqlStatement. When the result set is closed, so is the SqlStatement, and hence the JDBC connection and statement also.