public static enum ColumnMetaData.Rep extends Enum<ColumnMetaData.Rep>
Date
might be represented as a PRIMITIVE_INT
if not nullable, or a JAVA_SQL_DATE
.Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
BYTE |
BYTE_STRING |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
JAVA_SQL_DATE |
JAVA_SQL_TIME |
JAVA_SQL_TIMESTAMP |
JAVA_UTIL_DATE |
LONG |
MULTISET |
NUMBER
Values are represented as some sub-class of
Number . |
OBJECT |
PRIMITIVE_BOOLEAN |
PRIMITIVE_BYTE |
PRIMITIVE_CHAR |
PRIMITIVE_DOUBLE |
PRIMITIVE_FLOAT |
PRIMITIVE_INT |
PRIMITIVE_LONG |
PRIMITIVE_SHORT |
SHORT |
STRING |
STRUCT |
Modifier and Type | Field and Description |
---|---|
Class |
clazz |
int |
typeId |
static Map<Class,ColumnMetaData.Rep> |
VALUE_MAP |
Modifier and Type | Method and Description |
---|---|
static ColumnMetaData.Rep |
fromProto(org.apache.calcite.avatica.proto.Common.Rep proto) |
Object |
jdbcGet(ResultSet resultSet,
int i)
Returns the value of a column of this type from a result set.
|
static 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 |
of(Type clazz) |
static ColumnMetaData.Rep |
serialRepOf(SqlType type)
Computes the given JDBC type into the
ColumnMetaData.Rep for the wire (serial) form of that type. |
org.apache.calcite.avatica.proto.Common.Rep |
toProto() |
static ColumnMetaData.Rep |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColumnMetaData.Rep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnMetaData.Rep PRIMITIVE_BOOLEAN
public static final ColumnMetaData.Rep PRIMITIVE_BYTE
public static final ColumnMetaData.Rep PRIMITIVE_CHAR
public static final ColumnMetaData.Rep PRIMITIVE_SHORT
public static final ColumnMetaData.Rep PRIMITIVE_INT
public static final ColumnMetaData.Rep PRIMITIVE_LONG
public static final ColumnMetaData.Rep PRIMITIVE_FLOAT
public static final ColumnMetaData.Rep PRIMITIVE_DOUBLE
public static final ColumnMetaData.Rep BOOLEAN
public static final ColumnMetaData.Rep BYTE
public static final ColumnMetaData.Rep CHARACTER
public static final ColumnMetaData.Rep SHORT
public static final ColumnMetaData.Rep INTEGER
public static final ColumnMetaData.Rep LONG
public static final ColumnMetaData.Rep FLOAT
public static final ColumnMetaData.Rep DOUBLE
public static final ColumnMetaData.Rep JAVA_SQL_TIME
public static final ColumnMetaData.Rep JAVA_SQL_TIMESTAMP
public static final ColumnMetaData.Rep JAVA_SQL_DATE
public static final ColumnMetaData.Rep JAVA_UTIL_DATE
public static final ColumnMetaData.Rep BYTE_STRING
public static final ColumnMetaData.Rep STRING
public static final ColumnMetaData.Rep NUMBER
Number
.
The JSON encoding does this.public static final ColumnMetaData.Rep ARRAY
public static final ColumnMetaData.Rep MULTISET
public static final ColumnMetaData.Rep STRUCT
public static final ColumnMetaData.Rep OBJECT
public final Class clazz
public final int typeId
public static final Map<Class,ColumnMetaData.Rep> VALUE_MAP
public static ColumnMetaData.Rep[] values()
for (ColumnMetaData.Rep c : ColumnMetaData.Rep.values()) System.out.println(c);
public static ColumnMetaData.Rep valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ColumnMetaData.Rep of(Type clazz)
public Object jdbcGet(ResultSet resultSet, int i) throws SQLException
SQLException
public org.apache.calcite.avatica.proto.Common.Rep toProto()
public static ColumnMetaData.Rep fromProto(org.apache.calcite.avatica.proto.Common.Rep proto)
public static ColumnMetaData.Rep nonPrimitiveRepOf(SqlType type)
ColumnMetaData.Rep
for the
equivalent Object type. If the provided type is not for a primitive, a ColumnMetaData.Rep
for the
provided Object is returned.type
- The type of a value (based on Types
).ColumnMetaData.Rep
for the given type
.public static ColumnMetaData.Rep serialRepOf(SqlType type)
ColumnMetaData.Rep
for the wire (serial) form of that type.type
- The type of a value (based on Types
).ColumnMetaData.Rep
for the serial form of the type
.Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.