db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/cache CacheFilterClassImpl.java CacheFilterPackageImpl.java
Date Thu, 12 Jun 2003 17:24:14 GMT
arminw      2003/06/12 10:24:13

  Modified:    src/java/org/apache/ojb/broker/cache
                        CacheFilterClassImpl.java
                        CacheFilterPackageImpl.java
  Log:
  use real object instead top-level
  object
  
  Revision  Changes    Path
  1.3       +2 -2      db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java
  
  Index: CacheFilterClassImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CacheFilterClassImpl.java	12 Jun 2003 16:49:15 -0000	1.2
  +++ CacheFilterClassImpl.java	12 Jun 2003 17:24:13 -0000	1.3
  @@ -36,7 +36,7 @@
   
       public boolean beforeCache(Identity oid, Object obj)
       {
  -        String cacheable = broker.getClassDescriptor(oid.getObjectsTopLevelClass()).getAttribute(CACHEABLE);
  +        String cacheable = broker.getClassDescriptor(oid.getObjectsRealClass()).getAttribute(CACHEABLE);
           if (cacheable == null || (new Boolean(cacheable)).booleanValue())
           {
               return true;
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterPackageImpl.java
  
  Index: CacheFilterPackageImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterPackageImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CacheFilterPackageImpl.java	12 Jun 2003 16:49:15 -0000	1.4
  +++ CacheFilterPackageImpl.java	12 Jun 2003 17:24:13 -0000	1.5
  @@ -52,7 +52,7 @@
                   getConnectionDescriptor().getAttribute(EXCLUDE_PACKAGES);
           filterPackages = broker.getDescriptorRepository().getAttribute(EXCLUDE_PACKAGES)
+
                   (filterPackages != null ? COMMA + filterPackages : "");
  -        return matchFilterPackages(filterPackages, oid.getObjectsTopLevelClass());
  +        return matchFilterPackages(filterPackages, oid.getObjectsRealClass());
       }
   
       public boolean beforeLookup(Identity oid)
  
  
  

Mime
View raw message