|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.search.expression.BaseCriteria
net.sf.ehcache.search.expression.ComparableValue
public abstract class ComparableValue
Abstract base class for criteria involving Comparable values
| Constructor Summary | |
|---|---|
ComparableValue(java.lang.String attributeName,
AttributeType type)
Constructor |
|
ComparableValue(java.lang.String attributeName,
java.lang.Object value)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
execute(Element e,
java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element |
protected abstract boolean |
executeComparable(java.lang.Comparable attributeValue)
Execute this criteria for the given Comparable attribute value |
protected abstract boolean |
executeComparableString(java.lang.Comparable attributeValue)
Execute this criteria for the given Comparable strin type attribute value |
java.lang.String |
getAttributeName()
Attribute name. |
AttributeType |
getType()
Attribute type. |
protected static int |
luceneStringCompare(java.lang.String s1,
java.lang.String s2)
Perform a Lucene compatible case insensitive string comparison. |
| Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria |
|---|
and, not, or |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComparableValue(java.lang.String attributeName,
java.lang.Object value)
attributeName - attribute namevalue - comparable value (used to infer type)
public ComparableValue(java.lang.String attributeName,
AttributeType type)
attributeName - attribute nametype - the expeceted type for values evaluated by this criteria| Method Detail |
|---|
public java.lang.String getAttributeName()
public AttributeType getType()
public boolean execute(Element e,
java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
e - cache elementattributeExtractors - map of attribute extractors to attribute value names
protected abstract boolean executeComparable(java.lang.Comparable attributeValue)
Comparable attribute value
attributeValue - Comparable attribute value
protected abstract boolean executeComparableString(java.lang.Comparable attributeValue)
Comparable strin type attribute value
attributeValue - Comparable attribute value
protected static int luceneStringCompare(java.lang.String s1,
java.lang.String s2)
s1 - first strings2 - second string
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||