Package com.googlecode.objectify.impl
Class QueryDef
java.lang.Object
com.googlecode.objectify.impl.QueryDef
The SDK Query hierarchy and associated builders make it hard to convert between keys-only
entity, and projection. So we have to store the state of the query ourselves.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandFilter
(com.google.cloud.datastore.StructuredQuery.Filter addFilter) Convenince method that creates a composite filter with any existing filter (if present)distinctOn
(String distinctOn) distinctOnAll
(boolean distinctOnAll) At the last minute add distinct on all projected fields.endCursor
(com.google.cloud.datastore.Cursor endCursor) filter
(com.google.cloud.datastore.StructuredQuery.Filter filter) com.google.cloud.datastore.EntityQuery
com.google.cloud.datastore.KeyQuery
com.google.cloud.datastore.ProjectionEntityQuery
offset
(int offset) orderBy
(com.google.cloud.datastore.StructuredQuery.OrderBy orderBy) startCursor
(com.google.cloud.datastore.Cursor startCursor)
-
Constructor Details
-
QueryDef
public QueryDef()
-
-
Method Details
-
namespace
-
kind
-
project
-
filter
-
andFilter
Convenince method that creates a composite filter with any existing filter (if present) -
distinctOn
-
distinctOnAll
At the last minute add distinct on all projected fields. This can be called before the projections are added. -
orderBy
-
startCursor
-
endCursor
-
offset
-
limit
-
newKeyQuery
public com.google.cloud.datastore.KeyQuery newKeyQuery() -
newEntityQuery
public com.google.cloud.datastore.EntityQuery newEntityQuery() -
newProjectionQuery
public com.google.cloud.datastore.ProjectionEntityQuery newProjectionQuery()
-