Package com.googlecode.objectify.cmd
Interface LoadType<T>
-
- All Superinterfaces:
Iterable<T>
,LoadIds<T>
,Query<T>
,QueryExecute<T>
,QueryResultIterable<T>
,SimpleQuery<T>
public interface LoadType<T> extends LoadIds<T>, Query<T>
Once you have narrowed your interest to a type (viaload().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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoadIds<T>
parent(Object keyOrEntity)
Define a parent for a get-by-key operation.-
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, startAt
-
Methods inherited from interface com.googlecode.objectify.cmd.QueryExecute
first, iterable, list
-
Methods inherited from interface com.googlecode.objectify.cmd.QueryResultIterable
iterator
-
Methods inherited from interface com.googlecode.objectify.cmd.SimpleQuery
count, keys, toString
-
-
-
-
Method Detail
-
parent
LoadIds<T> parent(Object keyOrEntity)
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.
-
-