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.
Modifier | Constructor and Description |
---|---|
protected |
DeadRef()
For GWT serialization
|
|
DeadRef(Key<T> key)
Create a Ref based on the key
|
|
DeadRef(Key<T> key,
T value)
Create a Ref based on the key and value
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Obtain the entity value associated with the key.
|
boolean |
isLoaded()
If an entity has been loaded into the session or is otherwise available, this will return true.
|
public T get()
Ref
public boolean isLoaded()
Ref
Copyright © 2017. All rights reserved.