Package | Description |
---|---|
org.apache.metamodel |
Root package for MetaModel
|
org.apache.metamodel.convert |
DataContext decorator for implicit conversion of value types after querying and before insertion.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryPostprocessDataContext.addConverter(Column column,
TypeConverter<?,?> converter)
Adds a
TypeConverter to this DataContext's query engine (Query Postprocessor) for read operations. |
Modifier and Type | Class and Description |
---|---|
class |
StringToBooleanConverter
A
TypeConverter that converts String values (on the physical layer)
to interpreted Booleans. |
class |
StringToDateConverter
A
TypeConverter that converts String values (on the physical layer)
to interpreted Date s. |
class |
StringToDoubleConverter
A
TypeConverter that converts String values (on the physical layer)
to interpreted Doubles. |
class |
StringToIntegerConverter
A
TypeConverter that converts String values (on the physical layer)
to interpreted Integers. |
Modifier and Type | Method and Description |
---|---|
static Map<Column,TypeConverter<?,?>> |
Converters.autoDetectConverters(DataContext dataContext,
List<Column> columns,
int sampleSize)
Auto-detects / guesses the type converters to be applied on set of
columns.
|
static Map<Column,TypeConverter<?,?>> |
Converters.autoDetectConverters(DataContext dataContext,
Table table,
int sampleSize)
Auto-detects / guesses the type converters to be applied on a table.
|
protected Map<Column,TypeConverter<?,?>> |
ConvertedDataSetInterceptor.getConverters(DataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
void |
HasReadTypeConverters.addConverter(Column column,
TypeConverter<?,?> converter) |
void |
ConvertedRowUpdationInterceptor.addConverter(Column column,
TypeConverter<?,?> converter) |
void |
ConvertedRowInsertionInterceptor.addConverter(Column column,
TypeConverter<?,?> converter) |
void |
ConvertedDataSetInterceptor.addConverter(Column column,
TypeConverter<?,?> converter) |
static DataContext |
Converters.addTypeConverter(DataContext dataContext,
Column column,
TypeConverter<?,?> converter)
Adds a type converter to a specific column in the
DataContext . |
static UpdateableDataContext |
Converters.addTypeConverter(UpdateableDataContext dataContext,
Column column,
TypeConverter<?,?> converter)
Adds a type converter to a specific column in the
DataContext . |
Modifier and Type | Method and Description |
---|---|
static DataContext |
Converters.addTypeConverters(DataContext dataContext,
Map<Column,TypeConverter<?,?>> converters)
Adds a collection of type converters to specific columns in the
DataContext |
static UpdateableDataContext |
Converters.addTypeConverters(UpdateableDataContext dataContext,
Map<Column,TypeConverter<?,?>> converters)
Adds a collection of type converters to specific columns in the
DataContext |
protected static <RB extends RowBuilder<?>> |
Converters.convertRow(RB rowBuilder,
Map<Column,TypeConverter<?,?>> converters)
Converts values in a
RowBuilder . |
Constructor and Description |
---|
ConvertedDataSetInterceptor(Map<Column,TypeConverter<?,?>> converters) |
ConvertedRowInsertionInterceptor(Map<Column,TypeConverter<?,?>> converters) |
ConvertedRowUpdationInterceptor(Map<Column,TypeConverter<?,?>> converters) |
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.