Package io.jmix.core.querycondition
Class LogicalCondition
java.lang.Object
io.jmix.core.querycondition.LogicalCondition
- All Implemented Interfaces:
Condition
,Serializable
Logical condition (AND, OR) which contains other conditions.
getParameters()
returns parameters of nested conditions.
Use and(Condition...)
and or(Condition...)
static methods to create logical conditions.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the condition if the argument contains all parameters specified in the condition.static LogicalCondition
and()
Creates empty AND condition.static LogicalCondition
Creates AND condition with the given nested conditions.copy()
Returns a deep copy of this condition.getExcludedParameters
(Set<String> actualParameters) Returns parameters specified in the condition.getType()
static LogicalCondition
or()
Creates empty OR condition.static LogicalCondition
Creates OR condition with the given nested conditions.void
setConditions
(List<Condition> conditions) void
setType
(LogicalCondition.Type type) toString()
-
Constructor Details
-
LogicalCondition
-
-
Method Details
-
and
Creates empty AND condition. Useadd(Condition)
method to add nested conditions. -
and
Creates AND condition with the given nested conditions. -
or
Creates empty OR condition. Useadd(Condition)
method to add nested conditions. -
or
Creates OR condition with the given nested conditions. -
getType
-
setType
-
getConditions
-
setConditions
-
add
-
getParameters
Description copied from interface:Condition
Returns parameters specified in the condition.- Specified by:
getParameters
in interfaceCondition
-
actualize
Description copied from interface:Condition
Returns the condition if the argument contains all parameters specified in the condition. -
copy
Description copied from interface:Condition
Returns a deep copy of this condition. -
getExcludedParameters
- Specified by:
getExcludedParameters
in interfaceCondition
-
toString
-