265266267268269270271272273274275276
&& obj.getClass().isAssignableFrom(com.google.appengine.api.datastore.Key.class); } private <T> void refreshAll(Iterable<T> iterable) { Loader loader = new Loader(base.sync(), factory); for (T t : iterable) { loader.refresh(t); } }
2829303132333435363738
public T get() { T result = super.get(); if (result != null) { new Loader(objectifyPersister, factoryPersister).refresh(result); } return result; }
4243444546474849505152535455
List<T> list = super.list(); if (!list.isEmpty()) { Loader loader = new Loader(objectifyPersister, factoryPersister); for (T result : list) { loader.refresh(result); } } return list;
199200201202203204205206207208209210
return new QueryPersisterImpl<T>(factory, this, clazz); } public <T> void refresh(Collection<T> object) { Loader loader = new Loader(base, factory); for (T t : object) { loader.refresh(t); } }
209210211212213214215216217218219220
} public <T> void refresh(T... object) { Loader loader = new Loader(base, factory); for (T t : object) { loader.refresh(t); } }
218219220221222223224
} } public <T> void refresh(T object) { new Loader(base, factory).refresh(object); }