Package io.jmix.core.querycondition
Interface Condition
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JpqlCondition,LogicalCondition,PropertyCondition,SkippableCondition
The tree of
Conditions represents an optional part of a query that is added if the corresponding parameters
are present.-
Method Summary
Modifier and TypeMethodDescriptionChecks whether the argument contains all parameters specified in the condition.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.
-
Method Details
-
getParameters
Collection<String> getParameters()Returns parameters specified in the condition. -
actualize
Checks whether the argument contains all parameters specified in the condition.- Parameters:
defaultSkipNullOrEmpty- 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
Condition copy()Returns a deep copy of this condition. -
getExcludedParameters
Returns 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.
-