Class ResultSetWrapper

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public final class ResultSetWrapper
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    This is a dynamic proxy in order to support both Java 5 and 6.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
      static java.sql.ResultSet newInstance​(java.sql.Connection con, java.sql.Statement stmt, java.sql.ResultSet rs)
      Creates a new ResultSet proxy which closes the given Connection and Statement if it is closed.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newInstance

        public static final java.sql.ResultSet newInstance​(java.sql.Connection con,
                                                           java.sql.Statement stmt,
                                                           java.sql.ResultSet rs)
        Creates a new ResultSet proxy which closes the given Connection and Statement if it is closed.
        Parameters:
        con - the associated Connection
        stmt - the associated Statement
        rs - the ResultSet which backs the proxy
        Returns:
        a ResultSet proxy
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method m,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable