Package com.googlecode.objectify.cmd
Interface LoadType<T>
- All Superinterfaces:
Iterable<T>
,LoadIds<T>
,Query<T>
,QueryExecute<T>
,com.google.appengine.api.datastore.QueryResultIterable<T>
,SimpleQuery<T>
public interface LoadType<T> extends LoadIds<T>, Query<T>
Once you have narrowed your interest to a type (via
load().type(SomeType.class)
), the command
pattern can diverge into two directions: Either defining a parent or ids (which corresponds to a
batch get) or calling query-related methods (which will produce a query).- Author:
- Jeff Schnitzer
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.googlecode.objectify.cmd.Query
ancestor, chunk, chunkAll, distinct, endAt, filter, filter, filterKey, filterKey, hybrid, limit, offset, order, orderKey, project, reverse, startAt
Methods inherited from interface com.googlecode.objectify.cmd.QueryExecute
first, iterable, list
Methods inherited from interface com.google.appengine.api.datastore.QueryResultIterable
iterator
Methods inherited from interface com.googlecode.objectify.cmd.SimpleQuery
count, keys, toString
-
Method Details
-
parent
Define a parent for a get-by-key operation. After this, you must define an id() or ids().All command objects are immutable; this method returns a new object instead of modifying the current command object.
- Parameters:
keyOrEntity
- - a Key>, datastore Key, or entity pojo of the relevant entity to use as the key parent- Returns:
- the next immutable step in the command chain, which allows you to define ids.
-