Class JDBC41ResultSet

  • Direct Known Subclasses:
    DefaultResultSet, MockResultSet

    public abstract class JDBC41ResultSet
    extends java.lang.Object
    Add JDBC 4.1 API compliance to a JDBC 4.0 ResultSet.

    Extend this type if you want to compile ResultSet implementations on both JDBC 4.0 (JDK 6) and 4.1 (JDK 7).

    Author:
    Lukas Eder
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBC41ResultSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getObject​(int columnIndex, java.lang.Class<T> type)  
      <T> T getObject​(java.lang.String columnLabel, java.lang.Class<T> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JDBC41ResultSet

        public JDBC41ResultSet()
    • Method Detail

      • getObject

        public <T> T getObject​(int columnIndex,
                               java.lang.Class<T> type)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

        public <T> T getObject​(java.lang.String columnLabel,
                               java.lang.Class<T> type)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException