org.camunda.bpm.engine.impl
Class QueryEntityRelationCondition

java.lang.Object
  extended by org.camunda.bpm.engine.impl.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

Field Summary
protected  QueryProperty comparisonProperty
           
protected  QueryProperty property
           
protected  Object scalarValue
           
 
Constructor Summary
QueryEntityRelationCondition(QueryProperty queryProperty, Object scalarValue)
           
QueryEntityRelationCondition(QueryProperty queryProperty, QueryProperty comparisonProperty)
           
QueryEntityRelationCondition(QueryProperty queryProperty, QueryProperty comparisonProperty, Object scalarValue)
           
 
Method Summary
 QueryProperty getComparisonProperty()
           
 QueryProperty getProperty()
           
 Object getScalarValue()
           
 boolean isPropertyComparison()
          This assumes that scalarValue and comparisonProperty are mutually exclusive.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

property

protected QueryProperty property

comparisonProperty

protected QueryProperty comparisonProperty

scalarValue

protected Object scalarValue
Constructor Detail

QueryEntityRelationCondition

public QueryEntityRelationCondition(QueryProperty queryProperty,
                                    Object scalarValue)

QueryEntityRelationCondition

public QueryEntityRelationCondition(QueryProperty queryProperty,
                                    QueryProperty comparisonProperty)

QueryEntityRelationCondition

public QueryEntityRelationCondition(QueryProperty queryProperty,
                                    QueryProperty comparisonProperty,
                                    Object scalarValue)
Method Detail

getProperty

public QueryProperty getProperty()

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.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017 camunda services GmbH. All rights reserved.