Class MockDriver

  • All Implemented Interfaces:
    java.sql.Driver

    public class MockDriver
    extends java.lang.Object
    implements java.sql.Driver
    • Constructor Summary

      Constructors 
      Constructor Description
      MockDriver()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptsURL​(java.lang.String url)  
      java.sql.Connection connect​(java.lang.String url, java.util.Properties info)  
      int getMajorVersion()  
      int getMinorVersion()  
      java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url, java.util.Properties info)  
      boolean jdbcCompliant()  
      void setupConnect​(java.sql.Connection aConnection)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.sql.Driver

        getParentLogger
    • Constructor Detail

      • MockDriver

        public MockDriver()
    • Method Detail

      • setupConnect

        public void setupConnect​(java.sql.Connection aConnection)
      • acceptsURL

        public boolean acceptsURL​(java.lang.String url)
        Specified by:
        acceptsURL in interface java.sql.Driver
      • connect

        public java.sql.Connection connect​(java.lang.String url,
                                           java.util.Properties info)
        Specified by:
        connect in interface java.sql.Driver
      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface java.sql.Driver
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface java.sql.Driver
      • getPropertyInfo

        public java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url,
                                                             java.util.Properties info)
        Specified by:
        getPropertyInfo in interface java.sql.Driver
      • jdbcCompliant

        public boolean jdbcCompliant()
        Specified by:
        jdbcCompliant in interface java.sql.Driver