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 SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 names of parameters that are not present in the givenactualParametersbut have null or empty value.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- 
andCreates empty AND condition. Useadd(Condition)method to add nested conditions.
- 
andCreates AND condition with the given nested conditions.
- 
orCreates empty OR condition. Useadd(Condition)method to add nested conditions.
- 
orCreates OR condition with the given nested conditions.
- 
getType
- 
setType
- 
getConditions
- 
setConditions
- 
add
- 
getParametersDescription copied from interface:ConditionReturns parameters specified in the condition.- Specified by:
- getParametersin interface- Condition
 
- 
actualizeDescription copied from interface:ConditionChecks whether the argument contains all parameters specified in the condition.- Specified by:
- actualizein interface- Condition
- defaultSkipNullOrEmpty- default value for- SkippableCondition.skipNullOrEmpty, should be obtained using- CoreProperties.isSkipNullOrEmptyConditionsByDefault()
- Returns:
- the condition if SkippableCondition.skipNullOrEmptyisfalseor ifactualParameterscontains all parameters specified in the condition and these parameters are not null or empty. Otherwise returnsnull.
 
- 
copyDescription copied from interface:ConditionReturns a deep copy of this condition.
- 
getExcludedParametersDescription copied from interface:ConditionReturns names of parameters that are not present in the givenactualParametersbut have null or empty value.For SkippableCondition, empty parameters are not included in the result ifSkippableCondition.skipNullOrEmpty()is false.- Specified by:
- getExcludedParametersin interface- Condition
 
- 
toString
 
-