org.objectweb.easybeans.api.container
Interface EZBSessionContext<BeanType extends EasyBeansSB>

Type Parameters:
BeanType - any session bean managed by EasyBeans (SFSB or SLSB)
All Superinterfaces:
EJBContext, EZBEJBContext<BeanType>, SessionContext
All Known Implementing Classes:
EasyBeansSessionContext

public interface EZBSessionContext<BeanType extends EasyBeansSB>
extends EZBEJBContext<BeanType>, SessionContext

Context that will be stored in the bean object. Allow to gets the Session bean of this context.

Author:
Florent Benoit

Method Summary
 javax.transaction.Transaction getBeanTransaction()
          Gets the transaction used by this bean.
 void setBeanTransaction(javax.transaction.Transaction beanTransaction)
          Sets the transaction used by this bean.
 
Methods inherited from interface org.objectweb.easybeans.api.container.EZBEJBContext
getBean
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 
Methods inherited from interface javax.ejb.SessionContext
getBusinessObject, getEJBLocalObject, getEJBObject, getInvokedBusinessInterface, getMessageContext
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Method Detail

getBeanTransaction

javax.transaction.Transaction getBeanTransaction()
Gets the transaction used by this bean.

Returns:
the bean transaction.

setBeanTransaction

void setBeanTransaction(javax.transaction.Transaction beanTransaction)
Sets the transaction used by this bean.

Parameters:
beanTransaction - the bean transaction.