Class DeadRef<T>
- java.lang.Object
-
- com.googlecode.objectify.Ref<T>
-
- com.googlecode.objectify.impl.ref.DeadRef<T>
-
- All Implemented Interfaces:
Serializable,Comparable<Ref<T>>
public class DeadRef<T> extends Ref<T>
Implementation of Ref which is disconnected from the live system; for example, this will be used if a Ref gets serialized or deserialized.
- Author:
- Jeff Schnitzer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Obtain the entity value associated with the key.booleanisLoaded()If an entity has been loaded into the session or is otherwise available, this will return true.
-
-
-
Method Detail
-
get
public T get()
Description copied from class:RefObtain the entity value associated with the key. Will pull from session if present, otherwise will fetch from the datastore.
-
isLoaded
public boolean isLoaded()
Description copied from class:RefIf an entity has been loaded into the session or is otherwise available, this will return true. Calls to get() will not require a trip to backing store. Note that even when loaded, get() can still return null if there is no entity which corresponds to the key.
-
-