public class ColumnMetaData extends Object
(Compare with ResultSetMetaData
.)
Modifier and Type | Class and Description |
---|---|
static class |
ColumnMetaData.ArrayType
Array type.
|
static class |
ColumnMetaData.AvaticaType
Base class for a column type.
|
static class |
ColumnMetaData.Rep
Description of the type used to internally represent a value.
|
static class |
ColumnMetaData.ScalarType
Scalar type.
|
static class |
ColumnMetaData.StructType
Record type.
|
Modifier and Type | Field and Description |
---|---|
boolean |
autoIncrement |
boolean |
caseSensitive |
String |
catalogName |
String |
columnClassName |
String |
columnName |
boolean |
currency |
boolean |
definitelyWritable |
int |
displaySize |
String |
label |
int |
nullable |
int |
ordinal |
int |
precision |
boolean |
readOnly |
int |
scale |
String |
schemaName |
boolean |
searchable |
boolean |
signed |
String |
tableName |
ColumnMetaData.AvaticaType |
type |
boolean |
writable |
Constructor and Description |
---|
ColumnMetaData(int ordinal,
boolean autoIncrement,
boolean caseSensitive,
boolean searchable,
boolean currency,
int nullable,
boolean signed,
int displaySize,
String label,
String columnName,
String schemaName,
int precision,
int scale,
String tableName,
String catalogName,
ColumnMetaData.AvaticaType type,
boolean readOnly,
boolean writable,
boolean definitelyWritable,
String columnClassName) |
Modifier and Type | Method and Description |
---|---|
static ColumnMetaData.ArrayType |
array(ColumnMetaData.AvaticaType componentType,
String typeName,
ColumnMetaData.Rep rep)
Creates an
ColumnMetaData.ArrayType . |
static ColumnMetaData |
dummy(ColumnMetaData.AvaticaType type,
boolean nullable)
Creates a ColumnMetaData for result sets that are not based on a struct
but need to have a single 'field' for purposes of
ResultSetMetaData . |
boolean |
equals(Object o) |
static ColumnMetaData |
fromProto(org.apache.calcite.avatica.proto.Common.ColumnMetaData proto) |
int |
hashCode() |
static ColumnMetaData.ScalarType |
scalar(int type,
String typeName,
ColumnMetaData.Rep rep)
Creates a
ColumnMetaData.ScalarType . |
ColumnMetaData |
setRep(ColumnMetaData.Rep rep) |
static ColumnMetaData.StructType |
struct(List<ColumnMetaData> columns)
Creates a
ColumnMetaData.StructType . |
org.apache.calcite.avatica.proto.Common.ColumnMetaData |
toProto() |
public final int ordinal
public final boolean autoIncrement
public final boolean caseSensitive
public final boolean searchable
public final boolean currency
public final int nullable
public final boolean signed
public final int displaySize
public final String label
public final String columnName
public final String schemaName
public final int precision
public final int scale
public final String tableName
public final String catalogName
public final boolean readOnly
public final boolean writable
public final boolean definitelyWritable
public final String columnClassName
public final ColumnMetaData.AvaticaType type
public ColumnMetaData(int ordinal, boolean autoIncrement, boolean caseSensitive, boolean searchable, boolean currency, int nullable, boolean signed, int displaySize, String label, String columnName, String schemaName, int precision, int scale, String tableName, String catalogName, ColumnMetaData.AvaticaType type, boolean readOnly, boolean writable, boolean definitelyWritable, String columnClassName)
public org.apache.calcite.avatica.proto.Common.ColumnMetaData toProto()
public static ColumnMetaData fromProto(org.apache.calcite.avatica.proto.Common.ColumnMetaData proto)
public static ColumnMetaData.ScalarType scalar(int type, String typeName, ColumnMetaData.Rep rep)
ColumnMetaData.ScalarType
.public static ColumnMetaData.StructType struct(List<ColumnMetaData> columns)
ColumnMetaData.StructType
.public static ColumnMetaData.ArrayType array(ColumnMetaData.AvaticaType componentType, String typeName, ColumnMetaData.Rep rep)
ColumnMetaData.ArrayType
.public static ColumnMetaData dummy(ColumnMetaData.AvaticaType type, boolean nullable)
ResultSetMetaData
.public ColumnMetaData setRep(ColumnMetaData.Rep rep)
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.