Class CriteriaContainerImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(Criteria... criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds Criteria to this container
      CriteriaContainer and​(Criteria... criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ands Criteria with this CriteriaContainer.
      FieldEnd<? extends CriteriaContainer> criteria​(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a criteria against a field
      List<Criteria> getChildren()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      String getFieldName()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      CriteriaJoin getJoinMethod()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      LegacyQuery<?> getQuery()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      CriteriaContainer or​(Criteria... criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ors Criteria with this CriteriaContainer.
      void remove​(Criteria criteria)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removes Criteria to this container
      void setQuery​(LegacyQuery<?> query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the Query for this CriteriaContainer
      org.bson.Document toDocument()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Detail

      • CriteriaContainerImpl

        protected CriteriaContainerImpl​(Datastore datastore,
                                        LegacyQuery<?> query,
                                        CriteriaJoin joinMethod)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getJoinMethod

        public CriteriaJoin getJoinMethod()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        the join method used
        See Also:
        CriteriaJoin
      • getChildren

        public List<Criteria> getChildren()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        the children of this container
      • add

        public void add​(Criteria... criteria)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CriteriaContainer
        Adds Criteria to this container
        Specified by:
        add in interface CriteriaContainer
        Parameters:
        criteria - the criteria to add
      • and

        public CriteriaContainer and​(Criteria... criteria)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CriteriaContainer
        Ands Criteria with this CriteriaContainer.
        Specified by:
        and in interface CriteriaContainer
        Parameters:
        criteria - the criteria
        Returns:
        the container
      • getFieldName

        public String getFieldName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getFieldName in interface Criteria
        Returns:
        the field name for the criteria
      • toDocument

        public org.bson.Document toDocument()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        toDocument in interface Criteria
        Returns:
        the Document form of this type
      • criteria

        public FieldEnd<? extends CriteriaContainer> criteria​(String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CriteriaContainer
        Creates a criteria against a field
        Specified by:
        criteria in interface CriteriaContainer
        Parameters:
        name - the field
        Returns:
        the FieldEnd to define the criteria to apply
      • getQuery

        public LegacyQuery<?> getQuery()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        the Query for this CriteriaContainer
      • setQuery

        public void setQuery​(LegacyQuery<?> query)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Sets the Query for this CriteriaContainer
        Parameters:
        query - the query
      • toString

        public String toString()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        toString in class Object
      • or

        public CriteriaContainer or​(Criteria... criteria)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CriteriaContainer
        Ors Criteria with this CriteriaContainer.
        Specified by:
        or in interface CriteriaContainer
        Parameters:
        criteria - the criteria
        Returns:
        the container
      • remove

        public void remove​(Criteria criteria)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CriteriaContainer
        Removes Criteria to this container
        Specified by:
        remove in interface CriteriaContainer
        Parameters:
        criteria - the criteria to remove