Class JDBC41Connection

  • Direct Known Subclasses:
    DefaultConnection, MockConnection

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

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

    Author:
    Lukas Eder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort​(java.util.concurrent.Executor executor)  
      int getNetworkTimeout()  
      java.lang.String getSchema()  
      void setNetworkTimeout​(java.util.concurrent.Executor executor, int milliseconds)  
      void setSchema​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • JDBC41Connection

        public JDBC41Connection()
    • Method Detail

      • setSchema

        public void setSchema​(java.lang.String s)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSchema

        public java.lang.String getSchema()
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • abort

        public void abort​(java.util.concurrent.Executor executor)
                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setNetworkTimeout

        public void setNetworkTimeout​(java.util.concurrent.Executor executor,
                                      int milliseconds)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNetworkTimeout

        public int getNetworkTimeout()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException