java.lang.Object | +--com.ibm.commerce.me.datatype.RequisitionerSessionTable
A table stores the RequistionerSessionData based on user ID
Field Summary | |
---|---|
protected
java.util.Hashtable |
cache A table containing all the requisitioner session data |
protected
int |
cacheSize The size of the cache (table contaiing session data) |
static java.lang.String |
COPYRIGHT IBM Copyright field |
protected
static
RequisitionerSessionTable |
singleton A singleton instance of the current class |
Method Summary | |
---|---|
void |
addElement(java.lang.Long userId,
java.lang.Object reqSession) Adds an instance of RequisitionerSessionData to the
table |
RequisitionerSessionData |
find(java.lang.Long userId) Finds and returns an instance of RequisitionerSessionData based on user ID |
void |
removeAllElements() Removes all stored instances of RequisitionerSessionData
from the table |
void |
removeElement(java.lang.Long userId) Removes an instance of RequisitionerSessionData based on
user ID (as a key) |
static
RequisitionerSessionTable |
singleton() Creates a singleton instance of the RequisitionerSessoinTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.util.Hashtable cache
protected int cacheSize
protected static RequisitionerSessionTable singleton
Method Detail |
---|
public void addElement(java.lang.Long userId, java.lang.Object reqSession)
RequisitionerSessionData
to the table
userId
- the user ID used as a key for the
RequistionerSessionDatareqSession
- the RequistionerSessionData
to be
added to the tablepublic RequisitionerSessionData find(java.lang.Long userId)
RequisitionerSessionData
based on user ID
userId
- the user ID used to identify an instance of
RequisitionerSessionData
public void removeAllElements()
RequisitionerSessionData
from
the table
public void removeElement(java.lang.Long userId)
RequisitionerSessionData
based on user
ID (as a key)
userId
- the user ID used as a key to identify an instance of
ReuqisitionerSessionData to be removedpublic static RequisitionerSessionTable singleton()