|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.table.field.TableSourceFieldMapping
@StableMinor(version="6.2", sinceVersion="4.0") public class TableSourceFieldMapping
Used to define the mapping between source fields and the database
Constructor Summary | |
---|---|
TableSourceFieldMapping()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableSourceFieldMapping()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |