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
ConstructorsModifierConstructorDescriptionprotectedGenericLogicalExpression(LogicalOperator operator, Criteria... conditions) Constructs a newGenericLogicalExpressionprotectedGenericLogicalExpression(LogicalOperator operator, List<? extends Criteria> conditions) Constructs a newGenericLogicalExpression -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns the list of conditionsprotected voidsetConditions(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 byLogicalOperatorenumconditions- an array of conditions
-
GenericLogicalExpression
Constructs a newGenericLogicalExpression- Parameters:
operator- a logical operation type define byLogicalOperatorenumconditions- a list of conditions
-
-
Method Details
-
getConditions
Description copied from class:LogicalExpressionReturns the list of conditions- Specified by:
getConditionsin classLogicalExpression<Object>- Returns:
- the list of conditions
-
setConditions
Description copied from class:LogicalExpressionSets the list of conditions- Specified by:
setConditionsin classLogicalExpression<Object>- Parameters:
conditions- a list of conditions
-
copy
-