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

All Superinterfaces:
QueryLeaf, QueryTree
All Known Subinterfaces:
RdbExpQueryLeaf, RdbStringQueryLeaf
All Known Implementing Classes:
BasicRdbExpQueryLeaf, BasicRdbStringQueryLeaf

public interface RdbQueryLeaf
extends QueryLeaf

An RdbQueryLeaf represents a query leaf which encapsulates access to a relational database.

A SQL query is associated to an RdbQueryLeaf.

Author:
Sebastien Chassande-Barrioz
See Also:
RdbExpQueryLeaf, RdbStringQueryLeaf

Method Summary
 java.lang.String getSqlRequest(ParameterOperand[] pos)
          Returns the associated SQL query.
 
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
 

Method Detail

getSqlRequest

public java.lang.String getSqlRequest(ParameterOperand[] pos)
                               throws MedorException
Returns the associated SQL query. In the case of an RdbExpQueryLeaf, the query is computed.

Returns:
the SQL query associated to the RdbQueryLeaf, as a String.
Throws:
MedorException - in the case of RdbExpQueryLeaves if the SQL request cannot be computed from the associated Expression