| Package | Description |
|---|---|
| org.apache.calcite.avatica |
Avatica JDBC framework.
|
| org.apache.calcite.avatica.remote |
JDBC driver that uses remote procedure calls.
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<Integer,SqlType> |
SqlType.BY_ID |
static Map<SqlType.Method,EnumSet<SqlType>> |
SqlType.GET_LIST |
static Map<Class,EnumSet<SqlType>> |
SqlType.SET_LIST |
| Modifier and Type | Method and Description |
|---|---|
static SqlType |
SqlType.valueOf(int type) |
static SqlType |
SqlType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlType[] |
SqlType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<Map.Entry<Class,SqlType>> |
SqlType.getSetConversions()
Returns the entries in JDBC table B-5.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SqlType.canGet(SqlType.Method method,
SqlType sqlType)
Returns whether
ResultSet.getInt(int) and similar methods
can convert a value to a particular SQL type. |
static boolean |
SqlType.canSet(Class aClass,
SqlType sqlType)
Returns whether
PreparedStatement.setObject(int, java.lang.Object, int) and
PreparedStatement.setNull(int, int) can assign a value of a particular class
to a column of a particular SQL type. |
static ColumnMetaData.Rep |
ColumnMetaData.Rep.nonPrimitiveRepOf(SqlType type)
Computes the given JDBC type for a primitive to the corresponding
ColumnMetaData.Rep for the
equivalent Object type. |
static ColumnMetaData.Rep |
ColumnMetaData.Rep.serialRepOf(SqlType type)
Computes the given JDBC type into the
ColumnMetaData.Rep for the wire (serial) form of that type. |
| Modifier and Type | Method and Description |
|---|---|
private static Object |
TypedValue.jdbcToSerial(ColumnMetaData.Rep rep,
Object value,
Calendar calendar,
SqlType componentType)
Converts a value from JDBC format to a type that can be serialized as
JSON.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.