org.postgresql.pljava
Interface Session

All Known Implementing Classes:
Session

public interface Session

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

getAttribute

java.lang.Object getAttribute(java.lang.String attributeName)

getUserName

java.lang.String getUserName()
Return the current user.


getSessionUserName

java.lang.String getSessionUserName()
Return the session user.


removeAttribute

void removeAttribute(java.lang.String attributeName)
Remove an attribute previously stored in the session. If no attribute is found, nothing happens.

Parameters:
attributeName - The name of the attribute.

setAttribute

void setAttribute(java.lang.String attributeName,
                  java.lang.Object value)
Set an attribute to a value in the current session.

Parameters:
attributeName -
value -


Copyright (c) 2003, 2004 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT