org.neodatis.odb.core.query.criteria
Interface ICriterion

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IExpression, ISingleCriterion
All Known Implementing Classes:
AbstractCriterion, AbstractExpression, And, CollectionSizeCriterion, ComparisonCriterion, ComposedExpression, ContainsCriterion, EqualCriterion, IsNotNullCriterion, IsNullCriterion, LikeCriterion, Not, Or

public interface ICriterion
extends java.io.Serializable

Author:
olivier An interface for all criteria

Method Summary
 boolean canUseIndex()
           
 IOdbList<java.lang.String> getAllInvolvedFields()
          to be able to optimize query execution.
 IQuery getQuery()
          Gets thes whole query
 AttributeValuesMap getValues()
           
 boolean match(java.lang.Object object)
          To check if an object matches this criterion
 void ready()
          a method to explicitly indicate that the criteria is ready.
 void setQuery(IQuery query)
           
 

Method Detail

match

boolean match(java.lang.Object object)
To check if an object matches this criterion

Parameters:
object -
Returns:
true if object matches the criteria TODO create a math(AttributeValuesMap)

getAllInvolvedFields

IOdbList<java.lang.String> getAllInvolvedFields()
to be able to optimize query execution. Get only the field involved in the query instead of getting all the object

Returns:
All involved fields in criteria, List of String

getValues

AttributeValuesMap getValues()

getQuery

IQuery getQuery()
Gets thes whole query

Returns:
The owner query

setQuery

void setQuery(IQuery query)

canUseIndex

boolean canUseIndex()

ready

void ready()
a method to explicitly indicate that the criteria is ready.