public interface QueryElement
Query
to
build the structure of the query. A query element is by itself not useful,
only the subtypes of this interface are.Modifier and Type | Method and Description |
---|---|
Collection<? extends QueryElement> |
getChildren()
Get the children of this query element or null if it has no children.
|
String |
toQl(Query query,
DbControl dc)
Create a query language string of the query element.
|
String toQl(Query query, DbControl dc) throws BaseException
Query.getQueryType()
method to find out which query language is wanted
in case the element requires different syntax for different languages.query
- The query that is about to be executeddc
- The DbControl
object used to execute the queryUnsupportedOperationException
- If the requested query language is
not supported by the query elementBaseException
- If there is any other errorCollection<? extends QueryElement> getChildren()
AddExpression
has two children, the expression
beeing added.