org.proteios.core.query
Interface QueryElement
- All Known Subinterfaces:
- Expression, Join, Order, Restriction, Select
- All Known Implementing Classes:
- AddExpression, AndRestriction, AnnotationBetweenRestriction, AnnotationInRestriction, AnnotationSimpleRestriction, AscOrder, BetweenRestriction, CountExpression, DescOrder, DivideExpression, EqRestriction, ExpressionSelect, FloatExpression, GteqRestriction, GtRestriction, HqlElementsExpression, HqlEntityExpression, HqlIndexExpression, HqlInnerJoin, HqlLeftJoin, HqlPropertyExpression, HqlRightJoin, InRestriction, IntegerExpression, LikeRestriction, LogExpression, LteqRestriction, LtRestriction, MaxExpression, MeanExpression, MinExpression, MultiplyExpression, NegateExpression, NeqRestriction, NotRestriction, OrRestriction, ParameterExpression, SelectedExpression, SqrtExpression, SubtractExpression, SumExpression
public interface QueryElement
A query element is used in various places in a Query to
build the structure of the query. A query element is by itself not useful,
only the subtypes of this interface are.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
toQl
String toQl(Query query,
DbControl dc)
throws BaseException
- Create a query language string of the query element. Use the
Query.getQueryType() method to find out which query language is wanted
in case the element requires different syntax for different languages.
- Parameters:
query - The query that is about to be executeddc - The DbControl object used to execute the query
- Throws:
UnsupportedOperationException - If the requested query language is
not supported by the query element
BaseException - If there is any other error