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>>
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 invalid input: '<'[email protected]>
- See Also:
-
Constructor Details
-
DeadRef
protected DeadRef()For GWT serialization -
DeadRef
Create a Ref based on the key -
DeadRef
Create a Ref based on the key and value
-
-
Method Details
-
get
Description copied from class:Ref
Obtain 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:Ref
If 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.
-