public static final class GenericQuery.GenericBuilder.LogicalOp
extends java.lang.Object
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 and Description |
---|
LogicalOp() |
Modifier and Type | Method and Description |
---|---|
static LogicalExpression<java.lang.Object> |
and(Criteria c1)
Returns the conjunction of the given criteria
|
static LogicalExpression<java.lang.Object> |
and(Criteria[] c)
Returns the conjunction of an array of criteria.
|
static LogicalExpression<java.lang.Object> |
and(Criteria c1,
Criteria... c)
Returns the conjunction of an array of criteria.
|
static LogicalExpression<java.lang.Object> |
and(java.util.List<? extends Criteria> c)
Returns the conjunction of a list of criteria.
|
static LogicalExpression<java.lang.Object> |
not(Criteria c)
Returns the negation of a criteria.
|
static LogicalExpression<java.lang.Object> |
operation(LogicalOperator operator,
Criteria... conditions)
Creates a
GenericLogicalExpression with the given parameters |
static LogicalExpression<java.lang.Object> |
operation(LogicalOperator operator,
java.util.List<? extends Criteria> conditions)
Creates a
GenericLogicalExpression with the given parameters |
static LogicalExpression<java.lang.Object> |
or(Criteria c1)
Returns the disjunction of an array of criteria.
|
static LogicalExpression<java.lang.Object> |
or(Criteria[] c)
Returns the disjunction of a list of criteria.
|
static LogicalExpression<java.lang.Object> |
or(Criteria c1,
Criteria... c)
Returns the disjunction of a list of criteria.
|
static LogicalExpression<java.lang.Object> |
or(java.util.List<? extends Criteria> c)
Returns the disjunction of a list of criteria.
|
public static LogicalExpression<java.lang.Object> operation(LogicalOperator operator, Criteria... conditions)
GenericLogicalExpression
with the given parametersoperator
- logical operation type represented by LogicalOperator
conditions
- array of Criteria
LogicalExpression
instancepublic static LogicalExpression<java.lang.Object> operation(LogicalOperator operator, java.util.List<? extends Criteria> conditions)
GenericLogicalExpression
with the given parametersoperator
- logical operation type represented by LogicalOperator
conditions
- list of conditions to apply the given logical operationLogicalExpression
instancepublic static LogicalExpression<java.lang.Object> and(Criteria c1)
c1
- Criteria
LogicalExpression
instance representing the conjunction of the given criteriapublic static LogicalExpression<java.lang.Object> and(Criteria c1, Criteria... c)
public static LogicalExpression<java.lang.Object> and(Criteria[] c)
c
- array of Criteria
LogicalExpression
instance representing the conjunction of the given criteriapublic static LogicalExpression<java.lang.Object> and(java.util.List<? extends Criteria> c)
c
- list of Criteria
LogicalExpression
instance representing the conjunction of the given criteriapublic static LogicalExpression<java.lang.Object> or(Criteria c1)
c1
- Criteria
LogicalExpression
instance representing the disjunction of the given criteriapublic static LogicalExpression<java.lang.Object> or(Criteria c1, Criteria... c)
public static LogicalExpression<java.lang.Object> or(Criteria[] c)
public static LogicalExpression<java.lang.Object> or(java.util.List<? extends Criteria> c)
public static LogicalExpression<java.lang.Object> not(Criteria c)
c
- Criteria
LogicalExpression
instance representing the negation of the given criteriaCopyright © 2003-2024 Appian Corporation. All Rights Reserved.