Package io.jmix.core.querycondition
Class SkippableCondition<T extends SkippableCondition<T>>
java.lang.Object
io.jmix.core.querycondition.SkippableCondition<T>
- Type Parameters:
T
- class of inheritor.
- All Implemented Interfaces:
Condition
,Serializable
- Direct Known Subclasses:
JpqlCondition
,PropertyCondition
public abstract class SkippableCondition<T extends SkippableCondition<T>>
extends Object
implements Condition
Abstract superclass for conditions which have parameters and may be skipped in case of parameter is absent, null
or empty.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
Whether to skip this condition if one or more parameters are absent, null or empty -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyDefaultSkipNullOrEmpty
(boolean defaultSkipNullOrEmpty) boolean
void
setSkipNullOrEmpty
(boolean skipNullOrEmpty) Make this condition to be skipped if parameter is absent, null or empty.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.querycondition.Condition
actualize, copy, getExcludedParameters, getParameters
-
Field Details
-
skipNullOrEmpty
Whether to skip this condition if one or more parameters are absent, null or empty
-
-
Constructor Details
-
SkippableCondition
public SkippableCondition()
-
-
Method Details
-
setSkipNullOrEmpty
public void setSkipNullOrEmpty(boolean skipNullOrEmpty) - Parameters:
skipNullOrEmpty
- whether to skip this condition if parameter is absent, null or empty
-
isSkipNullOrEmpty
public boolean isSkipNullOrEmpty()- Returns:
- whether to skip this condition if parameter is absent, null or empty
-
skipNullOrEmpty
Make this condition to be skipped if parameter is absent, null or empty. Allows to skip filtering if no value specified in UI component. -
applyDefaultSkipNullOrEmpty
protected void applyDefaultSkipNullOrEmpty(boolean defaultSkipNullOrEmpty)
-