lumis.doui.table.field
Class TableSourceFieldMapping

Package class diagram package TableSourceFieldMapping
java.lang.Object
  extended by lumis.doui.table.field.TableSourceFieldMapping

@StableMinor(version="4.1",
             sinceVersion="4.0")
public class TableSourceFieldMapping
extends Object

Used to define the mapping between source fields and the database

Since:
4.0.4

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.
 void applyMapping(QuerySelect querySelect)
           
 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

TableSourceFieldMapping

public TableSourceFieldMapping()
Method Detail

addTable

public QueryTable addTable(String newTableName,
                           String newTableColumn,
                           QueryTable joinTable,
                           String joinTableColumn)
Adds a table to this mapping, including a join filter with it. The filter will set the joinTableColumn on the left and the newTableColumn on the right.

Parameters:
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.
Returns:
the new table instance, already added to this mapping.
Since:
4.0.4

addField

public void addField(QueryField field)
Adds a field in this mapping.

Parameters:
field - the field to add.
Since:
4.0.4

applyMapping

public void applyMapping(QuerySelect querySelect)

getFieldsToSelect

public List<QueryField> getFieldsToSelect()

getFilter

public IQueryFilter getFilter()

setFilter

public void setFilter(IQueryFilter filter)

getJoins

public List<QueryFilter> getJoins()

getTables

public List<QueryTable> getTables()


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.