java.lang.Object
org.mule.runtime.extension.api.dsql.DsqlQuery
Represents a parsed DSQL query.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Directionabstract Expressionabstract intgetLimit()abstract intabstract EntityTypegetType()abstract Stringtranslate(QueryTranslator queryTranslator)
-
Constructor Details
-
DsqlQuery
public DsqlQuery()
-
-
Method Details
-
getFields
- Returns:
- the selected fields from the queried entity.
-
getOrderByFields
- Returns:
- the fields used to sort the result set.
-
getDirection
- Returns:
- the sorting direction.
-
getFilterExpression
- Returns:
- an
Expressionto filter the queried result set.
-
getType
- Returns:
- the entity that is being queried.
-
getLimit
public abstract int getLimit()- Returns:
- the maximum number of item returned in the result set.
-
getOffset
public abstract int getOffset()- Returns:
- the number of items to skip from the beginning of the result set.
-
translate
- Parameters:
queryTranslator- aQueryTranslatorinstance used to translate from DSQL to another query language.- Returns:
- a
Stringthat represents a translated query using thequeryTranslator.
-