Package com.googlecode.objectify.cmd
Interface LoadIds<T>
- All Known Subinterfaces:
LoadType<T>
public interface LoadIds<T>
Terminator methods for a fetch-by-key command chain which constructs the key implicitly from type, id, and (optionally) parent.
All command objects are immutable.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionid
(long id) Specify the numeric id of an entity and start asynchronous fetch.Specify the String id of an entity and start asynchronous fetch.Specify the ids of multiple entities and start asynchronous fetch.Specify the numeric ids of multiple entities and start asynchronous fetch.Specify the String ids of multiple entities and start asynchronous fetch.
-
Method Details
-
id
Specify the numeric id of an entity and start asynchronous fetch.
- Parameters:
id
- - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.- Returns:
- an asynchronous result that can materialize the entity
-
id
Specify the String id of an entity and start asynchronous fetch.
- Parameters:
id
- - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.- Returns:
- an asynchronous result that can materialize the entity
-
ids
Specify the numeric ids of multiple entities and start asynchronous fetch.
- Parameters:
ids
- - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.- Returns:
- a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
-
ids
Specify the String ids of multiple entities and start asynchronous fetch.
- Parameters:
ids
- - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.- Returns:
- a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
-
ids
Specify the ids of multiple entities and start asynchronous fetch.
- Parameters:
ids
- - the ids of the entities to fetch. The Iterator must provide Long or String. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.- Returns:
- a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
-