public class EntityBeanComponentInstance extends EjbComponentInstance
INSTANCE_KEY| Modifier | Constructor and Description |
|---|---|
protected |
EntityBeanComponentInstance(BasicComponent component,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Object primaryKey)
Invoke the ejbActivate and ejbLoad callback methods for the entity bean.
|
void |
associate(Object primaryKey)
Associates this entity with a primary key.
|
protected void |
clearPrimaryKey() |
void |
discard() |
EntityBeanComponent |
getComponent()
Get the component associated with this instance.
|
EntityContextImpl |
getEjbContext() |
javax.ejb.EJBLocalObject |
getEjbLocalObject() |
javax.ejb.EJBObject |
getEjbObject() |
javax.ejb.EntityBean |
getInstance()
Get the actual object instance.
|
OwnableReentrantLock |
getLock() |
Object |
getPrimaryKey() |
Object |
getThreadLock() |
protected void |
invokeEjbStore() |
protected void |
invokeUnsetEntityContext() |
boolean |
isInvocationInProgress() |
boolean |
isReloadRequired() |
boolean |
isRemoved() |
boolean |
isSynchronizeRegistered() |
void |
passivate()
Prepares the instance for release by calling the ejbPassivate method.
|
protected void |
preDestroy()
Method that sub classes can use to override destroy logic.
|
void |
reload() |
void |
removeAllTimers()
Remove all timers for this entity bean.
|
protected void |
setEjbContext(EntityContextImpl entityContext) |
void |
setInvocationInProgress(boolean invocationInProgress) |
void |
setReloadRequired(boolean reloadRequired) |
void |
setRemoved(boolean removed) |
void |
setSynchronizationRegistered(boolean synchronizeRegistered) |
void |
setupContext(org.jboss.invocation.InterceptorContext interceptorContext) |
void |
store()
Invokes the ejbStore method
|
isDiscardedallowedMethods, constructionFinished, destroy, getInstanceData, getInterceptor, prepareInterceptorContext, setInstanceDataprotected EntityBeanComponentInstance(BasicComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors)
public EntityBeanComponent getComponent()
BasicComponentInstancegetComponent in interface ComponentInstancegetComponent in class EjbComponentInstancepublic javax.ejb.EntityBean getInstance()
BasicComponentInstancegetInstance in interface ComponentInstancegetInstance in class BasicComponentInstancepublic Object getPrimaryKey()
public void reload()
public boolean isReloadRequired()
public void setReloadRequired(boolean reloadRequired)
public void discard()
discard in class EjbComponentInstanceprotected void preDestroy()
BasicComponentInstancepreDestroy in class BasicComponentInstanceprotected void invokeUnsetEntityContext()
throws Exception
Exceptionpublic void associate(Object primaryKey)
primaryKey - The primary key to associate the entity withpublic void activate(Object primaryKey)
primaryKey - The primary key to activate the entity withpublic void store()
public void passivate()
public void setupContext(org.jboss.invocation.InterceptorContext interceptorContext)
public EntityContextImpl getEjbContext()
getEjbContext in class EjbComponentInstanceprotected void setEjbContext(EntityContextImpl entityContext)
public javax.ejb.EJBObject getEjbObject()
public javax.ejb.EJBLocalObject getEjbLocalObject()
public boolean isRemoved()
public void setRemoved(boolean removed)
public void setSynchronizationRegistered(boolean synchronizeRegistered)
public boolean isSynchronizeRegistered()
protected void clearPrimaryKey()
public boolean isInvocationInProgress()
public void setInvocationInProgress(boolean invocationInProgress)
public Object getThreadLock()
public OwnableReentrantLock getLock()
public void removeAllTimers()
Copyright © 2014 JBoss by Red Hat. All rights reserved.