| Package | Description |
|---|---|
| org.apache.metamodel |
Root package for MetaModel
|
| org.apache.metamodel.create |
API for creating tables
|
| org.apache.metamodel.query |
API for querying
|
| org.apache.metamodel.schema |
API for schema structure
|
| org.apache.metamodel.schema.builder |
API for schema building.
|
| org.apache.metamodel.util |
Utilities and convenient classes
|
| Modifier and Type | Method and Description |
|---|---|
static Column[] |
MetaModelHelper.getColumnsByType(Column[] columns,
ColumnType columnType) |
| Modifier and Type | Method and Description |
|---|---|
T |
ColumnBuilder.ofType(ColumnType type)
Defines the
ColumnType of the created column. |
| Modifier and Type | Method and Description |
|---|---|
ColumnType |
SelectItem.getExpectedColumnType()
Tries to infer the
ColumnType of this SelectItem. |
ColumnType |
ToStringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToNumberFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToDateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToBooleanFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SumAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SubstringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
MapValueFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
FunctionType.getExpectedColumnType(ColumnType type) |
ColumnType |
DefaultAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
CountAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
AggregateFunction.getExpectedColumnType(ColumnType type)
Returns the function ColumnType.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnType |
ToStringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToNumberFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToDateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToBooleanFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SumAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SubstringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
MapValueFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
FunctionType.getExpectedColumnType(ColumnType type) |
ColumnType |
DefaultAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
CountAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
AggregateFunction.getExpectedColumnType(ColumnType type)
Returns the function ColumnType.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ColumnTypeImpl
Default implementation of ColumnType
|
| Modifier and Type | Field and Description |
|---|---|
static ColumnType |
ColumnType.ARRAY |
static ColumnType |
ColumnType.BIGINT |
static ColumnType |
ColumnType.BINARY |
static ColumnType |
ColumnType.BIT |
static ColumnType |
ColumnType.BLOB |
static ColumnType |
ColumnType.BOOLEAN |
static ColumnType |
ColumnType.CHAR |
static ColumnType |
ColumnType.CLOB |
static ColumnType |
ColumnType.DATALINK |
static ColumnType |
ColumnType.DATE |
static ColumnType |
ColumnType.DECIMAL |
static ColumnType |
ColumnType.DISTINCT |
static ColumnType |
ColumnType.DOUBLE |
static ColumnType |
ColumnType.FLOAT |
static ColumnType |
ColumnType.INET |
static ColumnType |
ColumnType.INTEGER |
static ColumnType |
ColumnType.JAVA_OBJECT |
static ColumnType |
ColumnType.LIST |
static ColumnType |
ColumnType.LONGNVARCHAR |
static ColumnType |
ColumnType.LONGVARBINARY |
static ColumnType |
ColumnType.LONGVARCHAR |
static ColumnType |
ColumnType.MAP |
static ColumnType |
ColumnType.NCHAR |
static ColumnType |
ColumnType.NCLOB |
static ColumnType |
ColumnType.NULL |
static ColumnType |
ColumnType.NUMBER |
static ColumnType |
ColumnType.NUMERIC |
static ColumnType |
ColumnType.NVARCHAR |
static ColumnType |
ColumnType.OTHER |
static ColumnType |
ColumnType.REAL |
static ColumnType |
ColumnType.REF |
static ColumnType |
ColumnType.ROWID |
static ColumnType |
ColumnType.SET |
static ColumnType |
ColumnType.SMALLINT |
static ColumnType |
ColumnType.SQLXML |
static ColumnType |
ColumnType.STRING |
static ColumnType |
ColumnType.STRUCT |
static ColumnType |
ColumnType.TIME |
static ColumnType |
ColumnType.TIMESTAMP |
static ColumnType |
ColumnType.TINYINT |
static ColumnType |
ColumnType.UUID |
static ColumnType |
ColumnType.VARBINARY |
static ColumnType |
ColumnType.VARCHAR |
| Modifier and Type | Method and Description |
|---|---|
static ColumnType |
ColumnTypeImpl.convertColumnType(Class<?> cls)
Finds the ColumnType enum corresponding to the incoming Java class.
|
static ColumnType |
ColumnTypeImpl.convertColumnType(int jdbcType)
Finds the ColumnType enum corresponding to the incoming JDBC
type-constant
|
ColumnType |
MutableColumn.getType() |
ColumnType |
ImmutableColumn.getType() |
ColumnType |
Column.getType()
Gets the type of the column
|
static ColumnType |
ColumnTypeImpl.valueOf(String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
Table.getColumnsOfType(ColumnType columnType)
Gets the columns of this table that conforms to a specified
ColumnType. |
List<Column> |
AbstractTable.getColumnsOfType(ColumnType columnType) |
MutableColumn |
MutableColumn.setType(ColumnType type) |
| Constructor and Description |
|---|
ImmutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote,
boolean primaryKey)
Constructs a new
ImmutableColumn. |
MutableColumn(String name,
ColumnType type) |
MutableColumn(String name,
ColumnType type,
Table table) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Boolean nullable) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote) |
| Modifier and Type | Method and Description |
|---|---|
void |
InferentialColumnBuilder.addObservation(ColumnType columnType) |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LegacyDeserializationObjectInputStream.LegacyColumnType
Implementation of the new
ColumnType interface which still
adheres to the constant/enum values of the old ColumnType definition. |
| Modifier and Type | Method and Description |
|---|---|
ColumnType[] |
SimpleTableDef.getColumnTypes()
Gets the types of the columns in the table
|
ColumnType |
LegacyDeserializationObjectInputStream.LegacyFunctionType.getExpectedColumnType(ColumnType type) |
| Modifier and Type | Method and Description |
|---|---|
static String |
FormatHelper.formatSqlBoolean(ColumnType columnType,
boolean b) |
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP)
|
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP).
|
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration,
String beforeDateLiteral,
String afterDateLiteral)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP)
|
static String |
FormatHelper.formatSqlValue(ColumnType columnType,
Object value) |
ColumnType |
LegacyDeserializationObjectInputStream.LegacyFunctionType.getExpectedColumnType(ColumnType type) |
static Date |
FormatHelper.parseSqlTime(ColumnType columnType,
String value)
Parses a SQL string representation of a time based value
|
| Constructor and Description |
|---|
SimpleTableDef(String name,
String[] columnNames,
ColumnType[] columnTypes)
Constructs a
SimpleTableDef. |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.