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
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionChecks whether the argument contains all parameters specified in the condition.static LogicalConditionand()Creates empty AND condition.static LogicalConditionCreates 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 LogicalConditionor()Creates empty OR condition.static LogicalConditionCreates OR condition with the given nested conditions.voidsetConditions(List<Condition> conditions) voidsetType(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:ConditionReturns parameters specified in the condition.- Specified by:
 getParametersin interfaceCondition
 - 
actualize
Description copied from interface:ConditionChecks whether the argument contains all parameters specified in the condition.- Specified by:
 actualizein interfaceConditiondefaultSkipNullOrEmpty- default value forSkippableCondition.skipNullOrEmpty, should be obtained usingCoreProperties.isSkipNullOrEmptyConditionsByDefault()- Returns:
 - the condition if 
SkippableCondition.skipNullOrEmptyisfalseor ifactualParameterscontains all parameters specified in the condition and these parameters are not null or empty. Otherwise returnsnull. 
 - 
copy
Description copied from interface:ConditionReturns a deep copy of this condition. - 
getExcludedParameters
- Specified by:
 getExcludedParametersin interfaceCondition
 - 
toString
 
 -