public class StatefulSessionComponentInstance extends SessionBeanComponentInstance implements Identifiable<org.jboss.ejb.client.SessionID>, Contextual<Object>
| Modifier and Type | Field and Description |
|---|---|
static int |
SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED |
static int |
SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT |
static int |
SYNC_STATE_INVOCATION_IN_PROGRESS |
static int |
SYNC_STATE_NO_INVOCATION |
INSTANCE_KEY| Modifier | Constructor and Description |
|---|---|
protected |
StatefulSessionComponentInstance(StatefulSessionComponent component,
org.jboss.invocation.Interceptor preDestroyInterceptor,
Map<Method,org.jboss.invocation.Interceptor> methodInterceptors,
Map<Object,Object> context)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterBegin() |
protected void |
afterCompletion(boolean committed) |
protected void |
beforeCompletion() |
void |
discard() |
Object |
getCacheContext()
Returns the cache context of this cached object.
|
StatefulSessionComponent |
getComponent() |
org.jboss.invocation.Interceptor |
getEjb2XRemoveInterceptor() |
org.jboss.ejb.client.SessionID |
getId()
The object identifier.
|
Transaction |
getTransaction() |
protected void |
postActivate() |
protected void |
prePassivate() |
void |
setCacheContext(Object context)
Sets the cache context of this cached object.
|
void |
setTransaction(Transaction transaction) |
String |
toString() |
Object |
writeReplace() |
getEjbContextisDiscardedallowedMethods, constructionFinished, destroy, getInstance, getInstanceData, getInterceptor, preDestroy, prepareInterceptorContext, setInstanceDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremoveCacheContextpublic static final int SYNC_STATE_NO_INVOCATION
public static final int SYNC_STATE_INVOCATION_IN_PROGRESS
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_NO_COMMIT
public static final int SYNC_STATE_AFTER_COMPLETE_DELAYED_COMMITTED
protected StatefulSessionComponentInstance(StatefulSessionComponent component, org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
component - the componentprotected void afterBegin()
protected void afterCompletion(boolean committed)
protected void beforeCompletion()
protected void prePassivate()
protected void postActivate()
public void discard()
discard in class EjbComponentInstancepublic StatefulSessionComponent getComponent()
getComponent in interface ComponentInstancegetComponent in class SessionBeanComponentInstancepublic org.jboss.ejb.client.SessionID getId()
IdentifiablegetId in interface Identifiable<org.jboss.ejb.client.SessionID>getId in class SessionBeanComponentInstancepublic org.jboss.invocation.Interceptor getEjb2XRemoveInterceptor()
public Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionpublic Transaction getTransaction()
public void setTransaction(Transaction transaction)
public Object getCacheContext()
ContextualgetCacheContext in interface Contextual<Object>public void setCacheContext(Object context)
ContextualsetCacheContext in interface Contextual<Object>context - a cache contextCopyright © 2018 JBoss by Red Hat. All rights reserved.