Package com.appiancorp.common.query
Class TypedValueFilter
- All Implemented Interfaces:
Criteria
,com.appiancorp.common.query.ReadOnlyFilter
,Serializable
Immutable bean representing a configured Filter
on a column.
An instance can only be obtain by using the helper classes at TypedValueQuery.TypedValueBuilder
- For value expressions use -
TypedValueQuery.TypedValueBuilder.FilterOpExpr
- For literal values use -
TypedValueQuery.TypedValueBuilder.FilterOpLiteral
- See Also:
-
Field Summary
Fields inherited from class com.appiancorp.common.query.Filter
LOCAL_PART, QNAME, TABLE_NAME, XML_ROOT_ELEMENT
-
Constructor Summary
ModifierConstructorDescriptionTypedValueFilter
(String field, FilterOperator operator, TypedValue value) Constructs a newTypedValueFilter
using the givenTypedValue
as a constraintprotected
TypedValueFilter
(String field, FilterOperator operator, String valueExpression) Constructs a newTypedValueFilter
using the given expression as a constraint. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
getValue()
Returns the value used as a constraint on the column or aliascom.appiancorp.core.expr.portable.PortableTypedValue
protected void
setValidated
(Boolean validated) protected void
setValue
(TypedValue value) Methods inherited from class com.appiancorp.common.query.Filter
containsFilters, equals, getField, getOperator, getValueExpression, hashCode, isPartOfCriteriaPredicate, selectField, toString
-
Constructor Details
-
TypedValueFilter
Constructs a newTypedValueFilter
using the givenTypedValue
as a constraint- Parameters:
field
- the field or alias nameoperator
- the filter type define byFilterOperator
value
-TypedValue
use to constraint the column or alias
-
TypedValueFilter
Constructs a newTypedValueFilter
using the given expression as a constraint. This expression is expected to evaluate to aTypedValue
.The constructor that takes
TypedValue value
is preferred over this constructor because evaluation of an expression to obtain the value is unnecessary except in cases of deferred evaluation, which are not applicable to cases of constructing a Filter for plug-ins.- Parameters:
field
- the field or alias nameoperator
- the filter type define byFilterOperator
valueExpression
-
-
-
Method Details
-
getValidated
- Returns:
- whether the filter has been validated within SAIL.
-
setValidated
-
getValue
Description copied from class:Filter
Returns the value used as a constraint on the column or alias- Specified by:
getValue
in classFilter<TypedValue>
- Returns:
- the value constraint
-
setValue
- Specified by:
setValue
in classFilter<TypedValue>
-
copy
-
getValueReadOnly
public com.appiancorp.core.expr.portable.PortableTypedValue getValueReadOnly()- Specified by:
getValueReadOnly
in interfacecom.appiancorp.common.query.ReadOnlyFilter
- Overrides:
getValueReadOnly
in classFilter<TypedValue>
-