org.neodatis.odb.impl.core.query.criteria
Class LikeCriterion

java.lang.Object
  extended by org.neodatis.odb.core.query.criteria.AbstractCriterion
      extended by org.neodatis.odb.impl.core.query.criteria.LikeCriterion
All Implemented Interfaces:
java.io.Serializable, ICriterion

public class LikeCriterion
extends AbstractCriterion

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.neodatis.odb.core.query.criteria.AbstractCriterion
attributeName
 
Constructor Summary
LikeCriterion(java.lang.String attributeName, java.lang.String criterionValue, boolean isCaseSensiive)
           
 
Method Summary
 AttributeValuesMap getValues()
           
 boolean match(java.lang.Object valueToMatch)
          To check if an object matches this criterion
 void ready()
          a method to explicitly indicate that the criteria is ready.
 
Methods inherited from class org.neodatis.odb.core.query.criteria.AbstractCriterion
and, canUseIndex, getAllInvolvedFields, getAttributeName, getQuery, match, match, not, or, setAttributeName, setQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikeCriterion

public LikeCriterion(java.lang.String attributeName,
                     java.lang.String criterionValue,
                     boolean isCaseSensiive)
Method Detail

match

public boolean match(java.lang.Object valueToMatch)
Description copied from interface: ICriterion
To check if an object matches this criterion

Specified by:
match in interface ICriterion
Specified by:
match in class AbstractCriterion
Returns:
true if object matches the criteria TODO create a math(AttributeValuesMap)

getValues

public AttributeValuesMap getValues()

ready

public void ready()
Description copied from interface: ICriterion
a method to explicitly indicate that the criteria is ready.