Package dev.morphia.query
Class CriteriaContainerImpl
- java.lang.Object
-
- dev.morphia.query.AbstractCriteria
-
- dev.morphia.query.CriteriaContainerImpl
-
- All Implemented Interfaces:
Criteria
,CriteriaContainer
@MorphiaInternal @Deprecated(since="2.0", forRemoval=true) public class CriteriaContainerImpl extends AbstractCriteria implements CriteriaContainer
Deprecated, for removal: This API element is subject to removal in a future version.Defines a container of Criteria and a join method.- See Also:
CriteriaJoin
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CriteriaContainerImpl(Datastore datastore, LegacyQuery<?> query, CriteriaJoin joinMethod)
Deprecated, for removal: This API element is subject to removal in a future version.
-
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 containerCriteriaContainer
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 fieldList<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 containervoid
setQuery(LegacyQuery<?> query)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the Query for this CriteriaContainerDocument
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.-
Methods inherited from class dev.morphia.query.AbstractCriteria
attach
-
-
-
-
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 interfaceCriteriaContainer
- 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 interfaceCriteriaContainer
- 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 interfaceCriteria
- Returns:
- the field name for the criteria
-
toDocument
public Document toDocument()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toDocument
in interfaceCriteria
- 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 interfaceCriteriaContainer
- 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.
-
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 interfaceCriteriaContainer
- 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 interfaceCriteriaContainer
- Parameters:
criteria
- the criteria to remove
-
-