Constructor and Description |
---|
Attribute(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(Object obj) |
Criteria |
ge(T value)
Create a criteria where this attribute is greater than or equal to the given value
|
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(String regex)
Create a criteria where this attribute's toString() matches the given expression
See
ILike for the expression syntax |
Criteria |
in(Collection<? extends T> values)
Create a criteria where this attribute is 'in' (ie.
|
Criteria |
isNull()
Create a criteria that requires no value for this attribute
|
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
|
Criteria |
notIlike(String regex)
Create a criteria where this attribute's toString() does not match the given expression
See
ILike for the expression syntax |
Criteria |
notNull()
Create a criteria that accepts any non-null value for this attribute
|
Aggregator |
sum()
Request a sum aggregation of this attribute
|
String |
toString() |
public 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(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(String regex)
ILike
for the expression syntaxregex
- public Criteria notIlike(String regex)
ILike
for the expression syntaxregex
- public Criteria isNull()
public Criteria notNull()
public Aggregator count()
public Aggregator max()
public Aggregator min()
public Aggregator sum()
public Aggregator average()
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.