Class Filter.PropertyRestriction
java.lang.Object
org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction
- Enclosing interface:
- Filter
A restriction for a property.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.jackrabbit.oak.api.PropertyValueThe first value to read, or null to read from the beginning.booleanWhether values that match the first should be returned.booleanWhether this is a like constraint.booleanWhether this is a not constraintorg.apache.jackrabbit.oak.api.PropertyValueThe last value to read, or null to read until the end.booleanWhether values that match the last should be returned.List<org.apache.jackrabbit.oak.api.PropertyValue>A list of possible values, for conditions of the type "x=1 or x=2 or x=3".org.apache.jackrabbit.oak.api.PropertyValueThe property value to NOT matchThe name of the property.intThe property type, if restricted. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
propertyName
The name of the property. -
first
public org.apache.jackrabbit.oak.api.PropertyValue firstThe first value to read, or null to read from the beginning. -
firstIncluding
public boolean firstIncludingWhether values that match the first should be returned. -
last
public org.apache.jackrabbit.oak.api.PropertyValue lastThe last value to read, or null to read until the end. -
lastIncluding
public boolean lastIncludingWhether values that match the last should be returned. -
isNot
public boolean isNotWhether this is a not constraint -
not
public org.apache.jackrabbit.oak.api.PropertyValue notThe property value to NOT match -
isLike
public boolean isLikeWhether this is a like constraint. in this case only the 'first' value should be taken into consideration -
list
A list of possible values, for conditions of the type "x=1 or x=2 or x=3". -
propertyType
public int propertyTypeThe property type, if restricted. If not restricted, this field is set to PropertyType.UNDEFINED.
-
-
Constructor Details
-
PropertyRestriction
public PropertyRestriction()
-
-
Method Details
-
isNullRestriction
public boolean isNullRestriction() -
isNotNullRestriction
public boolean isNotNullRestriction() -
toString
-
sortOrder
public int sortOrder()How restrictive a condition is.- Returns:
- 0 for "is not null", 10 for equality, and 5 for everything else
-
hashCode
public int hashCode() -
equals
-