| 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.create |
API for creating tables
|
| org.apache.metamodel.data |
API for data sets
|
| org.apache.metamodel.delete |
API for deleting rows
|
| org.apache.metamodel.drop |
API for dropping tables
|
| org.apache.metamodel.insert |
API for inserting rows
|
| org.apache.metamodel.intercept | |
| org.apache.metamodel.query |
API for querying
|
| org.apache.metamodel.query.builder |
API for query building
|
| org.apache.metamodel.schema |
API for schema structure
|
| org.apache.metamodel.schema.builder |
API for schema building.
|
| org.apache.metamodel.schema.naming | |
| org.apache.metamodel.update |
API for updating rows
|
| org.apache.metamodel.util |
Utilities and convenient classes
|
| Modifier and Type | Method and Description |
|---|---|
Table |
AbstractDataContext.getTableByQualifiedLabel(String tableName)
Finds a table in the DataContext based on a fully qualified table label.
|
Table |
DataContext.getTableByQualifiedLabel(String tableName)
Finds a table in the DataContext based on a fully qualified table label.
|
static Table[] |
MetaModelHelper.getTables(Collection<Table> tableList,
Iterable<Column> columnList)
Creates an array of tables where all occurences of tables in the provided
list of tables and columns are included
|
static Table[] |
MetaModelHelper.getTables(Column[] columns) |
static Table[] |
MetaModelHelper.getTables(Iterable<Column> columns)
Converts a list of columns to a corresponding array of tables
|
| Modifier and Type | Method and Description |
|---|---|
protected Number |
QueryPostprocessDataContext.executeCountQuery(Table table,
List<FilterItem> whereItems,
boolean functionApproximationAllowed)
Executes a simple count query, if possible.
|
protected Row |
QueryPostprocessDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue)
Executes a query which obtains a row by primary key (as defined by
Column.isPrimaryKey()). |
static Column[] |
MetaModelHelper.getTableColumns(Table table,
Column[] columns)
Creates a subset array of columns, where only columns that are contained
within the specified table are included.
|
static Column[] |
MetaModelHelper.getTableColumns(Table table,
Iterable<Column> columns)
Creates a subset array of columns, where only columns that are contained
within the specified table are included.
|
protected boolean |
QueryPostprocessDataContext.isMainSchemaTable(Table table) |
protected abstract DataSet |
QueryPostprocessDataContext.materializeMainSchemaTable(Table table,
Column[] columns,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeMainSchemaTable(Table table,
Column[] columns,
int firstRow,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
int firstRow,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows)
Execute a simple one-table query against a table in the main schema of
the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeTable(Table table,
List<SelectItem> selectItems,
int firstRow,
int maxRows)
Deprecated.
|
protected DataSet |
QueryPostprocessDataContext.materializeTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows) |
RowUpdationBuilder |
AbstractUpdateCallback.update(Table table) |
| Modifier and Type | Method and Description |
|---|---|
static Table[] |
MetaModelHelper.getTables(Collection<Table> tableList,
Iterable<Column> columnList)
Creates an array of tables where all occurences of tables in the provided
list of tables and columns are included
|
| Constructor and Description |
|---|
DeleteAndInsertBuilder(AbstractUpdateCallback updateCallback,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
Table |
TableCreationBuilder.execute()
Commits the built table and requests that the table structure should be
written to the
DataContext. |
Table |
AbstractTableCreationBuilder.toTable() |
Table |
TableCreationBuilder.toTable()
Returns this builder instance as a table.
|
| Modifier and Type | Method and Description |
|---|---|
TableCreationBuilder |
AbstractTableCreationBuilder.like(Table table) |
TableCreationBuilder |
TableCreationBuilder.like(Table table)
Builds this table's columns based on another
Table which will be
used as a prototype. |
| Modifier and Type | Method and Description |
|---|---|
Table |
RowBuilder.getTable()
Gets the table that this row builder pertains to.
|
| Constructor and Description |
|---|
AbstractRowBuilder(Table table) |
| Modifier and Type | Method and Description |
|---|---|
Table |
RowDeletionBuilder.getTable()
Gets the table that this delete statement pertains to.
|
Table |
AbstractRowDeletionBuilder.getTable() |
| Modifier and Type | Method and Description |
|---|---|
RowDeletionBuilder |
RowDeletable.deleteFrom(Table table)
Initiates a row deletion builder.
|
| Constructor and Description |
|---|
AbstractRowDeletionBuilder(Table table) |
DeleteFrom(Table table) |
| Modifier and Type | Method and Description |
|---|---|
Table |
AbstractTableDropBuilder.getTable() |
Table |
TableDropBuilder.getTable()
Gets the table that this drop statement pertains to
|
| Modifier and Type | Method and Description |
|---|---|
TableDropBuilder |
TableDroppable.dropTable(Table table) |
| Constructor and Description |
|---|
AbstractTableDropBuilder(Table table) |
DropTable(Table table) |
| Modifier and Type | Method and Description |
|---|---|
Table |
AbstractRowInsertionBuilder.getTable() |
Table |
RowInsertionBuilder.getTable()
Gets the table that this insert pertains to.
|
Table |
InsertInto.getTable() |
| Modifier and Type | Method and Description |
|---|---|
RowInsertionBuilder |
RowInsertable.insertInto(Table table)
Initiates the building of a row insertion operation.
|
| Constructor and Description |
|---|
AbstractRowInsertionBuilder(U updateCallback,
Table table) |
InsertInto(Table table) |
| Modifier and Type | Method and Description |
|---|---|
Table |
InterceptableDataContext.getTableByQualifiedLabel(String tableName) |
| Modifier and Type | Method and Description |
|---|---|
Table |
FromItem.getTable() |
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.from(Table table) |
Query |
Query.from(Table table,
String alias) |
Query |
Query.from(Table leftTable,
Table rightTable,
JoinType joinType,
Column leftOnColumn,
Column rightOnColumn) |
String |
FromItem.getAlias(Table table)
Gets the alias of a table, if it is registered (and visible, ie.
|
String |
FromClause.getAlias(Table table)
Gets the alias of a table, if it is registered (and visible, ie.
|
| Constructor and Description |
|---|
FromItem(Table table)
Constructor for table FROM clauses
|
| Modifier and Type | Method and Description |
|---|---|
TableFromBuilder |
SatisfiedFromBuilder.and(Table table) |
TableFromBuilder |
InitFromBuilder.from(Table table) |
TableFromBuilder |
InitFromBuilderImpl.from(Table table) |
JoinFromBuilder |
TableFromBuilder.innerJoin(Table table) |
JoinFromBuilder |
TableFromBuilder.leftJoin(Table table) |
JoinFromBuilder |
TableFromBuilder.rightJoin(Table table) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTable
Abstract
Table implementation. |
class |
MutableTable
Represents the metadata about a table.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Table |
AbstractRelationship.checkSameTable(Column[] columns) |
Table |
Relationship.getForeignTable()
Gets the table of the foreign key column(s).
|
Table |
AbstractRelationship.getForeignTable() |
Table |
Relationship.getPrimaryTable()
Gets the table of the primary key column(s).
|
Table |
AbstractRelationship.getPrimaryTable() |
Table |
Column.getTable()
Gets the table for which this column belong
|
Table |
ImmutableColumn.getTable() |
Table |
MutableColumn.getTable() |
Table |
Schema.getTable(int index)
Gets a table by index.
|
Table |
AbstractSchema.getTable(int index) |
Table |
Schema.getTableByName(String tableName)
Convenience method for retrieving a table by it's name.
|
Table |
AbstractSchema.getTableByName(String tableName) |
Table[] |
Schema.getTables()
Gets all tables in this Schema.
|
Table[] |
CompositeSchema.getTables() |
Table[] |
ImmutableSchema.getTables() |
Table[] |
Schema.getTables(TableType type)
Gets all tables in this Schema of a particular type.
|
Table[] |
AbstractSchema.getTables(TableType type) |
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractTable.compareTo(Table that) |
Relationship[] |
Table.getRelationships(Table otherTable)
Gets relationships between this table and another table.
|
Relationship[] |
AbstractTable.getRelationships(Table otherTable) |
MutableSchema |
MutableSchema.removeTable(Table table) |
MutableColumn |
MutableColumn.setTable(Table table) |
| Constructor and Description |
|---|
ImmutableColumn(Column column,
Table table)
Constructs an
ImmutableColumn based on an existing column and a
table. |
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,
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) |
MutableColumn(String name,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
DocumentConverter |
SingleTableInferentialSchemaBuilder.getDocumentConverter(Table table) |
DocumentConverter |
SingleMapColumnSchemaBuilder.getDocumentConverter(Table table) |
DocumentConverter |
SimpleTableDefSchemaBuilder.getDocumentConverter(Table table) |
DocumentConverter |
MultiTableInferentialSchemaBuilder.getDocumentConverter(Table table) |
DocumentConverter |
SchemaBuilder.getDocumentConverter(Table table)
Gets a
DocumentConverter for a table in the produced schema |
| Modifier and Type | Method and Description |
|---|---|
Table |
ColumnNamingContext.getTable()
Gets the
Table that the column is to pertain to. |
Table |
ColumnNamingContextImpl.getTable() |
| Constructor and Description |
|---|
ColumnNamingContextImpl(Table table,
String intrinsicColumnName,
int columnIndex) |
| Modifier and Type | Method and Description |
|---|---|
Table |
RowUpdationBuilder.getTable()
Gets the table that this update pertains to.
|
Table |
Update.getTable() |
Table |
AbstractRowUpdationBuilder.getTable() |
| Modifier and Type | Method and Description |
|---|---|
RowUpdationBuilder |
RowUpdateable.update(Table table)
Initiates a row updation builder.
|
| Constructor and Description |
|---|
AbstractRowUpdationBuilder(Table table) |
Update(Table table) |
| Constructor and Description |
|---|
SimpleTableDef(Table table)
Constructs a
SimpleTableDef using a Table as a prototype. |
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.