Modifier and Type | Method and Description |
---|---|
boolean |
apply(Entity entity)
Call
matches(Entity) . |
EntityType |
getEntityType()
Get the entity type to return.
|
List<Attribute<?>> |
getFilterFields()
Get the field filters.
|
List<SortKey> |
getSortKeys()
Get the sort keys.
|
Class<E> |
getViewType()
Get the type to view results as.
|
boolean |
matches(Entity entity)
Determine whether this query matches the specified entity.
|
static EntityQueryBuilder |
newBuilder(EntityType type)
Construct a new data query builder.
|
public static EntityQueryBuilder newBuilder(EntityType type)
Construct a new data query builder.
type
- The entity typepublic EntityType getEntityType()
Get the entity type to return.
public List<Attribute<?>> getFilterFields()
Get the field filters. The results should only include entities matching all queries.
public List<SortKey> getSortKeys()
Get the sort keys.
public Class<E> getViewType()
Get the type to view results as.
public boolean apply(@Nullable Entity entity)
Call matches(Entity)
.
public boolean matches(Entity entity)
Determine whether this query matches the specified entity.
entity
- The entity to test.