Class Filter.PropertyRestriction
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.query.Filter.PropertyRestriction
-
- Enclosing interface:
- Filter
public static class Filter.PropertyRestriction extends java.lang.ObjectA restriction for a property.
-
-
Field Summary
Fields Modifier and Type Field Description PropertyValuefirstThe first value to read, or null to read from the beginning.booleanfirstIncludingWhether values that match the first should be returned.booleanisLikeWhether this is a like constraint.PropertyValuelastThe last value to read, or null to read until the end.booleanlastIncludingWhether values that match the last should be returned.java.util.List<PropertyValue>listA list of possible values, for conditions of the type "x=1 or x=2 or x=3".java.lang.StringpropertyNameThe name of the property.intpropertyTypeThe property type, if restricted.
-
Constructor Summary
Constructors Constructor Description PropertyRestriction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanisNotNullRestriction()booleanisNullRestriction()intsortOrder()How restrictive a condition is.java.lang.StringtoString()
-
-
-
Field Detail
-
propertyName
public java.lang.String propertyName
The name of the property.
-
first
public PropertyValue first
The first value to read, or null to read from the beginning.
-
firstIncluding
public boolean firstIncluding
Whether values that match the first should be returned.
-
last
public PropertyValue last
The last value to read, or null to read until the end.
-
lastIncluding
public boolean lastIncluding
Whether values that match the last should be returned.
-
isLike
public boolean isLike
Whether this is a like constraint. in this case only the 'first' value should be taken into consideration
-
list
public java.util.List<PropertyValue> list
A list of possible values, for conditions of the type "x=1 or x=2 or x=3".
-
propertyType
public int propertyType
The property type, if restricted. If not restricted, this field is set to PropertyType.UNDEFINED.
-
-
Method Detail
-
isNullRestriction
public boolean isNullRestriction()
-
isNotNullRestriction
public boolean isNotNullRestriction()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-