public interface XPathBasicQuery extends XPathQueryBase
Modifier and Type | Method and Description |
---|---|
XPathBasicQuery |
addSort(java.lang.String attribute,
boolean ascending)
Adds a sort direction.
|
XPathBasicQuery |
setAmount(int amount) |
XPathBasicQuery |
setDepth(int depth) |
XPathBasicQuery |
setOffset(int offset) |
XPathBasicQuery |
setVariable(java.lang.String name,
java.math.BigDecimal value)
Sets a variable with a value of type
BigDecimal
Adds a BigDecimal variable
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
boolean value)
Sets a variable with a value of type
Boolean
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
double value)
Sets a variable with a value of type
Double
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
IMendixIdentifier identifier)
Sets a variable with a value of type
IMendixIdentifier
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
IMendixObject object)
Sets a variable with a value of type
IMendixObject
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
int value)
Sets a variable with a value of type
Integer
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
long value)
Sets a variable with a value of type
Long
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
XPathBasicQuery |
setVariable(java.lang.String name,
java.lang.String value)
Sets a variable with a value of type
String
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. |
execute
XPathBasicQuery setAmount(int amount)
amount
- the maximum number of objects to retrieve.XPathBasicQuery
that can be use to construct a basic XPath queryXPathBasicQuery setOffset(int offset)
offset
- the index of the first object to retrieve.XPathBasicQuery
that can be use to construct a basic XPath queryXPathBasicQuery addSort(java.lang.String attribute, boolean ascending)
attribute
- the attribute on which should be sortedascending
- the direction of the sort. If this value is true it sorts from the
smallest value to the largest. If it is false it sorts from the largest
value to the smallest.XPathBasicQuery
that can be use to construct a basic XPath queryXPathBasicQuery setDepth(int depth)
depth
- this indicates the level until which each reference (IMendixIdentifier)
is also retrieved as an IMendixObject.XPathBasicQuery
that can be use to construct a basic XPath queryXPathBasicQuery setVariable(java.lang.String name, java.math.BigDecimal value)
XPathQueryBase
BigDecimal
Adds a BigDecimal
variable
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal BigDecimal
valueXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, boolean value)
XPathQueryBase
Boolean
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal Boolean
valueXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, double value)
XPathQueryBase
Double
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal Double
valueXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, int value)
XPathQueryBase
Integer
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal Integer
valueXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, long value)
XPathQueryBase
Long
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal Long
valueXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, IMendixObject object)
XPathQueryBase
IMendixObject
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.object
- variable that represents a IMendixObject
value. Will be replaced by it's
identifier in the queryXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, IMendixIdentifier identifier)
XPathQueryBase
IMendixIdentifier
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.identifier
- variable that represents an identifier of an objectXPathQuery
that can be use to construct an XPath queryXPathBasicQuery setVariable(java.lang.String name, java.lang.String value)
XPathQueryBase
String
In XPath queries it is possible to add variables Variable can be denoted with '$', e.g. a valid
query syntax could be '//Entity.Ref[field >= $limit]'.setVariable
in interface XPathQueryBase
name
- name of variables referenced in the expression (without '$') and their values.value
- variable that represents a literal String
valueXPathQuery
that can be use to construct an XPath query