Class QueryOrderingProperty

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class QueryOrderingProperty
    extends java.lang.Object

    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:

    A symbolic name that identifies a related entity. null if an ordering over a property of the entity to be selected is expressed.
    The property to be sorted on. An instance of QueryProperty.
    The ordering direction, refer to Direction
    A list of constraints that describe the nature of the relation to another entity (or in SQL terms, the joining conditions). Is null if relation is null. Contains instances of QueryEntityRelationCondition.

    Thorben Lindhauer
    See Also:
    Serialized Form
    • Constructor Detail

      • QueryOrderingProperty

        public QueryOrderingProperty()
      • QueryOrderingProperty

        public QueryOrderingProperty​(java.lang.String relation,
                                     QueryProperty queryProperty)
    • Method Detail

      • setQueryProperty

        public void setQueryProperty​(QueryProperty queryProperty)
      • setDirection

        public void setDirection​(Direction direction)
      • getDirection

        public Direction getDirection()
      • hasRelationConditions

        public boolean hasRelationConditions()
      • getRelation

        public java.lang.String getRelation()
      • setRelation

        public void setRelation​(java.lang.String relation)
      • isContainedProperty

        public boolean isContainedProperty()
        whether this ordering property is contained in the default fields of the base entity (e.g. task.NAME_ is a contained property; LOWER(task.NAME_) or variable.TEXT_ (given a task query) is not contained)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getRelationConditionsString

        public java.lang.String getRelationConditionsString()