T
- the parameterize type of this attributepublic class Attribute<T>
extends java.lang.Object
Criteria
referencing this attributeModifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName |
Constructor and Description |
---|
Attribute(java.lang.String attributeName)
Construct a new attribute instance.
|
Modifier and Type | Method and Description |
---|---|
Aggregator |
average()
Request an average value aggregation of this attribute
|
Criteria |
between(T min,
T max)
Create a range criteria between the given min/max (inclusive).
|
Criteria |
between(T min,
T max,
boolean minInclusive,
boolean maxInclusive)
Create a range criteria between the given min/max with specified inclusiveness
|
Aggregator |
count()
Request a count aggregation of this attribute
|
Criteria |
eq(T value)
Create a criteria where this attribute is equal to the given value
|
boolean |
equals(java.lang.Object obj) |
Criteria |
ge(T value)
Create a criteria where this attribute is greater than or equal to the given value
|
java.lang.String |
getAttributeName()
Get the attribute name
|
Criteria |
gt(T value)
Create a criteria where this attribute is greater than the given value
|
int |
hashCode() |
Criteria |
ilike(java.lang.String regex)
Create a criteria where this attribute's toString() matches the given expression
See
ILike for the expression syntax |
Criteria |
in(java.util.Collection<? extends T> values)
Create a criteria where this attribute is 'in' (ie.
|
Criteria |
le(T value)
Create a criteria where this attribute is less than or equal to the given value
|
Criteria |
lt(T value)
Create a criteria where this attribute is less than the given value
|
Aggregator |
max()
Request a maximum value aggregation of this attribute
|
Aggregator |
min()
Request a minimum value aggregation of this attribute
|
Criteria |
ne(T value)
Create a criteria where this attribute is not equal to the given value
|
Aggregator |
sum()
Request a sum aggregation of this attribute
|
java.lang.String |
toString() |
public Attribute(java.lang.String attributeName)
Cache
howeverattributeName
- the name of search attributepublic java.lang.String getAttributeName()
public Criteria between(T min, T max)
between(min, max, true, true)
min
- the minimum value in the rangemax
- the maximum value in the rangepublic Criteria between(T min, T max, boolean minInclusive, boolean maxInclusive)
min
- the minimum value in the rangemax
- the maximum value in the rangeminInclusive
- is the minimum inclusive in the rangemaxInclusive
- is the maximum inclusive in the rangepublic Criteria in(java.util.Collection<? extends T> values)
Set
should perform better here to get constant time contains()
checksvalues
- public Criteria ne(T value)
value
- public Criteria lt(T value)
value
- public Criteria le(T value)
value
- public Criteria gt(T value)
value
- public Criteria ge(T value)
value
- public Criteria eq(T value)
value
- public Criteria ilike(java.lang.String regex)
ILike
for the expression syntaxregex
- public Aggregator count()
public Aggregator max()
public Aggregator min()
public Aggregator sum()
public Aggregator average()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object