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 TypeMethodDescriptionChecks whether 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
Checks whether the argument contains all parameters specified in the condition.- Specified by:
actualize
in interfaceCondition
defaultSkipNullOrEmpty
- default value forSkippableCondition.skipNullOrEmpty
, should be obtained usingCoreProperties.isSkipNullOrEmptyConditionsByDefault()
- Returns:
- the condition if
SkippableCondition.skipNullOrEmpty
isfalse
or ifactualParameters
contains all parameters specified in the condition and these parameters are not null or empty. Otherwise returnsnull
.
-
copy
Description copied from interface:Condition
Returns a deep copy of this condition. -
getExcludedParameters
- Specified by:
getExcludedParameters
in interfaceCondition
-
toString
-