Package org.apache.calcite.jdbc
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 ofAvaticaFactory
for Calcite and JDBC 4.1 (corresponds to JDK 1.7).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CalciteJdbc41Factory.CalciteJdbc41Connection
Implementation of connection for JDBC 4.1.private static class
CalciteJdbc41Factory.CalciteJdbc41DatabaseMetaData
Implementation of database metadata for JDBC 4.1.private static class
CalciteJdbc41Factory.CalciteJdbc41PreparedStatement
Implementation of prepared statement for JDBC 4.1.private static class
CalciteJdbc41Factory.CalciteJdbc41Statement
Implementation of statement for JDBC 4.1.
-
Field Summary
-
Fields inherited from class org.apache.calcite.jdbc.CalciteFactory
major, minor
-
-
Constructor Summary
Constructors Modifier Constructor Description CalciteJdbc41Factory()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalciteJdbc41Factory.CalciteJdbc41Connection
newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, java.lang.String url, java.util.Properties info, CalciteSchema rootSchema, JavaTypeFactory typeFactory)
Creates a connection with a root schema.CalciteJdbc41Factory.CalciteJdbc41DatabaseMetaData
newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
org.apache.calcite.avatica.AvaticaPreparedStatement
newPreparedStatement(org.apache.calcite.avatica.AvaticaConnection connection, org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
CalciteResultSet
newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, java.util.TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame)
java.sql.ResultSetMetaData
newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)
CalciteJdbc41Factory.CalciteJdbc41Statement
newStatement(org.apache.calcite.avatica.AvaticaConnection connection, 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
-
-
-
-
Method Detail
-
newConnection
public CalciteJdbc41Factory.CalciteJdbc41Connection newConnection(org.apache.calcite.avatica.UnregisteredDriver driver, org.apache.calcite.avatica.AvaticaFactory factory, java.lang.String url, java.util.Properties info, CalciteSchema rootSchema, JavaTypeFactory typeFactory)
Description copied from class:CalciteFactory
Creates a connection with a root schema.- Specified by:
newConnection
in classCalciteFactory
-
newDatabaseMetaData
public CalciteJdbc41Factory.CalciteJdbc41DatabaseMetaData newDatabaseMetaData(org.apache.calcite.avatica.AvaticaConnection connection)
-
newStatement
public CalciteJdbc41Factory.CalciteJdbc41Statement newStatement(org.apache.calcite.avatica.AvaticaConnection connection, 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, org.apache.calcite.avatica.Meta.StatementHandle h, org.apache.calcite.avatica.Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
newResultSet
public CalciteResultSet newResultSet(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.QueryState state, org.apache.calcite.avatica.Meta.Signature signature, java.util.TimeZone timeZone, org.apache.calcite.avatica.Meta.Frame firstFrame) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
newResultSetMetaData
public java.sql.ResultSetMetaData newResultSetMetaData(org.apache.calcite.avatica.AvaticaStatement statement, org.apache.calcite.avatica.Meta.Signature signature)
-
-