| 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.
|
| org.apache.metamodel.factory | |
| org.apache.metamodel.intercept | |
| org.apache.metamodel.query |
API for querying
|
| org.apache.metamodel.query.builder |
API for query building
|
| org.apache.metamodel.query.parser |
| Modifier and Type | Interface and Description |
|---|---|
interface |
UpdateableDataContext
Represents a
DataContext that supports updating write-operations. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDataContext
Abstract implementation of the DataContext interface.
|
class |
CompositeDataContext
DataContext for composite datacontexts.
|
class |
QueryPostprocessDataContext
Abstract DataContext for data sources that do not support SQL queries natively.
|
class |
QueryPostprocessDelegate
A simple subclass of
QueryPostprocessDataContext which provides less
implementation fuzz when custom querying features (like composite
datacontexts or type conversion) is needed. |
| Modifier and Type | Method and Description |
|---|---|
DataContext |
UpdateCallback.getDataContext()
Gets the DataContext on which the update script is being executed.
|
DataContext |
AbstractUpdateCallback.getDataContext() |
DataContext |
DataContext.refreshSchemas()
Enforces a refresh of the schemas.
|
DataContext |
AbstractDataContext.refreshSchemas()
Enforces a refresh of the schemas.
|
| Modifier and Type | Method and Description |
|---|---|
static Row |
MetaModelHelper.executeSingleRowQuery(DataContext dataContext,
Query query)
Executes a single row query, like "SELECT COUNT(*), MAX(SOME_COLUMN) FROM MY_TABLE" or similar.
|
static Query |
MetaModelHelper.parseQuery(DataContext dc,
String queryString) |
| Constructor and Description |
|---|
AbstractUpdateCallback(DataContext dataContext) |
CompositeDataContext(DataContext... delegates) |
| Constructor and Description |
|---|
CompositeDataContext(Collection<DataContext> delegates) |
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
Converters.addTypeConverter(DataContext dataContext,
Column column,
TypeConverter<?,?> converter)
Adds a type converter to a specific column in the
DataContext. |
static DataContext |
Converters.addTypeConverters(DataContext dataContext,
Map<Column,TypeConverter<?,?>> converters)
Adds a collection of type converters to specific columns in the
DataContext |
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
Converters.addTypeConverter(DataContext dataContext,
Column column,
TypeConverter<?,?> converter)
Adds a type converter to a specific column in the
DataContext. |
static DataContext |
Converters.addTypeConverters(DataContext dataContext,
Map<Column,TypeConverter<?,?>> converters)
Adds a collection of type converters to specific columns in the
DataContext |
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.
|
| Modifier and Type | Method and Description |
|---|---|
DataContext |
DataContextFactory.create(DataContextProperties properties,
ResourceFactoryRegistry resourceFactoryRegistry) |
DataContext |
DataContextFactoryRegistryImpl.createDataContext(DataContextProperties properties) |
DataContext |
DataContextFactoryRegistry.createDataContext(DataContextProperties properties) |
| Modifier and Type | Class and Description |
|---|---|
class |
InterceptableDataContext |
| Modifier and Type | Method and Description |
|---|---|
DataContext |
InterceptableDataContext.getDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static InterceptableDataContext |
Interceptors.intercept(DataContext dc) |
| Constructor and Description |
|---|
InterceptableDataContext(DataContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
InvokableQuery |
Query.invokable(DataContext dataContext) |
| Constructor and Description |
|---|
InitFromBuilderImpl(DataContext dataContext) |
| Constructor and Description |
|---|
QueryParser(DataContext dataContext,
String queryString) |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.