org.openejb.entity.cmp
Class CMPInstanceContext

java.lang.Object
  extended byorg.openejb.AbstractInstanceContext
      extended byorg.openejb.entity.EntityInstanceContext
          extended byorg.openejb.entity.cmp.CMPInstanceContext
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, EJBInstanceContext, org.apache.geronimo.transaction.InstanceContext, net.sf.cglib.proxy.MethodInterceptor

public final class CMPInstanceContext
extends EntityInstanceContext
implements net.sf.cglib.proxy.MethodInterceptor

Version:
$Revision: 1.12 $ $Date: 2004/07/20 23:40:02 $

Field Summary
 
Fields inherited from class org.openejb.AbstractInstanceContext
instance, setContextInvocation, systemChain, unsetContextInvocation
 
Constructor Summary
CMPInstanceContext(Object containerId, EJBProxyFactory proxyFactory, InstanceOperation[] itable, org.tranql.cache.FaultHandler loadFault, org.tranql.identity.IdentityTransform primaryKeyTransform, CMPInstanceContextFactory contextFactory, org.apache.geronimo.core.service.Interceptor lifecycleInterceptorChain, SystemMethodIndices systemMethodIndices, Set unshareableResources, Set applicationManagedSecurityResources, BasicTimerService timerService)
           
 
Method Summary
 void addRelation(int slot, Object primaryKey)
           
 void afterCommit(boolean status)
           
 void associate()
           
 void flush()
           
 org.tranql.cache.CacheRow getCacheRow()
           
 org.apache.geronimo.transaction.context.TransactionContext getTransactionContext()
           
 Object intercept(Object o, Method method, Object[] objects, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 void removeRelation(int slot, Object primaryKey)
           
 void setCacheRow(org.tranql.cache.CacheRow cacheRow)
           
 void setTransactionContext(org.apache.geronimo.transaction.context.TransactionContext transactionContext)
           
 
Methods inherited from class org.openejb.entity.EntityInstanceContext
beforeCommit, getContainerId, getEntityContext, getId, isStateValid, setId, setOperation, setStateValid
 
Methods inherited from class org.openejb.AbstractInstanceContext
ejbActivate, ejbPassivate, getApplicationManagedSecurityResources, getConnectionManagerMap, getInstance, getProxyFactory, getTimerService, getUnshareableResources, setContext, unsetContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMPInstanceContext

public CMPInstanceContext(Object containerId,
                          EJBProxyFactory proxyFactory,
                          InstanceOperation[] itable,
                          org.tranql.cache.FaultHandler loadFault,
                          org.tranql.identity.IdentityTransform primaryKeyTransform,
                          CMPInstanceContextFactory contextFactory,
                          org.apache.geronimo.core.service.Interceptor lifecycleInterceptorChain,
                          SystemMethodIndices systemMethodIndices,
                          Set unshareableResources,
                          Set applicationManagedSecurityResources,
                          BasicTimerService timerService)
                   throws Exception
Method Detail

getCacheRow

public org.tranql.cache.CacheRow getCacheRow()

setCacheRow

public void setCacheRow(org.tranql.cache.CacheRow cacheRow)

getTransactionContext

public org.apache.geronimo.transaction.context.TransactionContext getTransactionContext()

setTransactionContext

public void setTransactionContext(org.apache.geronimo.transaction.context.TransactionContext transactionContext)
Overrides:
setTransactionContext in class EntityInstanceContext

intercept

public Object intercept(Object o,
                        Method method,
                        Object[] objects,
                        net.sf.cglib.proxy.MethodProxy methodProxy)
                 throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable

associate

public void associate()
               throws Throwable
Specified by:
associate in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
associate in class EntityInstanceContext
Throws:
Throwable

flush

public void flush()
           throws Throwable
Specified by:
flush in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
flush in class EntityInstanceContext
Throws:
Throwable

afterCommit

public void afterCommit(boolean status)
Specified by:
afterCommit in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
afterCommit in class EntityInstanceContext

addRelation

public void addRelation(int slot,
                        Object primaryKey)

removeRelation

public void removeRelation(int slot,
                           Object primaryKey)


Copyright © 1999-2005 OpenEJB. All Rights Reserved.