Package com.mendix.datastorage
Interface XPathSchemaQuery
- All Superinterfaces:
XPathQueryBase
Provides an interface to XPath queries that use a retrieval schema.
A retrieval schema provides a way to set the offset, amount, depth and sorting through the IRetrievalSchema interface and is
an alternative to setting these parameters directly using XPathBasicQuery.
-
Method Summary
Modifier and TypeMethodDescriptionallowMathOperators(boolean allowMathOperators) Enable or disable mathematical operators in the XPath query.setDisableSecurity(boolean disable) Determines whether security should be applied for this retrieval.setRetrievalSchema(IRetrievalSchema schema) Adds a retrieval schema to this query.setShouldRetrieveCount(boolean shouldRetrieveCount) Determines whether the total number of objects corresponding to this schema should be included in the result.setVariable(String name, boolean value) Sets a variable with a value of typeboolean.setVariable(String name, double value) Sets a variable with a value of typedouble.setVariable(String name, int value) Sets a variable with a value of typeint.setVariable(String name, long value) Sets a variable with a value of typelong.setVariable(String name, IMendixIdentifier identifier) Sets a variable with a value of typeIMendixIdentifier.setVariable(String name, IMendixObject object) Sets a variable with a value of typeIMendixObject.setVariable(String name, String value) Sets a variable with a value of typeString.setVariable(String name, BigDecimal value) Sets a variable with a value of typeBigDecimal.setVariable(String name, Collection<?> values) Sets a variable with a value of typeCollection.Methods inherited from interface com.mendix.datastorage.XPathQueryBase
execute, executeAggregateDouble, executeAggregateLong, executeRaw
-
Method Details
-
setRetrievalSchema
Adds a retrieval schema to this query. The schema defines paging and sorting on the query.- Parameters:
schema- the schema to apply- Returns:
- the updated query instance
-
setDisableSecurity
Determines whether security should be applied for this retrieval.- Parameters:
disable- true to disable security checks, false to enable security checks- Returns:
- the updated query instance
-
setShouldRetrieveCount
Determines whether the total number of objects corresponding to this schema should be included in the result.- Parameters:
shouldRetrieveCount- true to include the number of corresponding objects, false otherwise- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeBigDecimal.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeboolean.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typedouble.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeint.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typelong.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeIMendixObject.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')object- aIMendixObjectvalue. Will be replaced by itsIMendixIdentifierin the query.- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeIMendixIdentifier.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')identifier- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeString.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')value- the value of the variable- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeCollection.- Specified by:
setVariablein interfaceXPathQueryBase- Parameters:
name- name of the variable referenced in the expression (without '$')values- the value of the variable as a collection- Returns:
- the updated query instance
-
allowMathOperators
Enable or disable mathematical operators in the XPath query. By default, mathematical operators are not allowed.- Specified by:
allowMathOperatorsin interfaceXPathQueryBase- Parameters:
allowMathOperators- sets whether mathematical operators should be allowed in the XPath query- Returns:
- the updated query instance
-