|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Session maintains transaction coordinated in-memory data. The data added since the last commit will be lost on a transaction rollback, i.e. the Session state is synchronized with the transaction. Please note that if nested objects (such as lists and maps) are stored in the session, changes internal to those objects are not subject to the session semantics since the session is unaware of them.
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
java.lang.String |
getSessionUserName()
Return the session user. |
java.lang.String |
getUserName()
Return the current user. |
void |
removeAttribute(java.lang.String attributeName)
Remove an attribute previously stored in the session. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value)
Set an attribute to a value in the current session. |
Method Detail |
public java.lang.Object getAttribute(java.lang.String attributeName)
public java.lang.String getUserName()
public java.lang.String getSessionUserName()
public void removeAttribute(java.lang.String attributeName)
attributeName
- The name of the attribute.public void setAttribute(java.lang.String attributeName, java.lang.Object value)
attributeName
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |