Class JdbcTest.MockDdlDriver

  • All Implemented Interfaces:
    java.sql.Driver
    Enclosing class:
    JdbcTest

    public static class JdbcTest.MockDdlDriver
    extends org.apache.calcite.jdbc.Driver
    Mock driver that can execute a trivial DDL statement.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.calcite.avatica.UnregisteredDriver

        org.apache.calcite.avatica.UnregisteredDriver.JdbcVersion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int counter  
      • Fields inherited from class org.apache.calcite.jdbc.Driver

        CONNECT_STRING_PREFIX
      • Fields inherited from class org.apache.calcite.avatica.UnregisteredDriver

        factory, handler
    • Constructor Summary

      Constructors 
      Constructor Description
      MockDdlDriver()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.calcite.linq4j.function.Function0<org.apache.calcite.jdbc.CalcitePrepare> createPrepareFactory()  
      • Methods inherited from class org.apache.calcite.jdbc.Driver

        createDriverVersion, createHandler, createMeta, getConnectionProperties, getConnectStringPrefix, getFactoryClassName
      • Methods inherited from class org.apache.calcite.avatica.UnregisteredDriver

        acceptsURL, connect, createFactory, getDriverVersion, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, instantiateFactory, jdbcCompliant, register
      • Methods inherited from class java.lang.Object

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

      • counter

        public int counter
    • Constructor Detail

      • MockDdlDriver

        public MockDdlDriver()
    • Method Detail

      • createPrepareFactory

        protected org.apache.calcite.linq4j.function.Function0<org.apache.calcite.jdbc.CalcitePrepare> createPrepareFactory()
        Overrides:
        createPrepareFactory in class org.apache.calcite.jdbc.Driver