public class QueryOrderingProperty extends Object implements Serializable
A QueryOrderingProperty specifies a condition by which the results of a query should be
sorted. It can either specify a sorting by a property of the entities to be selected or
a sorting by a property of a related entity. For example in a TaskQuery
,
the entity to be selected is Task
while a related entity could be a
VariableInstance
.
It is made up of the following:
null
if
an ordering over a property of the entity to be selected is expressed.QueryProperty
.Direction
null
if relation
is null
. Contains instances of QueryEntityRelationCondition
.Type | Property and Description |
---|---|
boolean |
isContained
Gets the value of the property containedProperty.
|
Modifier and Type | Field and Description |
---|---|
protected Direction |
direction |
protected QueryProperty |
queryProperty |
protected String |
relation |
static String |
RELATION_CASE_DEFINITION |
static String |
RELATION_DEPLOYMENT |
static String |
RELATION_PROCESS_DEFINITION |
static String |
RELATION_VARIABLE |
protected List<QueryEntityRelationCondition> |
relationConditions |
protected static long |
serialVersionUID |
Constructor and Description |
---|
QueryOrderingProperty() |
QueryOrderingProperty(QueryProperty queryProperty,
Direction direction) |
QueryOrderingProperty(String relation,
QueryProperty queryProperty) |
Modifier and Type | Method and Description |
---|---|
Direction |
getDirection() |
QueryProperty |
getQueryProperty() |
String |
getRelation() |
List<QueryEntityRelationCondition> |
getRelationConditions() |
String |
getRelationConditionsString() |
boolean |
hasRelationConditions() |
boolean |
isContainedProperty()
Gets the value of the property containedProperty.
|
void |
setDirection(Direction direction) |
void |
setQueryProperty(QueryProperty queryProperty) |
void |
setRelation(String relation) |
void |
setRelationConditions(List<QueryEntityRelationCondition> relationConditions) |
String |
toString() |
public boolean isContainedProperty
public static final String RELATION_VARIABLE
public static final String RELATION_PROCESS_DEFINITION
public static final String RELATION_CASE_DEFINITION
public static final String RELATION_DEPLOYMENT
protected static final long serialVersionUID
protected String relation
protected QueryProperty queryProperty
protected Direction direction
protected List<QueryEntityRelationCondition> relationConditions
public QueryOrderingProperty()
public QueryOrderingProperty(QueryProperty queryProperty, Direction direction)
public QueryOrderingProperty(String relation, QueryProperty queryProperty)
public QueryProperty getQueryProperty()
public void setQueryProperty(QueryProperty queryProperty)
public void setDirection(Direction direction)
public Direction getDirection()
public List<QueryEntityRelationCondition> getRelationConditions()
public void setRelationConditions(List<QueryEntityRelationCondition> relationConditions)
public boolean hasRelationConditions()
public String getRelation()
public void setRelation(String relation)
public boolean isContainedProperty()
public String getRelationConditionsString()
Copyright © 2020. All rights reserved.