Class Session

java.lang.Object
com.googlecode.objectify.impl.Session

public class Session
extends Object
The basic session cache. A lot easier than passing the generic arguments around!
Author:
Jeff Schnitzer
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • add

      public void add(Key<?> key, SessionValue<?> value)
      Add/overwrite a SV.
    • addValue

      public void addValue(Key<?> key, Object value)
      Convenience method
    • addAll

      public void addAll(Session other)
      Add all entries in the other session to this one
    • get

      public <T> SessionValue<T> get(Key<T> key)
    • contains

      public boolean contains(Key<?> key)
    • clear

      public void clear()
    • toString

      public String toString()
      Convenient for debugging
      Overrides:
      toString in class Object
    • keys

      public Set<Key<?>> keys()
      Returns:
      all the keys currently in the session. If you really want this data, subclass ObjectifyImpl and use the protected getSession() method.