package org.mongodb.morphia.query;
import com.mongodb.DBObject;
/**
* Internal class for building up query documents.
*/
public interface Criteria {
/**
* 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
*
* @param container the container to add to
*/
void attach(CriteriaContainer container);
/**
* @return the field name for the criteria
*/
String getFieldName();
}