Class JDBC41Statement

  • Direct Known Subclasses:
    DefaultStatement, MockStatement

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

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

    Author:
    Lukas Eder
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBC41Statement()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeOnCompletion()  
      <T> T getObject​(int parameterIndex, java.lang.Class<T> type)  
      <T> T getObject​(java.lang.String parameterName, java.lang.Class<T> type)  
      boolean isCloseOnCompletion()  
      • Methods inherited from class java.lang.Object

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

      • JDBC41Statement

        public JDBC41Statement()
    • Method Detail

      • closeOnCompletion

        public void closeOnCompletion()
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isCloseOnCompletion

        public boolean isCloseOnCompletion()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

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

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