|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.search.Attribute<T>
T
- the parameterize type of this attributepublic class Attribute<T>
A search attribute. The main purpose of this class is to construct search Criteria
referencing this attribute
Constructor Summary | |
---|---|
Attribute(String attributeName)
Construct a new attribute instance. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attribute(String attributeName)
Cache
however
attributeName
- the name of search attributeMethod Detail |
---|
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 range
public 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 range
public Criteria in(Collection<? extends T> values)
Set
should perform better here to get constant time contains()
checks
values
-
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 syntax
regex
-
public Criteria notIlike(String regex)
ILike
for the expression syntax
regex
-
public Criteria isNull()
public Criteria notNull()
public Aggregator count()
public Aggregator max()
public Aggregator min()
public Aggregator sum()
public Aggregator average()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |