gdamour     2005/10/08 00:45:59

  Modified:    modules/openejb-builder/src/test/org/openejb/deployment/entity
                        BasicCMPEntityContainerTest.java
  Log:

  GERONIMO-188 Entity instance caching
  
  o The same FrontEndCacheDelegate needs to be shared across the CMP containers.
  
  o Add the repeatable-read isolation level.
  
  o findByPrimaryKey also queries the cache prior to hit the database.
  
  o Remove two redundant cache queries when retrieving CMP and CMR fields.
  
  Revision  Changes    Path
  1.16      +3 -1      
openejb/modules/openejb-builder/src/test/org/openejb/deployment/entity/BasicCMPEntityContainerTest.java
  
  Index: BasicCMPEntityContainerTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/entity/BasicCMPEntityContainerTest.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- BasicCMPEntityContainerTest.java  20 Aug 2005 03:49:08 -0000      1.15
  +++ BasicCMPEntityContainerTest.java  8 Oct 2005 04:45:59 -0000       1.16
  @@ -80,6 +80,7 @@
   import org.tranql.cache.CacheSlot;
   import org.tranql.cache.CacheTable;
   import org.tranql.cache.GlobalSchema;
  +import org.tranql.cache.cache.FrontEndCacheDelegate;
   import org.tranql.ejb.CMPField;
   import org.tranql.ejb.EJB;
   import org.tranql.ejb.EJBQueryBuilder;
  @@ -427,6 +428,7 @@
           builder.setSQLSchema(sqlSchema);
           builder.setGlobalSchema(globalSchema);
           builder.setComponentContext(new HashMap());
  +        builder.setFrontEndCacheDelegate(new FrontEndCacheDelegate());
   //        builder.setConnectionFactoryName("defaultDatasource");
   
           EJBProxyFactory proxyFactory = new 
EJBProxyFactory(CONTAINER_NAME.getCanonicalName(), false, MockRemote.class, 
MockHome.class, MockLocal.class, MockLocalHome.class);
  
  
  

Reply via email to