openfuture.bugbase.model
Class Session

java.lang.Object
  |
  +--openfuture.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 $
Author:
Wolfgang Reissenberger

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().
 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
 

Constructor Detail

Session

public Session(java.lang.Object sessionKey)
Creates a new session.
Parameters:
sessionKey - key to identify the session
Method Detail

getID

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

getSessionKey

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

setSessionKey

public void setSessionKey(java.lang.Object v)
Set the value of sessionKey.
Parameters:
v - Value to assign to sessionKey.

putValue

public void putValue(java.lang.String key,
                     java.lang.Object o)
Stores the object o for the given key in a Hashtable.
Parameters:
key - the object's key
o - session object

getValue

public java.lang.Object getValue(java.lang.String key)
Returns the object for the given key.
Parameters:
key - the object's key
Returns:
session object

getCreationDate

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

getLastAccess

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

setLastAccess

public void setLastAccess(java.util.Date v)
Set the value of lastAccess.
Parameters:
v - Value to assign to lastAccess.

hashCode

public int hashCode()
Returns the hashCode of SessionKey.
Overrides:
hashCode in class java.lang.Object
Returns:
hash code

getSessionID

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


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.