org.jboss.ha.httpsession.beanimpl.ejb
Class ClusteredHTTPSessionBeanImpl

java.lang.Object
  extended byorg.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanAbstract (src) 
      extended byorg.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanImpl
All Implemented Interfaces:
ClusteredHTTPSessionBusiness (src) , EnterpriseBean (src) , EntityBean (src) , java.io.Serializable
Direct Known Subclasses:
ClusteredHTTPSessionBeanCmp11 (src)

public abstract class ClusteredHTTPSessionBeanImpl
extends ClusteredHTTPSessionBeanAbstract (src)

Core implementation of methods for the bean.

See Also:
ClusteredHTTPSession (src) , ClusteredHTTPSessionBeanAbstract (src) , Serialized Form

Field Summary
protected  boolean isModified
           
protected  SerializableHttpSession (src) tmpSession
           
 
Fields inherited from class org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanAbstract (src)
ejbContext
 
Constructor Summary
ClusteredHTTPSessionBeanImpl()
           
 
Method Summary
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
 SerializableHttpSession (src) getSession()
          Return the HttpSession object associated to its id.
 boolean isModified()
           
protected  void serializeSession()
           
 void setSession(SerializableHttpSession (src)  session)
          Associate a new session (set of attributes, ...) to this id.
protected  void unserializeSession()
           
 
Methods inherited from class org.jboss.ha.httpsession.beanimpl.ejb.ClusteredHTTPSessionBeanAbstract (src)
ejbActivate, ejbCreate, ejbCreate, ejbPassivate, ejbPostCreate, ejbPostCreate, ejbRemove, getCreationTime, getEntityContext, getLastAccessedTime, getSerializedSession, getSessionId, setCreationTime, setEntityContext, setLastAccessedTime, setSerializedSession, setSessionId, unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmpSession

protected SerializableHttpSession (src)  tmpSession

isModified

protected boolean isModified
Constructor Detail

ClusteredHTTPSessionBeanImpl

public ClusteredHTTPSessionBeanImpl()
Method Detail

ejbStore

public void ejbStore()
              throws EJBException (src) ,
                     java.rmi.RemoteException
Description copied from interface: EntityBean (src)

A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.

This method always executes in the transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbStore in interface EntityBean (src)
Overrides:
ejbStore in class ClusteredHTTPSessionBeanAbstract (src)
Throws:
EJBException (src)
java.rmi.RemoteException

ejbLoad

public void ejbLoad()
             throws EJBException (src) ,
                    java.rmi.RemoteException
Description copied from interface: EntityBean (src)

A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.

This method always executes in the transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbLoad in interface EntityBean (src)
Overrides:
ejbLoad in class ClusteredHTTPSessionBeanAbstract (src)
Throws:
EJBException (src)
java.rmi.RemoteException

getSession

public SerializableHttpSession (src)  getSession()
Description copied from interface: ClusteredHTTPSessionBusiness (src)
Return the HttpSession object associated to its id. The main difference with the standard class is that this one is Serializable.

Specified by:
getSession in interface ClusteredHTTPSessionBusiness (src)
Specified by:
getSession in class ClusteredHTTPSessionBeanAbstract (src)

setSession

public void setSession(SerializableHttpSession (src)  session)
Description copied from interface: ClusteredHTTPSessionBusiness (src)
Associate a new session (set of attributes, ...) to this id.

Specified by:
setSession in interface ClusteredHTTPSessionBusiness (src)
Specified by:
setSession in class ClusteredHTTPSessionBeanAbstract (src)

isModified

public boolean isModified()
Specified by:
isModified in class ClusteredHTTPSessionBeanAbstract (src)

serializeSession

protected void serializeSession()
                         throws EJBException (src) 
Throws:
EJBException (src)

unserializeSession

protected void unserializeSession()
                           throws EJBException (src) 
Throws:
EJBException (src)