public class CmpEntityBeanComponent extends EntityBeanComponent
PRIMARY_KEY_CONTEXT_KEY
Constructor and Description |
---|
CmpEntityBeanComponent(CmpEntityBeanComponentCreateService ejbComponentCreateService,
org.jboss.msc.value.Value<JDBCEntityPersistenceStore> storeManager) |
Modifier and Type | Method and Description |
---|---|
protected ReadyEntityCache |
createEntityCache(EntityBeanComponentCreateService ejbComponentCreateService) |
AllowedMethodsInformation |
getAllowedMethodsInformation() |
javax.ejb.EJBLocalHome |
getEJBLocalHome() |
Collection<Object> |
getEntityLocalCollection(List<Object> idList) |
JDBCEntityPersistenceStore |
getStoreManager() |
TransactionEntityMap |
getTransactionEntityMap() |
protected BasicComponentInstance |
instantiateComponentInstance(AtomicReference<ManagedReference> instanceReference,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
org.jboss.invocation.InterceptorFactoryContext interceptorContext)
Responsible for instantiating the
BasicComponentInstance . |
Object |
invoke(CMRMessage message,
Object key,
Object... params) |
void |
invokeEjbStore(CmpEntityBeanContext ctx)
Invokes ejbStore method on the instance
|
void |
start()
Start operation called when the Component is available.
|
void |
storeEntity(CmpEntityBeanContext ctx) |
void |
synchronizeEntitiesWithinTransaction(Transaction transaction) |
acquireUnAssociatedInstance, createInterceptor, getCache, getEjbActivate, getEjbActivateMethod, getEjbLoad, getEjbLoadMethod, getEJBLocalObject, getEJBObject, getEjbPassivate, getEjbPassivateMethod, getEjbStore, getEjbStoreMethod, getHomeClass, getLocalClass, getLocalHomeClass, getPool, getPoolName, getPrimaryKeyClass, getRemoteClass, getUnsetEntityContext, getUnsetEntityContextMethod, releaseEntityBeanInstance
createViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEjbHomeViewServiceName, getEjbLocalHomeViewServiceName, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbRemoteTransactionsRepository, getModuleName, getRollbackOnly, getSecurityManager, getSecurityMetaData, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getUserTransaction, isCallerInRole, lookup, setRollbackOnly
componentInstanceCreated, constructComponentInstance, createInstance, createInstance, getComponentClass, getComponentName, getCreateServiceName, getNamespaceContextSelector, stop, toString, waitForComponentStart
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createInstance, getComponentClass, getNamespaceContextSelector, stop
public CmpEntityBeanComponent(CmpEntityBeanComponentCreateService ejbComponentCreateService, org.jboss.msc.value.Value<JDBCEntityPersistenceStore> storeManager)
protected BasicComponentInstance instantiateComponentInstance(AtomicReference<ManagedReference> instanceReference, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, org.jboss.invocation.InterceptorFactoryContext interceptorContext)
BasicComponent
BasicComponentInstance
. This method is *not* responsible for
handling the post construct activities like injection and lifecycle invocation. That is handled by
BasicComponent.constructComponentInstance(ManagedReference, boolean, InterceptorFactoryContext)
.
instantiateComponentInstance
in class EntityBeanComponent
public void start()
BasicComponent
start
in interface Component
start
in class BasicComponent
public Collection<Object> getEntityLocalCollection(List<Object> idList)
public void synchronizeEntitiesWithinTransaction(Transaction transaction)
public javax.ejb.EJBLocalHome getEJBLocalHome() throws IllegalStateException
getEJBLocalHome
in class EJBComponent
IllegalStateException
public JDBCEntityPersistenceStore getStoreManager()
public Object invoke(CMRMessage message, Object key, Object... params) throws Exception
Exception
public void invokeEjbStore(CmpEntityBeanContext ctx) throws Exception
ctx
- the instance to invoke ejbStore onException
public void storeEntity(CmpEntityBeanContext ctx) throws Exception
Exception
public TransactionEntityMap getTransactionEntityMap()
protected ReadyEntityCache createEntityCache(EntityBeanComponentCreateService ejbComponentCreateService)
createEntityCache
in class EntityBeanComponent
public AllowedMethodsInformation getAllowedMethodsInformation()
getAllowedMethodsInformation
in class EntityBeanComponent
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.