Interface XPathQueryBase
-
- All Known Subinterfaces:
XPathBasicQuery,XPathQuery,XPathSchemaQuery
public interface XPathQueryBaseProvides an interface to XPath queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<IMendixObject>execute(IContext context)Retrieves object list using the given context (synchronously).java.lang.DoubleexecuteAggregateDouble(IContext context)Retrieves double aggregate value based on the given query (root element of the query should be an aggregate function, e.g.java.lang.LongexecuteAggregateLong(IContext context)Retrieves long aggregate value based on the given query (root element of the query should be an aggregate function, e.g.IDataTableexecuteRaw(IContext context)Retrieves data table using the given context (synchronously).XPathQueryBasesetVariable(java.lang.String name, boolean value)Sets a variable with a value of typeBooleanXPathQueryBasesetVariable(java.lang.String name, double value)Sets a variable with a value of typeDoubleXPathQueryBasesetVariable(java.lang.String name, int value)Sets a variable with a value of typeIntegerXPathQueryBasesetVariable(java.lang.String name, long value)Sets a variable with a value of typeLongXPathQueryBasesetVariable(java.lang.String name, IMendixIdentifier identifier)Sets a variable with a value of typeIMendixIdentifierXPathQueryBasesetVariable(java.lang.String name, IMendixObject object)Sets a variable with a value of typeIMendixObjectXPathQueryBasesetVariable(java.lang.String name, java.lang.String value)Sets a variable with a value of typeStringXPathQueryBasesetVariable(java.lang.String name, java.math.BigDecimal value)Sets a variable with a value of typeBigDecimalXPathQueryBasesetVariable(java.lang.String name, java.util.Collection<?> values)Sets a variable with a value of typeCollection
-
-
-
Method Detail
-
execute
java.util.List<IMendixObject> execute(IContext context)
Retrieves object list using the given context (synchronously).- Parameters:
context- the context to be used to process this request- Returns:
- the list of retrieved objects
-
executeRaw
IDataTable executeRaw(IContext context)
Retrieves data table using the given context (synchronously).- Parameters:
context- the context to be used to process this request- Returns:
- the data table containing the raw data
-
executeAggregateLong
java.lang.Long executeAggregateLong(IContext context)
Retrieves long aggregate value based on the given query (root element of the query should be an aggregate function, e.g. "COUNT(//System.User)") (synchronously).- Parameters:
context- context to be used to process this request- Returns:
- the aggregate value
-
executeAggregateDouble
java.lang.Double executeAggregateDouble(IContext context)
Retrieves double aggregate value based on the given query (root element of the query should be an aggregate function, e.g. "COUNT(//System.User)") (synchronously).- Parameters:
context- context to be used to process this request- Returns:
- the aggregate value
-
setVariable
XPathQueryBase setVariable(java.lang.String name, java.math.BigDecimal value)
Sets a variable with a value of typeBigDecimalAdds a
BigDecimalvariable In XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalBigDecimalvalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, boolean value)
Sets a variable with a value of typeBooleanIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalBooleanvalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, double value)
Sets a variable with a value of typeDoubleIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalDoublevalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, int value)
Sets a variable with a value of typeIntegerIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalIntegervalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, long value)
Sets a variable with a value of typeLongIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalLongvalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, IMendixObject object)
Sets a variable with a value of typeIMendixObjectIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesobject- variable that represents aIMendixObjectvalue. Will be replaced by it's identifier in the query- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, IMendixIdentifier identifier)
Sets a variable with a value of typeIMendixIdentifierIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesidentifier- variable that represents an identifier of an object- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, java.lang.String value)
Sets a variable with a value of typeStringIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field >= $limit]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalue- variable that represents a literalStringvalue- Returns:
- the updated query instance
-
setVariable
XPathQueryBase setVariable(java.lang.String name, java.util.Collection<?> values)
Sets a variable with a value of typeCollectionIn XPath queries it is possible to add variables. A variable can be denoted with '$', e.g. a valid query syntax could be '//Entity.Ref[field = $values]'.
- Parameters:
name- name of variables referenced in the expression (without '$') and their valuesvalues- variable that represents a collection of values- Returns:
- the updated query instance
-
-