Package com.aquima.interactions.trace
Class PropertyFilter
java.lang.Object
com.aquima.interactions.trace.PropertyFilter
- All Implemented Interfaces:
IPropertyFilter
,Serializable
This class may be used to create a filter.
- Since:
- 9.2
- Author:
- A.Pragt
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertyFilter
(FilterOperator operator) PropertyFilter
(FilterOperator operator, boolean loweredIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(IValue value) This method adds an equals condition to the filter.void
addCondition
(IValue value, ConditionOperator operator) This method adds a condition to the filter.void
addCondition
(IValue value, ConditionOperator operator, boolean ignoreCase) This method adds a condition to the filter and specifies whether the condition is case-sensitivevoid
addCondition
(StringValue value, MatchMode matchMode, boolean negate) This is a convenience method that adds a LIKE condition.This method returns all the conditions of the filter.This method returns the operator of the filter.boolean
This method returns the operator of the filter.void
setOperator
(FilterOperator operator) This method sets the operator of the filter.
-
Field Details
-
OPERATOR_IS_MANDATORY
- See Also:
-
-
Constructor Details
-
PropertyFilter
public PropertyFilter() -
PropertyFilter
- Parameters:
operator
- The operator of the filter, may not be null
-
PropertyFilter
- Parameters:
operator
- The operator of the filter, may not be nullloweredIndex
- Boolean indicating if the property should behave with a lowered index, may not be null
-
-
Method Details
-
getOperator
This method returns the operator of the filter.- Returns:
- The operator of the filter.
-
setOperator
This method sets the operator of the filter.- Parameters:
operator
- The operator of the filter, may not be null.
-
hasLoweredIndex
public boolean hasLoweredIndex()This method returns the operator of the filter.- Returns:
- The operator of the filter.
-
getConditions
This method returns all the conditions of the filter.- Returns:
- The conditions of the filter.
-
addCondition
This method adds an equals condition to the filter.- Specified by:
addCondition
in interfaceIPropertyFilter
- Parameters:
value
- The value to be equal to, may be null.
-
addCondition
This method adds a condition to the filter.- Parameters:
value
- The value to compare, may be nulloperator
- The operator to use during comparison, may not be null
-
addCondition
This method adds a condition to the filter and specifies whether the condition is case-sensitive- Parameters:
value
- the value to compare, may be nulloperator
- the operator to use during comparison, may not be nullignoreCase
- whether the comparison should be case-insensitive
-
addCondition
Description copied from interface:IPropertyFilter
This is a convenience method that adds a LIKE condition.- Specified by:
addCondition
in interfaceIPropertyFilter
- Parameters:
value
- the string value to match againstmatchMode
- the match modenegate
- whether to negate the condition
-