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/doc/forrest/src/documentation/content/xdocs/docu/guides objectcache.xml
Date Mon, 07 Feb 2005 20:43:08 GMT
arminw      2005/02/07 12:43:08

  Modified:    src/doc/forrest/src/documentation/content/xdocs/docu/guides
                        Tag: OJB_1_0_RELEASE objectcache.xml
  Log:
  update docs
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.3   +13 -2     db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/guides/objectcache.xml
  
  Index: objectcache.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/guides/objectcache.xml,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- objectcache.xml	23 Jan 2005 03:09:13 -0000	1.1.2.2
  +++ objectcache.xml	7 Feb 2005 20:43:08 -0000	1.1.2.3
  @@ -705,7 +705,7 @@
                       </li>
                   </ul>
                   <source><![CDATA[
  -public class ObjectCacheOSCacheImpl implements ObjectCache
  +public class ObjectCacheOSCacheImpl implements ObjectCacheInternal
   {
       private Logger log = LoggerFactory.getLogger(ObjectCacheOSCacheImpl.class);
       private static GeneralCacheAdministrator admin = new GeneralCacheAdministrator();
  @@ -732,6 +732,11 @@
           }
       }
   
  +    public void doInternalCache(Identity oid, Object obj, int type)
  +    {
  +        cache(oid, obj);
  +    }
  +
       public boolean cacheIfNew(Identity oid, Object obj)
       {
           boolean result = false;
  @@ -802,6 +807,12 @@
       }
   }]]></source>
                   <p>
  +                    To allow usage of this implementation as application cache level in
the
  +                    <link href="#two-level">two-level cache</link> implement
the internal
  +                    object cache interface instead of the standard one.
  +
  +                </p>
  +                <p>
                       Now <em>OSCache</em> can be used by OJB as standalone cache
(by declaring the implementation
                       class on <link href="#changeImplementation">connection- or class-level</link>)
or as application
                       cache in the <link href="#two-level">two-level cache</link>.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message