@StableMinor(version="12.4", sinceVersion="4.0") public class TableSourceFieldMapping extends Object
Constructor and Description |
---|
TableSourceFieldMapping() |
Modifier and Type | Method and Description |
---|---|
void |
addField(QueryField field)
Adds a field in this mapping.
|
QueryTable |
addTable(String newTableName,
String newTableColumn,
QueryTable joinTable,
String joinTableColumn)
Adds a table to this mapping, including a join filter with it.
|
protected void |
applyField(QuerySelect querySelect,
QueryField field)
Adds a field to be returned by the given query.
|
protected void |
applyFilter(QuerySelect querySelect,
IQueryFilter filter)
Applies a filter to the given query.
|
void |
applyMapping(QuerySelect querySelect) |
protected void |
applyTable(QuerySelect querySelect,
QueryTable table)
Includes a table in a query.
|
protected void |
applyTableJoins(QuerySelect querySelect,
QueryTable table)
Includes in a query the joins of a given table.
|
List<QueryField> |
getFieldsToSelect() |
IQueryFilter |
getFilter() |
List<QueryFilter> |
getJoins() |
List<QueryTable> |
getTables() |
void |
setFilter(IQueryFilter filter) |
public QueryTable addTable(String newTableName, String newTableColumn, QueryTable joinTable, String joinTableColumn)
newTableName
- the name of the table to be added.newTableColumn
- the column of the new table that will be used for the join filter.joinTable
- the table with whom the new table will be joined with.joinTableColumn
- the column of joinTable
that will be used for the join filter.public void addField(QueryField field)
field
- the field to add.public void applyMapping(QuerySelect querySelect)
protected void applyFilter(QuerySelect querySelect, IQueryFilter filter)
querySelect
- the select query.filter
- the filter to be applied.protected void applyField(QuerySelect querySelect, QueryField field)
querySelect
- the select query.field
- the field.protected void applyTable(QuerySelect querySelect, QueryTable table)
querySelect
- the select query.table
- the table.protected void applyTableJoins(QuerySelect querySelect, QueryTable table)
This method is called by applyTable(QuerySelect, QueryTable)
after the table is included in the query.
querySelect
- the select query.table
- the table whose joins are to be included.public List<QueryField> getFieldsToSelect()
public IQueryFilter getFilter()
public void setFilter(IQueryFilter filter)
public List<QueryFilter> getJoins()
public List<QueryTable> getTables()
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.