Class WhereCriteria

  • All Implemented Interfaces:
    Criteria

    public class WhereCriteria
    extends AbstractCriteria
    Creates a Criteria for a $where clause.
    • Constructor Summary

      Constructors 
      Constructor Description
      WhereCriteria​(java.lang.String js)
      Creates a WhereCriteria with the given javascript
      WhereCriteria​(org.bson.types.CodeWScope js)
      Creates a WhereCriteria with the given javascript
    • Constructor Detail

      • WhereCriteria

        public WhereCriteria​(java.lang.String js)
        Creates a WhereCriteria with the given javascript
        Parameters:
        js - the javascript
      • WhereCriteria

        public WhereCriteria​(org.bson.types.CodeWScope js)
        Creates a WhereCriteria with the given javascript
        Parameters:
        js - the javascript
    • Method Detail

      • toDBObject

        public com.mongodb.DBObject toDBObject()
        Returns:
        the DBObject form of this type
      • getFieldName

        public java.lang.String getFieldName()
        Returns:
        the field name for the criteria