org.objectweb.medor.query.rdb.api
Interface RdbStringQueryLeaf

All Superinterfaces:
AnnotationsHolder, java.lang.Cloneable, QueryLeaf, QueryTree, RdbQueryLeaf, java.io.Serializable
All Known Implementing Classes:
BasicRdbStringQueryLeaf

public interface RdbStringQueryLeaf
extends RdbQueryLeaf

An RdbStringQueryLeaf is an RdbQueryLeaf built from a SQL request provided as a String. The Medor optimizer cannot "reason" with an RdbStringQueryLeaf, and namely cannot collapse several RdbStringQueryLeaves on the same datastore into one. Such an RdbStringQueryLeaf is thus a "black box". If RdbQueryLeaves should be collapsed into one for optimisation purposes, RdbExpQueryLeaves should be used instead.

Author:
Alexandre Lefebvre
See Also:
RdbQueryLeaf, RdbExpQueryLeaf

Method Summary
 RdbField addRdbField(java.lang.String fieldName, PType type, java.lang.String nameInQuery)
          Adds a Field to the RdbExpQueryLeaf
 
Methods inherited from interface org.objectweb.medor.query.rdb.api.RdbQueryLeaf
getSelectList, getSqlRequest, getSqlRequest, isSubquery, setIsSubquery
 
Methods inherited from interface org.objectweb.medor.query.api.QueryLeaf
getDataStore
 
Methods inherited from interface org.objectweb.medor.query.api.QueryTree
getDistinct, getName, getOrderBy, getTupleStructure, setDistinct, setOrderBy
 
Methods inherited from interface org.objectweb.medor.query.api.AnnotationsHolder
getAnnotations
 

Method Detail

addRdbField

public RdbField addRdbField(java.lang.String fieldName,
                            PType type,
                            java.lang.String nameInQuery)
Adds a Field to the RdbExpQueryLeaf

Parameters:
fieldName - is the name of the Field to be added.
type - is the PTyme of the Field to be added.
nameInQuery - is the name of the column in the associated QualifiedTable.
Returns:
the created RdbExpField.