You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/googlecode/objectify/cmd/LoadIds.java
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -2,55 +2,55 @@
2
2
3
3
importjava.util.Map;
4
4
5
-
importcom.googlecode.objectify.Ref;
5
+
importcom.googlecode.objectify.LoadResult;
6
6
7
7
8
8
/**
9
9
* <p>Terminator methods for a fetch-by-key command chain which constructs the key implicitly from
10
10
* type, id, and (optionally) parent.</p>
11
-
*
11
+
*
12
12
* <p>All command objects are immutable.</p>
13
-
*
13
+
*
14
14
* @author Jeff Schnitzer <jeff@infohazard.org>
15
15
*/
16
16
publicinterfaceLoadIds<T>
17
17
{
18
18
/**
19
19
* <p>Specify the numeric id of an entity and start asynchronous fetch.</p>
20
-
*
21
-
* @param id - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
22
-
* @return a Ref that wraps the asynchronous Result of the fetch.
20
+
*
21
+
* @param id - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
22
+
* @return an asynchronous result that can materialize the entity
23
23
*/
24
-
Ref<T> id(longid);
24
+
LoadResult<T> id(longid);
25
25
26
26
/**
27
27
* <p>Specify the String id of an entity and start asynchronous fetch.</p>
28
-
*
29
-
* @param id - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
30
-
* @return a Ref that wraps the asynchronous Result of the fetch.
28
+
*
29
+
* @param id - the id of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
30
+
* @return an asynchronous result that can materialize the entity
31
31
*/
32
-
Ref<T> id(Stringid);
32
+
LoadResult<T> id(Stringid);
33
33
34
34
/**
35
35
* <p>Specify the numeric ids of multiple entities and start asynchronous fetch.</p>
36
-
*
37
-
* @param ids - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
36
+
*
37
+
* @param ids - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
38
38
* @return a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
39
39
*/
40
40
Map<Long, T> ids(Long... ids);
41
41
42
42
/**
43
43
* <p>Specify the String ids of multiple entities and start asynchronous fetch.</p>
44
-
*
45
-
* @param ids - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
44
+
*
45
+
* @param ids - the ids of the entity to fetch. Note that numeric ids and String ids are not equivalent; 123 and "123" are different ids.
46
46
* @return a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
47
47
*/
48
48
Map<String, T> ids(String... ids);
49
49
50
50
/**
51
51
* <p>Specify the ids of multiple entities and start asynchronous fetch.</p>
52
-
*
53
-
* @param 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.
52
+
*
53
+
* @param 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.
54
54
* @return a Map of the asynchronous result. The first method call on the Map will synchronously finish the call.
0 commit comments