Package dev.morphia.query.filters
Class LogicalFilter
- java.lang.Object
-
- dev.morphia.query.filters.Filter
-
- dev.morphia.query.filters.LogicalFilter
-
public class LogicalFilter extends Filter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalFilteradd(Filter filter)Adds a new filter to this LogicalFilter.voidencode(Datastore datastore, BsonWriter writer, EncoderContext context)FilterentityType(Class<?> type)Sets the query entity type on the filterFilterisValidating(boolean validate)Sets whether to validate field names or notStringtoString()-
Methods inherited from class dev.morphia.query.filters.Filter
getField, getName, getValue, getValue, isNot, not, path, writeNamedValue, writeUnnamedValue
-
-
-
-
Method Detail
-
add
public LogicalFilter add(Filter filter)
Adds a new filter to this LogicalFilter.- Parameters:
filter- the new filter- Returns:
- this
- Since:
- 2.3
-
encode
public void encode(Datastore datastore, BsonWriter writer, EncoderContext context)
-
entityType
public Filter entityType(Class<?> type)
Description copied from class:FilterSets the query entity type on the filter- Overrides:
entityTypein classFilter- Parameters:
type- the type- Returns:
- this
-
isValidating
public Filter isValidating(boolean validate)
Description copied from class:FilterSets whether to validate field names or not- Overrides:
isValidatingin classFilter- Parameters:
validate- true to validate- Returns:
- this
-
-