Class QueryEntityRelationCondition


  • public class QueryEntityRelationCondition
    extends Object
    Specifies a condition by which two entity types can be related. comparisonProperty and scalarValue are exclusive, i.e. one of the should be null.
    Author:
    Thorben Lindhauer
    • Constructor Detail

      • QueryEntityRelationCondition

        public QueryEntityRelationCondition​(QueryProperty queryProperty,
                                            Object scalarValue)
      • QueryEntityRelationCondition

        public QueryEntityRelationCondition​(QueryProperty queryProperty,
                                            QueryProperty comparisonProperty)
    • Method Detail

      • getComparisonProperty

        public QueryProperty getComparisonProperty()
      • getScalarValue

        public Object getScalarValue()
      • isPropertyComparison

        public boolean isPropertyComparison()
        This assumes that scalarValue and comparisonProperty are mutually exclusive. Either a condition is expressed is by a scalar value, or with a property of another entity.