Package com.googlecode.objectify.impl
Class SessionValue<T>
- java.lang.Object
-
- com.googlecode.objectify.impl.SessionValue<T>
-
public class SessionValue<T> extends Object
The information we maintain on behalf of an entity instance in the session cache. Normally this would just be a Result>, but we also need to track the load arrangements so that we can decide whether to look for more Ref>s to load.- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description SessionValue(Result<T> result)
No load arrangement - in other words, this was a save operationSessionValue(Result<T> result, LoadArrangement loadArrangement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<T>
getResult()
boolean
loadWith(LoadArrangement arrangement)
-
-
-
Constructor Detail
-
SessionValue
public SessionValue(Result<T> result)
No load arrangement - in other words, this was a save operation
-
SessionValue
public SessionValue(Result<T> result, LoadArrangement loadArrangement)
-
-
Method Detail
-
loadWith
public boolean loadWith(LoadArrangement arrangement)
- Returns:
- false if the arrangement has already been added
-
-