public class PropertyFilter<S extends Storable> extends Filter<S>
Filter.NotJoined
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(Visitor<S,R,P> visitor,
P param)
Accept the given visitor subclass to traverse the filter tree.
|
void |
appendTo(java.lang.Appendable app,
FilterValues<S> values)
Appends the string value of this filter into the given Appendable.
|
<T extends Storable> |
asJoinedFromAny(ChainedProperty<T> joinProperty)
Allows join from any property type, including one-to-many joins.
|
PropertyFilter<S> |
bind()
Walks through each property filter, assigning a bind ID to it.
|
java.util.List<Filter<S>> |
conjunctiveNormalFormSplit()
Splits the filter from its conjunctive normal form.
|
java.lang.Object |
constant()
Returns the constant value of this PropertyFilter, which is valid only
if isConstant returns true.
|
PropertyFilter<S> |
constant(java.lang.Object value)
Returns another PropertyFilter instance which is bound to the given constant value.
|
java.util.List<Filter<S>> |
disjunctiveNormalFormSplit()
Splits the filter from its disjunctive normal form.
|
boolean |
equals(java.lang.Object obj) |
int |
getBindID()
Bind ID is used to distinguish this PropertyFilter instance from another
against the same property.
|
java.lang.Class<?> |
getBoxedType()
Returns the type of the ChainedProperty property, boxed into an object
if primitive.
|
ChainedProperty<S> |
getChainedProperty() |
RelOp |
getOperator() |
java.lang.Class<?> |
getType()
Returns the type of the ChainedProperty.
|
boolean |
isBound()
Returns true if all property filters are known to be properly
bound.
|
boolean |
isConstant()
Returns true if this PropertyFilter has a constant value.
|
PropertyFilter<S> |
not()
Returns the logical negation of this filter.
|
PropertyFilter<S> |
unbind()
Undoes the effect of a bind operation.
|
and, and, and, and, andExists, andNotExists, appendTo, asJoinedFrom, asJoinedFrom, conjunctiveNormalForm, disjunctiveNormalForm, filterFor, getClosedFilter, getOpenFilter, getStorableType, hashCode, initialFilterValues, isClosed, isOpen, notJoinedFrom, notJoinedFrom, or, or, or, or, orExists, orNotExists, reduce, toString
public PropertyFilter<S> not()
Filter
public java.util.List<Filter<S>> disjunctiveNormalFormSplit()
Filter
disjunctiveNormalFormSplit
in class Filter<S extends Storable>
public java.util.List<Filter<S>> conjunctiveNormalFormSplit()
Filter
conjunctiveNormalFormSplit
in class Filter<S extends Storable>
public <R,P> R accept(Visitor<S,R,P> visitor, P param)
Filter
public ChainedProperty<S> getChainedProperty()
public java.lang.Class<?> getType()
public java.lang.Class<?> getBoxedType()
public RelOp getOperator()
public int getBindID()
public PropertyFilter<S> bind()
Filter
public PropertyFilter<S> unbind()
Filter
public boolean isBound()
Filter
Filter.bind()
, Filter.initialFilterValues()
, Filter.disjunctiveNormalForm()
or Filter.conjunctiveNormalForm()
.public <T extends Storable> PropertyFilter<T> asJoinedFromAny(ChainedProperty<T> joinProperty)
Filter
asJoinedFromAny
in class Filter<S extends Storable>
public PropertyFilter<S> constant(java.lang.Object value)
java.lang.IllegalArgumentException
- if value is not compatible with property typepublic java.lang.Object constant()
public boolean isConstant()
public boolean equals(java.lang.Object obj)
public void appendTo(java.lang.Appendable app, FilterValues<S> values) throws java.io.IOException
Filter
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.