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.
Modifier and Type | Method and Description |
---|---|
LoadResult<T> |
id(long id)
Specify the numeric id of an entity and start asynchronous fetch.
|
LoadResult<T> |
id(String id)
Specify the String id of an entity and start asynchronous fetch.
|
<S> Map<S,T> |
ids(Iterable<S> ids)
Specify the ids of multiple entities and start asynchronous fetch.
|
Map<Long,T> |
ids(Long... ids)
Specify the numeric ids of multiple entities and start asynchronous fetch.
|
Map<String,T> |
ids(String... ids)
Specify the String ids of multiple entities and start asynchronous fetch.
|
LoadResult<T> id(long id)
Specify the numeric id of an entity and start asynchronous fetch.
id
- - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.LoadResult<T> id(String id)
Specify the String id of an entity and start asynchronous fetch.
id
- - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.Map<Long,T> ids(Long... ids)
Specify the numeric ids of multiple entities and start asynchronous fetch.
ids
- - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.Map<String,T> ids(String... ids)
Specify the String ids of multiple entities and start asynchronous fetch.
ids
- - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.<S> Map<S,T> ids(Iterable<S> ids)
Specify the ids of multiple entities and start asynchronous fetch.
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.Copyright © 2016. All rights reserved.