package org.mongodb.morphia.query;


import com.mongodb.DBObject;


Internal class for building up query documents.
/** * Internal class for building up query documents. */
public interface Criteria {
Adds this Criteria's information to the DBObject
Params:
  • obj – the DBObject to update
/** * Adds this Criteria's information to the DBObject * * @param obj the DBObject to update */
void addTo(DBObject obj);
Used to add this Criteria to a CriteriaContainer
Params:
  • container – the container to add to
/** * Used to add this Criteria to a CriteriaContainer * * @param container the container to add to */
void attach(CriteriaContainer container);
Returns:the field name for the criteria
/** * @return the field name for the criteria */
String getFieldName(); }