Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.model
Class Session  view Session download Session.java

java.lang.Object
  extended byopenfuture.bugbase.model.Session

public class Session
extends java.lang.Object

Container for session data. Created: Sun Jul 02 11:35:01 2000

Version:
$Revision: 1.3 $

Field Summary
private  java.util.Date creationDate
           
private  java.util.Date lastAccess
           
private  java.lang.Object sessionKey
           
private  java.util.Hashtable values
           
 
Constructor Summary
Session(java.lang.Object sessionKey)
          Creates a new session.
 
Method Summary
 java.util.Date getCreationDate()
          returns the creation date of the object.
 int getID()
          Returns the session id.
 java.util.Date getLastAccess()
          Get the value of lastAccess.
 java.lang.Integer getSessionID()
          ID of the session (using hashCode() 55 .
 java.lang.Object getSessionKey()
          Get the value of sessionKey.
 java.lang.Object getValue(java.lang.String key)
          Returns the object for the given key.
 int hashCode()
          Returns the hashCode of SessionKey.
 void putValue(java.lang.String key, java.lang.Object o)
          Stores the object o for the given key in a Hashtable.
 void setLastAccess(java.util.Date v)
          Set the value of lastAccess.
 void setSessionKey(java.lang.Object v)
          Set the value of sessionKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionKey

private java.lang.Object sessionKey

creationDate

private java.util.Date creationDate

lastAccess

private java.util.Date lastAccess

values

private java.util.Hashtable values
Constructor Detail

Session

public Session(java.lang.Object sessionKey)
Creates a new session.

Method Detail

getID

public int getID()
Returns the session id. The session id is this.hashCode().


getSessionKey

public java.lang.Object getSessionKey()
Get the value of sessionKey.


setSessionKey

public void setSessionKey(java.lang.Object v)
Set the value of sessionKey.


putValue

public void putValue(java.lang.String key,
                     java.lang.Object o)
Stores the object o for the given key in a Hashtable.


getValue

public java.lang.Object getValue(java.lang.String key)
Returns the object for the given key.


getCreationDate

public java.util.Date getCreationDate()
returns the creation date of the object.


getLastAccess

public java.util.Date getLastAccess()
Get the value of lastAccess.


setLastAccess

public void setLastAccess(java.util.Date v)
Set the value of lastAccess.


hashCode

public int hashCode()
Returns the hashCode of SessionKey.


getSessionID

public java.lang.Integer getSessionID()
ID of the session (using hashCode() 55 .