public class EntityBeanComponentInstance extends EjbComponentInstance
INSTANCE_KEY
Modifier | Constructor and Description |
---|---|
protected |
EntityBeanComponentInstance(BasicComponent component,
AtomicReference<ManagedReference> instanceReference,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors) |
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
getPrimaryKey() |
protected void |
invokeEjbStore() |
protected void |
invokeUnsetEntityContext() |
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 |
removeAllTimers()
Remove all timers for this entity bean.
|
protected void |
setEjbContext(EntityContextImpl entityContext) |
void |
setRemoved(boolean removed) |
void |
setSynchronizationRegistered(boolean synchronizeRegistered) |
void |
setupContext(org.jboss.invocation.InterceptorContext interceptorContext) |
void |
store()
Invokes the ejbStore method
|
isDiscarded
allowedMethods, destroy, getInstanceReference, getInterceptor, prepareInterceptorContext
protected EntityBeanComponentInstance(BasicComponent component, AtomicReference<ManagedReference> instanceReference, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors)
public EntityBeanComponent getComponent()
BasicComponentInstance
getComponent
in interface ComponentInstance
getComponent
in class EjbComponentInstance
public javax.ejb.EntityBean getInstance()
BasicComponentInstance
getInstance
in interface ComponentInstance
getInstance
in class BasicComponentInstance
public Object getPrimaryKey()
public void discard()
discard
in class EjbComponentInstance
protected void preDestroy()
BasicComponentInstance
preDestroy
in class BasicComponentInstance
protected void invokeUnsetEntityContext() throws Exception
Exception
public void associate(Object primaryKey)
primaryKey
- The primary key to associate the entity withpublic void store()
public void passivate()
public void setupContext(org.jboss.invocation.InterceptorContext interceptorContext)
public EntityContextImpl getEjbContext()
getEjbContext
in class EjbComponentInstance
protected 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 void removeAllTimers()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.