You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2003/02/26 01:43:56 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/cache ObjectCacheDefaultImpl.java ObjectCacheEmptyImpl.java

arminw      2003/02/25 16:43:56

  Modified:    src/java/org/apache/ojb/broker/cache
                        ObjectCacheDefaultImpl.java
                        ObjectCacheEmptyImpl.java
  Log:
  fix bug, correct javadoc
  
  Revision  Changes    Path
  1.9       +2 -3      db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java
  
  Index: ObjectCacheDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheDefaultImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ObjectCacheDefaultImpl.java	19 Feb 2003 22:10:17 -0000	1.8
  +++ ObjectCacheDefaultImpl.java	26 Feb 2003 00:43:56 -0000	1.9
  @@ -90,7 +90,7 @@
       /**
        * the hashtable holding all cached object
        */
  -    protected static Map objectTable = null;
  +    protected static Map objectTable = new Hashtable();
   
       private long hitCount = 0;
       private long failCount = 0;
  @@ -101,7 +101,6 @@
        */
       public ObjectCacheDefaultImpl(PersistenceBroker broker)
       {
  -        objectTable = new Hashtable();
       }
   
       /**
  
  
  
  1.6       +4 -4      db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheEmptyImpl.java
  
  Index: ObjectCacheEmptyImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/ObjectCacheEmptyImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ObjectCacheEmptyImpl.java	19 Feb 2003 22:10:17 -0000	1.5
  +++ ObjectCacheEmptyImpl.java	26 Feb 2003 00:43:56 -0000	1.6
  @@ -63,8 +63,8 @@
   import java.util.HashMap;
   
   /**
  - * This implementation of ObjectCache does not do anything.
  - * It can be used in situations where caching is not possible.
  + * This is an 'empty' ObjectCache implementation.
  + * Useful when caching was not desired.
    * To support 'circular references' this implementation
    * use a temporary map while store and delete operation.
    *
  @@ -98,7 +98,7 @@
       }
   
       /**
  -     * @see org.apache.ojb.broker.cache.ObjectCache#remove(Object)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#remove(Identity)
        */
       public void remove(Identity oid)
       {