@Entity @GwtCompatible public final class TypedValueFilter extends Filter<TypedValue>
Immutable bean representing a configured Filter
on a column.
An instance can only be obtain by using the helper classes at TypedValueQuery.TypedValueBuilder
TypedValueBuilder.FilterOpExpr
TypedValueBuilder.FilterOpLiteral
LOCAL_PART, QNAME, TABLE_NAME, XML_ROOT_ELEMENT
Modifier | Constructor and Description |
---|---|
protected |
TypedValueFilter(java.lang.String field,
FilterOperator operator,
java.lang.String valueExpression)
Constructs a new
TypedValueFilter using the given expression as a constraint. |
protected |
TypedValueFilter(java.lang.String field,
FilterOperator operator,
TypedValue value)
Constructs a new
TypedValueFilter using the given TypedValue as a constraint |
Modifier and Type | Method and Description |
---|---|
Criteria |
copy() |
java.lang.Boolean |
getValidated() |
TypedValue |
getValue()
Returns the value used as a constraint on the column or alias
|
com.appiancorp.core.expr.portable.PortableTypedValue |
getValueReadOnly() |
protected void |
setValidated(java.lang.Boolean validated) |
protected void |
setValue(TypedValue value) |
containsFilters, equals, getField, getOperator, getValueExpression, hashCode, isPartOfCriteriaPredicate, selectField, toString
protected TypedValueFilter(java.lang.String field, FilterOperator operator, TypedValue value)
TypedValueFilter
using the given TypedValue
as a constraintfield
- the field or alias nameoperator
- the filter type define by FilterOperator
value
- TypedValue
use to constraint the column or aliasprotected TypedValueFilter(java.lang.String field, FilterOperator operator, java.lang.String valueExpression)
TypedValueFilter
using the given expression as a constraint.
This expression is expected to evaluate to a TypedValue
.
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.
field
- the field or alias nameoperator
- the filter type define by FilterOperator
valueExpression
- public java.lang.Boolean getValidated()
protected void setValidated(java.lang.Boolean validated)
public TypedValue getValue()
Filter
getValue
in class Filter<TypedValue>
protected void setValue(TypedValue value)
setValue
in class Filter<TypedValue>
public Criteria copy()
public com.appiancorp.core.expr.portable.PortableTypedValue getValueReadOnly()
getValueReadOnly
in interface com.appiancorp.common.query.ReadOnlyFilter
getValueReadOnly
in class Filter<TypedValue>
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.