Class CalciteJdbc41Factory

java.lang.Object
org.apache.calcite.jdbc.CalciteFactory
org.apache.calcite.jdbc.CalciteJdbc41Factory
All Implemented Interfaces:
org.apache.calcite.avatica.AvaticaFactory

public class CalciteJdbc41Factory extends CalciteFactory
Implementation of AvaticaFactory for Calcite and JDBC 4.1 (corresponds to JDK 1.7).
  • Field Summary

    Fields inherited from class org.apache.calcite.jdbc.CalciteFactory

    major, minor
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Creates a factory for JDBC version 4.1.
    protected
    CalciteJdbc41Factory(int major, int minor)
    Creates a JDBC factory with given major/minor version number.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41Connection
    newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, @Nullable CalciteSchema rootSchema, @Nullable JavaTypeFactory typeFactory)
    Creates a connection with a root schema.
    org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41DatabaseMetaData
    newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
     
    org.apache.calcite.avatica.AvaticaPreparedStatement
    newPreparedStatement(org.apache.calcite.avatica.AvaticaConnection connection, @Nullable org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
     
    newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame)
     
    newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)
     
    org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41Statement
    newStatement(org.apache.calcite.avatica.AvaticaConnection connection, @Nullable org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
     

    Methods inherited from class org.apache.calcite.jdbc.CalciteFactory

    getJdbcMajorVersion, getJdbcMinorVersion, newConnection

    Methods inherited from class java.lang.Object

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

    • CalciteJdbc41Factory

      public CalciteJdbc41Factory()
      Creates a factory for JDBC version 4.1.
    • CalciteJdbc41Factory

      protected CalciteJdbc41Factory(int major, int minor)
      Creates a JDBC factory with given major/minor version number.
  • Method Details

    • newConnection

      public org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41Connection newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, String url, Properties info, @Nullable CalciteSchema rootSchema, @Nullable JavaTypeFactory typeFactory)
      Description copied from class: CalciteFactory
      Creates a connection with a root schema.
      Specified by:
      newConnection in class CalciteFactory
    • newDatabaseMetaData

      public org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41DatabaseMetaData newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
    • newStatement

      public org.apache.calcite.jdbc.CalciteJdbc41Factory.CalciteJdbc41Statement newStatement(org.apache.calcite.avatica.AvaticaConnection connection, @Nullable org.apache.calcite.avatica.Meta.StatementHandle h, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    • newPreparedStatement

      public org.apache.calcite.avatica.AvaticaPreparedStatement newPreparedStatement(org.apache.calcite.avatica.AvaticaConnection connection, @Nullable org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
      Throws:
      SQLException
    • newResultSet

      public CalciteResultSet newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame) throws SQLException
      Throws:
      SQLException
    • newResultSetMetaData

      public ResultSetMetaData newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)