org.ow2.easybeans.api
Interface EZBStatefulSessionFactory<PoolType,Clue>

Type Parameters:
PoolType - the type of Pool
Clue - the clue key
All Superinterfaces:
EZBJ2EEManagedObject, Factory<PoolType,Clue>

public interface EZBStatefulSessionFactory<PoolType,Clue>
extends Factory<PoolType,Clue>

Interface for Stateful session factory.

Author:
Florent Benoit

Method Summary
 void addExtendedPersistenceContext(EasyBeansSFSB statefulSessionBean, EZBExtendedEntityManager extendedEntityManager)
          Adds the given extended persistence context for the given stateful session bean.
 List<EZBExtendedEntityManager> getExtendedPersistenceContexts(EasyBeansSFSB statefulSessionBean)
          Gets the extended persistence context registered for the given stateful session bean.
 Synchronization getSessionSynchronizationListener(Transaction tx)
          Gets the current session synchronization listener on the given transaction if any.
 void setSessionSynchronizationListener(Transaction tx, Synchronization sessionSynchronizationListener)
          Sets the current session synchronization listener on the given transaction.
 void unsetSessionSynchronizationListener(Transaction tx)
          Unsets the current session synchronization listener on the given transaction.
 
Methods inherited from interface org.ow2.easybeans.api.Factory
getBeanInfo, getClassName, getContainer, getContextDataThreadLocal, getId, getInvocationContextFactory, getJavaContext, getOperationState, getOperationStateThreadLocal, getPool, getTimerService, init, localCall, notifyTimeout, rpcInvoke, setInvocationContextFactory, setJavaContext, start, stop
 
Methods inherited from interface org.ow2.easybeans.api.EZBJ2EEManagedObject
getComponent, getJ2EEManagedObjectId
 

Method Detail

getSessionSynchronizationListener

Synchronization getSessionSynchronizationListener(Transaction tx)
Gets the current session synchronization listener on the given transaction if any.

Parameters:
tx - the given transaction
Returns:
the current session synchronization listener

setSessionSynchronizationListener

void setSessionSynchronizationListener(Transaction tx,
                                       Synchronization sessionSynchronizationListener)
Sets the current session synchronization listener on the given transaction.

Parameters:
tx - the given transaction
sessionSynchronizationListener - the session synchronization listener

unsetSessionSynchronizationListener

void unsetSessionSynchronizationListener(Transaction tx)
Unsets the current session synchronization listener on the given transaction.

Parameters:
tx - the given transaction

getExtendedPersistenceContexts

List<EZBExtendedEntityManager> getExtendedPersistenceContexts(EasyBeansSFSB statefulSessionBean)
Gets the extended persistence context registered for the given stateful session bean.

Parameters:
statefulSessionBean - the given bean
Returns:
the extended persistence contexts

addExtendedPersistenceContext

void addExtendedPersistenceContext(EasyBeansSFSB statefulSessionBean,
                                   EZBExtendedEntityManager extendedEntityManager)
Adds the given extended persistence context for the given stateful session bean.

Parameters:
statefulSessionBean - the given bean
extendedEntityManager - the given extended persistence context


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.