Package com.appiancorp.common.query
Class GenericLogicalExpression
java.lang.Object
com.appiancorp.common.query.LogicalExpression<Object>
com.appiancorp.common.query.GenericLogicalExpression
- All Implemented Interfaces:
Criteria
This class represents a logical expression combining multiple filters in a query.
An instance can only be obtained by using the helper class GenericQuery.GenericBuilder.LogicalOp
-
Field Summary
Fields inherited from class com.appiancorp.common.query.LogicalExpression
LOCAL_PART, QNAME, XML_ROOT_ELEMENT
-
Constructor Summary
ModifierConstructorDescriptionprotected
GenericLogicalExpression
(LogicalOperator operator, Criteria... conditions) Constructs a newGenericLogicalExpression
protected
GenericLogicalExpression
(LogicalOperator operator, List<? extends Criteria> conditions) Constructs a newGenericLogicalExpression
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns the list of conditionsprotected void
setConditions
(List<Criteria> conditions) Sets the list of conditionsMethods inherited from class com.appiancorp.common.query.LogicalExpression
equals, getOperator, hashCode, toString
-
Constructor Details
-
GenericLogicalExpression
Constructs a newGenericLogicalExpression
- Parameters:
operator
- a logical operation type define byLogicalOperator
enumconditions
- an array of conditions
-
GenericLogicalExpression
Constructs a newGenericLogicalExpression
- Parameters:
operator
- a logical operation type define byLogicalOperator
enumconditions
- a list of conditions
-
-
Method Details
-
getConditions
Description copied from class:LogicalExpression
Returns the list of conditions- Specified by:
getConditions
in classLogicalExpression<Object>
- Returns:
- the list of conditions
-
setConditions
Description copied from class:LogicalExpression
Sets the list of conditions- Specified by:
setConditions
in classLogicalExpression<Object>
- Parameters:
conditions
- a list of conditions
-
copy
-