Package com.googlecode.objectify.impl
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add(Key<?> key, SessionValue<?> value)
Add/overwrite a SV.void
Add all entries in the other session to this onevoid
Convenience methodvoid
clear()
boolean
<T> SessionValue<T>
keys()
toString()
Convenient for debugging
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
add
Add/overwrite a SV. -
addValue
Convenience method -
addAll
Add all entries in the other session to this one -
get
-
contains
-
clear
public void clear() -
toString
Convenient for debugging -
keys
- Returns:
- all the keys currently in the session. If you really want this data, subclass ObjectifyImpl and use the protected getSession() method.
-