com.bankframe.services.sessionmgmt.ejb.session
Class EJBBankFrameSessionBean

java.lang.Object
  extended bycom.bankframe.ejb.EEntityBean
      extended bycom.bankframe.services.sessionmgmt.ejb.session.EJBBankFrameSessionBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class EJBBankFrameSessionBean
extends EEntityBean

This is an CMP EJB based implementation of the com.bankframe.service.sessionmgmt.BankFrameSession interface.

See Also:
Serialized Form

Field Summary
 java.lang.String sessionId
           
 java.lang.Long timeStamp
           
 java.lang.String userId
           
 
Constructor Summary
EJBBankFrameSessionBean()
           
 
Method Summary
 EJBBankFrameSessionPK ejbCreate(java.lang.String sessionId, java.lang.String userId)
          Create a BankFrame Session instance
 void ejbPostCreate(java.lang.String sessionId, java.lang.String userId)
           
 java.lang.String getSessionId()
          Get the session's unique id
 long getTimeStamp()
          Get the time ( in milliseconds ) that this sesion was last accessed
 java.lang.String getUserId()
          Get the user id that owns the session
 DataPacket toDataPacket()
          Convert the entity bean attributes to a DataPacket
 void updateTimeStamp()
          Update the timestamp value to the current time.
 
Methods inherited from class com.bankframe.ejb.EEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionId

public java.lang.String sessionId

userId

public java.lang.String userId

timeStamp

public java.lang.Long timeStamp
Constructor Detail

EJBBankFrameSessionBean

public EJBBankFrameSessionBean()
Method Detail

ejbCreate

public EJBBankFrameSessionPK ejbCreate(java.lang.String sessionId,
                                       java.lang.String userId)
                                throws javax.ejb.CreateException
Create a BankFrame Session instance

Parameters:
sessionId - Globally unique Id for this user session
userId - Unique id of the user that this session belongs to
Throws:
javax.ejb.CreateException - if an error occurs

ejbPostCreate

public void ejbPostCreate(java.lang.String sessionId,
                          java.lang.String userId)

getSessionId

public java.lang.String getSessionId()
Get the session's unique id

Returns:
String containing unique sesison id

getTimeStamp

public long getTimeStamp()
Get the time ( in milliseconds ) that this sesion was last accessed

Returns:
long containing the timestamp

getUserId

public java.lang.String getUserId()
Get the user id that owns the session

Returns:
String containing unique user id

toDataPacket

public DataPacket toDataPacket()
Convert the entity bean attributes to a DataPacket

Specified by:
toDataPacket in class EEntityBean

updateTimeStamp

public void updateTimeStamp()
Update the timestamp value to the current time.



Copyright © 2005, 2007, Oracle. All rights reserved.