org.objectweb.medor.query.rdb.api

Interface RdbStringQueryLeaf

All Superinterfaces:
Cloneable, QueryLeaf, QueryTree, RdbQueryLeaf
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(String fieldName, PType type, String nameInQuery)
Adds a Field to the RdbExpQueryLeaf

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.rdb.api.RdbQueryLeaf

getSelectList, getSqlRequest, getSqlRequest, isSubquery, setIsSubquery

Method Details

addRdbField

public RdbField addRdbField(String fieldName,
                            PType type,
                            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.