Package com.appiancorp.common.query
Class GenericQuery.GenericBuilder.LogicalOp
java.lang.Object
com.appiancorp.common.query.GenericQuery.GenericBuilder.LogicalOp
- Enclosing class:
- GenericQuery.GenericBuilder
This class is available as a preview of functionality that will be added to the supported public API in a future release. While it is in the preview phase, it is subject to change or removal without deprecation or notice. Although notice of change is not guaranteed, we will try to let developers know of major changes through announcements in release notes.
This class encapsulates the available logical operators which allows to build more complex filters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalExpression<Object>
Returns the conjunction of the given criteriastatic LogicalExpression<Object>
Returns the conjunction of an array of criteria.static LogicalExpression<Object>
Returns the conjunction of an array of criteria.static LogicalExpression<Object>
Returns the conjunction of a list of criteria.static LogicalExpression<Object>
Returns the negation of a criteria.static LogicalExpression<Object>
operation
(LogicalOperator operator, Criteria... conditions) Creates aGenericLogicalExpression
with the given parametersstatic LogicalExpression<Object>
operation
(LogicalOperator operator, List<? extends Criteria> conditions) Creates aGenericLogicalExpression
with the given parametersstatic LogicalExpression<Object>
Returns the disjunction of an array of criteria.static LogicalExpression<Object>
Returns the disjunction of a list of criteria.static LogicalExpression<Object>
Returns the disjunction of a list of criteria.static LogicalExpression<Object>
Returns the disjunction of a list of criteria.
-
Constructor Details
-
LogicalOp
public LogicalOp()
-
-
Method Details
-
operation
Creates aGenericLogicalExpression
with the given parameters- Parameters:
operator
- logical operation type represented byLogicalOperator
conditions
- array ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance
-
operation
public static LogicalExpression<Object> operation(LogicalOperator operator, List<? extends Criteria> conditions) Creates aGenericLogicalExpression
with the given parameters- Parameters:
operator
- logical operation type represented byLogicalOperator
conditions
- list of conditions to apply the given logical operation- Returns:
- a
LogicalExpression<Object>
instance
-
and
Returns the conjunction of the given criteria- Parameters:
c1
-Criteria
- Returns:
- a
LogicalExpression<Object>
instance representing the conjunction of the given criteria
-
and
Returns the conjunction of an array of criteria.- Parameters:
c1
-Criteria
c
- array ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the conjunction of the given criteria
-
and
Returns the conjunction of an array of criteria.- Parameters:
c
- array ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the conjunction of the given criteria
-
and
Returns the conjunction of a list of criteria.- Parameters:
c
- list ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the conjunction of the given criteria
-
or
Returns the disjunction of an array of criteria.- Parameters:
c1
-Criteria
- Returns:
- a
LogicalExpression<Object>
instance representing the disjunction of the given criteria
-
or
Returns the disjunction of a list of criteria.- Parameters:
c1
-Criteria
c
- list ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the disjunction of the given criteria
-
or
Returns the disjunction of a list of criteria.- Parameters:
c1
-Criteria
c
- list ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the disjunction of the given criteria
-
or
Returns the disjunction of a list of criteria.- Parameters:
c1
-Criteria
c
- list ofCriteria
- Returns:
- a
LogicalExpression<Object>
instance representing the disjunction of the given criteria
-
not
Returns the negation of a criteria.- Parameters:
c
-Criteria
- Returns:
- a
LogicalExpression<Object>
instance representing the negation of the given criteria
-