Interface XPathSchemaQuery
- All Superinterfaces:
XPathQueryBase
-
Method Summary
Modifier and TypeMethodDescriptionsetDisableSecurity
(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 typeInteger
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
Adds a
BigDecimal
variable 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]'.- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalBigDecimal
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeBoolean
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalBoolean
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeDouble
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalDouble
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeInteger
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalInteger
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeLong
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalLong
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeIMendixObject
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesobject
- variable that represents aIMendixObject
value. Will be replaced by it's identifier in the query- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeIMendixIdentifier
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- 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
Sets a variable with a value of typeString
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]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- Parameters:
name
- name of variables referenced in the expression (without '$') and their valuesvalue
- variable that represents a literalString
value- Returns:
- the updated query instance
-
setVariable
Sets a variable with a value of typeCollection
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 = $values]'.
- Specified by:
setVariable
in interfaceXPathQueryBase
- 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
-