Package com.appiancorp.common.query
Class LogicalExpression<T>
java.lang.Object
com.appiancorp.common.query.LogicalExpression<T>
- Type Parameters:
T
- Type of value
- All Implemented Interfaces:
Criteria
- Direct Known Subclasses:
GenericLogicalExpression
,TypedValueLogicalExpression
This class represents a logical expression combining multiple filters
in a query.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Initializes a newly createdLogicalExpression
protected
LogicalExpression
(LogicalOperator operator, Criteria... conditions) Constructs a newLogicalExpression
protected
LogicalExpression
(LogicalOperator operator, List<? extends Criteria> conditions) Constructs a newLogicalExpression
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the list of conditionsReturns the type of logical operation define by theLogicalOperator
enumint
hashCode()
protected abstract void
setConditions
(List<Criteria> conditions) Sets the list of conditionstoString()
-
Field Details
-
XML_ROOT_ELEMENT
- See Also:
-
LOCAL_PART
- See Also:
-
QNAME
-
-
Constructor Details
-
LogicalExpression
protected LogicalExpression()Initializes a newly createdLogicalExpression
-
LogicalExpression
Constructs a newLogicalExpression
- Parameters:
operator
- a logical operation type define byLogicalOperator
enumconditions
- an array of conditions
-
LogicalExpression
Constructs a newLogicalExpression
- Parameters:
operator
- a logical operation type define byLogicalOperator
enumconditions
- a list of conditions
-
-
Method Details
-
getOperator
Returns the type of logical operation define by theLogicalOperator
enum- Returns:
- the
LogicalOperator
-
getConditions
Returns the list of conditions- Returns:
- the list of conditions
-
setConditions
Sets the list of conditions- Parameters:
conditions
- a list of conditions
-
toString
-
hashCode
public int hashCode() -
equals
-