Class 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 Refs to load.
    Author:
    Jeff Schnitzer
    • Constructor Detail

      • SessionValue

        public SessionValue​(Result<T> result)
        No load arrangement - in other words, this was a save operation
    • Method Detail

      • getResult

        public Result<T> getResult()
      • loadWith

        public boolean loadWith​(LoadArrangement arrangement)
        Returns:
        false if the arrangement has already been added