db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb release-notes.txt
Date Mon, 18 Oct 2004 18:52:08 GMT
brj         2004/10/18 11:52:08

  Modified:    src/java/org/apache/ojb/broker/util/collections
                        RemovalAwareList.java ManageableHashMap.java
                        ManageableArrayList.java ManageableTreeSet.java
                        IRemovalAwareCollection.java ManageableHashSet.java
                        ManageableVector.java RemovalAwareCollection.java
               src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
               src/java/org/apache/ojb/broker ManageableCollection.java
               src/java/org/apache/ojb/broker/core/proxy
                        CollectionProxyDefaultImpl.java
               .        release-notes.txt
  Log:
  moved afterStore() from ManageableCollection to IRemovalAwareCollection
  
  Revision  Changes    Path
  1.6       +13 -3     db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareList.java
  
  Index: RemovalAwareList.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareList.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RemovalAwareList.java	15 Sep 2004 18:12:51 -0000	1.5
  +++ RemovalAwareList.java	18 Oct 2004 18:52:07 -0000	1.6
  @@ -15,6 +15,8 @@
    */
   import org.apache.ojb.broker.PersistenceBroker;
   import org.apache.ojb.broker.PersistenceBrokerException;
  +import org.apache.ojb.broker.metadata.CollectionDescriptor;
  +import org.apache.ojb.broker.metadata.ObjectReferenceDescriptor;
   
   import java.util.Iterator;
   import java.util.Vector;
  @@ -31,13 +33,20 @@
    */
   public class RemovalAwareList extends ManageableArrayList implements IRemovalAwareCollection
   {
  +    private static final long serialVersionUID = -4899252835689606974L;
  +
       private Vector allObjectsToBeRemoved = new Vector();
   
       /**
  -     * @see org.apache.ojb.broker.ManageableCollection#afterStore(PersistenceBroker broker)
  +     * @see org.apache.ojb.broker.IRemovalAwareCollection#afterStore(PersistenceBroker,
CollectionDescriptor)
        */
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  +    public void afterStore(PersistenceBroker broker, CollectionDescriptor cod) throws PersistenceBrokerException
       {
  +        if (cod.getCascadingStore() != ObjectReferenceDescriptor.CASCADE_OBJECT)
  +        {
  +            return;
  +        }
  +        
           // make sure allObjectsToBeRemoved does not contain
           // any instances that got re-added to the list
           allObjectsToBeRemoved.removeAll(this);
  @@ -45,6 +54,7 @@
           Iterator iter = allObjectsToBeRemoved.iterator();
           while (iter.hasNext())
           {
  +            // @todo: once a PB instance is available as a callback parameter we should
use it!
               broker.delete(iter.next());
           }
           allObjectsToBeRemoved.clear();
  
  
  
  1.7       +14 -10    db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashMap.java
  
  Index: ManageableHashMap.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashMap.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ManageableHashMap.java	22 May 2004 09:51:25 -0000	1.6
  +++ ManageableHashMap.java	18 Oct 2004 18:52:07 -0000	1.7
  @@ -14,21 +14,24 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  +import java.util.HashMap;
  +import java.util.Iterator;
  +
   import org.apache.ojb.broker.ManageableCollection;
  -import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.PersistenceBrokerException;
   import org.apache.ojb.broker.PersistenceBrokerFactory;
   import org.apache.ojb.broker.metadata.ClassDescriptor;
   
  -import java.util.HashMap;
  -import java.util.Iterator;
  -
   
   /**
    * Creates a Map where the primary key is the map key, and the object is the map value
    */
   public class ManageableHashMap extends HashMap implements ManageableCollection
   {
  +    private static final long serialVersionUID = -2978724878910447122L;
  +
  +    /**
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbAdd(java.lang.Object)
  +     */
   	public void ojbAdd(Object anObject)
   	{
   		if (anObject != null)
  @@ -39,6 +42,9 @@
   		}
   	}
   
  +	/**
  +	 * @see org.apache.ojb.broker.ManageableCollection#ojbAddAll(org.apache.ojb.broker.ManageableCollection)
  +	 */
   	public void ojbAddAll(ManageableCollection otherCollection)
   	{
   		Iterator it = otherCollection.ojbIterator();
  @@ -48,13 +54,11 @@
   		}
   	}
   
  +	/**
  +	 * @see org.apache.ojb.broker.ManageableCollection#ojbIterator()
  +	 */
   	public Iterator ojbIterator()
   	{
   		return values().iterator();
  -	}
  -
  -	public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  -	{
  -        //do nothing
   	}
   }
  
  
  
  1.8       +5 -10     db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableArrayList.java
  
  Index: ManageableArrayList.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ManageableArrayList.java	22 May 2004 09:51:25 -0000	1.7
  +++ ManageableArrayList.java	18 Oct 2004 18:52:07 -0000	1.8
  @@ -15,13 +15,11 @@
    * limitations under the License.
    */
   
  -import org.apache.ojb.broker.ManageableCollection;
  -import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.PersistenceBrokerException;
  -
   import java.util.ArrayList;
   import java.util.Iterator;
   
  +import org.apache.ojb.broker.ManageableCollection;
  +
   /**
    * is a utility class. provides an ArrayList that addionally implements
    * the ManageableCollection interface. This class may be used
  @@ -32,6 +30,8 @@
    */
   public class ManageableArrayList extends ArrayList implements ManageableCollection
   {
  +    private static final long serialVersionUID = -136869193213411304L;
  +
       /**
        * add a single Object to the Collection. This method is used during reading Collection
elements
        * from the database. Thus it is is save to cast anObject to the underlying element
type of the
  @@ -49,11 +49,6 @@
       public void ojbAddAll(ManageableCollection otherCollection)
       {
           this.addAll((ManageableArrayList) otherCollection);
  -    }
  -
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  -    {
  -        //do nothing
       }
   
       /**
  
  
  
  1.2       +6 -16     db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableTreeSet.java
  
  Index: ManageableTreeSet.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableTreeSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ManageableTreeSet.java	23 Jul 2004 07:28:54 -0000	1.1
  +++ ManageableTreeSet.java	18 Oct 2004 18:52:07 -0000	1.2
  @@ -15,12 +15,10 @@
   * limitations under the License.
   */
   
  -import java.util.TreeSet;
   import java.util.Iterator;
  +import java.util.TreeSet;
   
   import org.apache.ojb.broker.ManageableCollection;
  -import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.PersistenceBrokerException;
   
   /**
   * is a utility class. provides a SortedSet that addionally implements
  @@ -31,10 +29,10 @@
   */
   public class ManageableTreeSet extends TreeSet implements ManageableCollection
   {
  +   private static final long serialVersionUID = 567887377088890892L;
  +
      /**
  -    * add a single Object to the Collection. This method is used during reading Collection
elements
  -    * from the database. Thus it is is save to cast anObject to the underlying element
type of the
  -    * collection.
  +    * @see org.apache.ojb.broker.ManageableCollection#ojbAdd(java.lang.Object)
       */
      public void ojbAdd(Object anObject)
      {
  @@ -42,23 +40,15 @@
      }
   
      /**
  -    * adds a Collection to this collection. Used in reading Extents from the Database.
  -    * Thus it is save to cast otherCollection to this.getClass().
  +    * @see org.apache.ojb.broker.ManageableCollection#ojbAddAll(org.apache.ojb.broker.ManageableCollection)
       */
      public void ojbAddAll(ManageableCollection otherCollection)
      {
          super.addAll((ManageableTreeSet) otherCollection);
      }
   
  -   public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  -   {
  -       //do nothing
  -   }
  -
      /**
  -    * returns an Iterator over all elements in the collection. Used during store and delete
Operations.
  -    * If the implementor does not return an iterator over ALL elements, OJB cannot store
and delete all elements properly.
  -    *
  +    * @see org.apache.ojb.broker.ManageableCollection#ojbIterator()
       */
      public Iterator ojbIterator()
      {
  
  
  
  1.2       +15 -2     db-ojb/src/java/org/apache/ojb/broker/util/collections/IRemovalAwareCollection.java
  
  Index: IRemovalAwareCollection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/IRemovalAwareCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IRemovalAwareCollection.java	30 Apr 2004 20:14:24 -0000	1.1
  +++ IRemovalAwareCollection.java	18 Oct 2004 18:52:07 -0000	1.2
  @@ -1,5 +1,9 @@
   package org.apache.ojb.broker.util.collections;
   
  +import org.apache.ojb.broker.PersistenceBroker;
  +import org.apache.ojb.broker.PersistenceBrokerException;
  +import org.apache.ojb.broker.metadata.CollectionDescriptor;
  +
   /* Copyright 2003-2004 The Apache Software Foundation
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
  @@ -17,10 +21,19 @@
   
   
   /**
  - * MarkerInterface for RemovableAwareCollections
  + * Interface for RemovableAwareCollections
    * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
    * @version $Id$
    */
   public interface IRemovalAwareCollection 
   {
  +    /**
  +     * A callback method to implement 'removal-aware' (track removed objects and delete
  +     * them by its own) collection implementations.
  +     * @param broker the broker
  +     * @param cod the collection-descriptor
  +     * @throws PersistenceBrokerException
  +     */
  +    public void afterStore(PersistenceBroker broker, CollectionDescriptor cod) throws PersistenceBrokerException;
  +
   }
  
  
  
  1.8       +6 -14     db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashSet.java
  
  Index: ManageableHashSet.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashSet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ManageableHashSet.java	22 May 2004 09:51:25 -0000	1.7
  +++ ManageableHashSet.java	18 Oct 2004 18:52:07 -0000	1.8
  @@ -32,10 +32,10 @@
    */
   public class ManageableHashSet extends HashSet implements ManageableCollection
   {
  +    private static final long serialVersionUID = 1355425172634396407L;
  +
       /**
  -     * add a single Object to the Collection. This method is used during reading Collection
elements
  -     * from the database. Thus it is is save to cast anObject to the underlying element
type of the
  -     * collection.
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbAdd(java.lang.Object)
        */
       public void ojbAdd(Object anObject)
       {
  @@ -43,23 +43,15 @@
       }
   
       /**
  -     * adds a Collection to this collection. Used in reading Extents from the Database.
  -     * Thus it is save to cast otherCollection to this.getClass().
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbAddAll(org.apache.ojb.broker.ManageableCollection)
        */
       public void ojbAddAll(ManageableCollection otherCollection)
       {
           super.addAll((ManageableHashSet) otherCollection);
       }
   
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  -    {
  -        //do nothing
  -    }
  -
       /**
  -     * returns an Iterator over all elements in the collection. Used during store and delete
Operations.
  -     * If the implementor does not return an iterator over ALL elements, OJB cannot store
and delete all elements properly.
  -     *
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbIterator()
        */
       public Iterator ojbIterator()
       {
  
  
  
  1.8       +8 -18     db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableVector.java
  
  Index: ManageableVector.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableVector.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ManageableVector.java	22 May 2004 09:51:25 -0000	1.7
  +++ ManageableVector.java	18 Oct 2004 18:52:07 -0000	1.8
  @@ -15,13 +15,11 @@
    * limitations under the License.
    */
   
  -import org.apache.ojb.broker.ManageableCollection;
  -import org.apache.ojb.broker.PersistenceBroker;
  -import org.apache.ojb.broker.PersistenceBrokerException;
  -
   import java.util.Iterator;
   import java.util.Vector;
   
  +import org.apache.ojb.broker.ManageableCollection;
  +
   /**
    * is a utility class. provides a Vector that addionally implements
    * the ManageableCollection interface. This class may be used
  @@ -32,10 +30,10 @@
    */
   public class ManageableVector extends Vector implements ManageableCollection
   {
  +    private static final long serialVersionUID = -6552515676488758660L;
  +
       /**
  -     * add a single Object to the Collection. This method is used during reading Collection
elements
  -     * from the database. Thus it is is save to cast anObject to the underlying element
type of the
  -     * collection.
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbAdd(java.lang.Object)
        */
       public void ojbAdd(Object anObject)
       {
  @@ -43,23 +41,15 @@
       }
   
       /**
  -     * adds a Collection to this collection. Used in reading Extents from the Database.
  -     * Thus it is save to cast otherCollection to this.getClass().
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbAddAll(org.apache.ojb.broker.ManageableCollection)
        */
       public void ojbAddAll(ManageableCollection otherCollection)
       {
           this.addAll((ManageableVector) otherCollection);
       }
   
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  -    {
  -        //do nothing
  -    }
  -
       /**
  -     * returns an Iterator over all elements in the collection. Used during store and delete
Operations.
  -     * If the implementor does not return an iterator over ALL elements, OJB cannot store
and delete all elements properly.
  -     *
  +     * @see org.apache.ojb.broker.ManageableCollection#ojbIterator()
        */
       public Iterator ojbIterator()
       {
  
  
  
  1.9       +12 -3     db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareCollection.java
  
  Index: RemovalAwareCollection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareCollection.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- RemovalAwareCollection.java	15 Sep 2004 18:12:51 -0000	1.8
  +++ RemovalAwareCollection.java	18 Oct 2004 18:52:07 -0000	1.9
  @@ -17,6 +17,8 @@
   
   import org.apache.ojb.broker.PersistenceBroker;
   import org.apache.ojb.broker.PersistenceBrokerException;
  +import org.apache.ojb.broker.metadata.CollectionDescriptor;
  +import org.apache.ojb.broker.metadata.ObjectReferenceDescriptor;
   
   import java.util.Iterator;
   import java.util.Vector;
  @@ -33,13 +35,20 @@
    */
   public class RemovalAwareCollection extends ManageableVector implements IRemovalAwareCollection
   {
  +    private static final long serialVersionUID = 4592512000565875203L;
  +
       private Vector allObjectsToBeRemoved = new Vector();
   
       /**
  -     * @see org.apache.ojb.broker.ManageableCollection#afterStore(PersistenceBroker broker)
  +     * @see org.apache.ojb.broker.IRemovalAwareCollection#afterStore(PersistenceBroker,
CollectionDescriptor)
        */
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  +    public void afterStore(PersistenceBroker broker, CollectionDescriptor cod) throws PersistenceBrokerException
       {
  +        if (cod.getCascadingStore() != ObjectReferenceDescriptor.CASCADE_OBJECT)
  +        {
  +            return;
  +        }
  +
           // make sure allObjectsToBeRemoved does not contain
           // any instances that got re-added to the list
           allObjectsToBeRemoved.removeAll(this);
  
  
  
  1.95      +5 -6      db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- PersistenceBrokerImpl.java	20 Sep 2004 14:32:25 -0000	1.94
  +++ PersistenceBrokerImpl.java	18 Oct 2004 18:52:08 -0000	1.95
  @@ -67,6 +67,7 @@
   import org.apache.ojb.broker.util.BrokerHelper;
   import org.apache.ojb.broker.util.IdentityArrayList;
   import org.apache.ojb.broker.util.ObjectModification;
  +import org.apache.ojb.broker.util.collections.IRemovalAwareCollection;
   import org.apache.ojb.broker.util.logging.Logger;
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   import org.apache.ojb.broker.util.sequence.SequenceManager;
  @@ -815,12 +816,10 @@
                       storeAndLinkOneToMany(false, obj, cod, referencedObjects, insert);
                   }
   
  -                // BRJ: only when auto-update = object (CASCADE_OBJECT)
  -                // 
  -                if ((cod.getCascadingStore() == ObjectReferenceDescriptor.CASCADE_OBJECT)
  -                        && (referencedObjects instanceof ManageableCollection))
  +                // invoke callback on collection
  +                if (referencedObjects instanceof IRemovalAwareCollection)
                   {
  -                    ((ManageableCollection) referencedObjects).afterStore(this);
  +                    ((IRemovalAwareCollection) referencedObjects).afterStore(this, cod);
                   }
               }
           }
  
  
  
  1.8       +8 -12     db-ojb/src/java/org/apache/ojb/broker/ManageableCollection.java
  
  Index: ManageableCollection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/ManageableCollection.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ManageableCollection.java	4 Apr 2004 23:53:30 -0000	1.7
  +++ ManageableCollection.java	18 Oct 2004 18:52:08 -0000	1.8
  @@ -29,30 +29,26 @@
    */
   public interface ManageableCollection extends java.io.Serializable
   {
  -	static final long serialVersionUID = -4324379872849598226L;
       /**
  -     * add a single Object to the Collection. This method is used during reading Collection
elements
  +     * Add a single Object to the Collection. This method is used during reading Collection
elements
        * from the database. Thus it is is save to cast anObject to the underlying element
type of the
        * collection.
  +     * @param anObject the object to be added
        */
       void ojbAdd(Object anObject);
   
       /**
  -     * adds a Collection to this collection. Used in reading Extents from the Database.
  +     * Adds a Collection to this collection. Used in reading Extents from the Database.
        * Thus it is save to cast otherCollection to this.getClass().
  -     */
  +     * @param otherCollection the collection to be added
  +     */   
       void ojbAddAll(ManageableCollection otherCollection);
   
       /**
  -     * returns an Iterator over all elements in the collection. Used during store and delete
Operations.
  +     * Returns an Iterator over all elements in the collection. Used during store and delete
Operations.
        * If the implementor does not return an iterator over ALL elements, OJB cannot store
and delete all elements properly.
  -     *
  +     * @return the iterator
        */
       Iterator ojbIterator();
   
  -    /**
  -     * A callback method to implement 'removal-aware' (track removed objects and delete
  -     * them by its own) collection implementations.
  -     */
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException;
   }
  
  
  
  1.10      +10 -7     db-ojb/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
  
  Index: CollectionProxyDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CollectionProxyDefaultImpl.java	25 Sep 2004 14:54:56 -0000	1.9
  +++ CollectionProxyDefaultImpl.java	18 Oct 2004 18:52:08 -0000	1.10
  @@ -27,6 +27,7 @@
   import org.apache.ojb.broker.PersistenceBrokerException;
   import org.apache.ojb.broker.PersistenceBrokerFactory;
   import org.apache.ojb.broker.core.PersistenceBrokerThreadMapping;
  +import org.apache.ojb.broker.metadata.CollectionDescriptor;
   import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.broker.util.collections.IRemovalAwareCollection;
   import org.apache.ojb.broker.util.collections.RemovalAwareCollection;
  @@ -38,7 +39,8 @@
    * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
    * @version $Id$
    */
  -public class CollectionProxyDefaultImpl implements Collection, ManageableCollection, CollectionProxy
  +public class CollectionProxyDefaultImpl 
  +	implements Collection, ManageableCollection, IRemovalAwareCollection, CollectionProxy
   {
       private static final long serialVersionUID = -6505291808050247424L;
   
  @@ -54,6 +56,7 @@
       private Class _collectionClass;
       /** The number of objects */
       private int _size = -1;
  +    
       /*
       arminw
       fix a bug, caused by closing PB instances
  @@ -490,17 +493,17 @@
       }
   
       /**
  -     * @see org.apache.ojb.broker.ManageableCollection#afterStore(PersistenceBroker broker)
  +     * @see org.apache.ojb.broker.IRemovalAwareCollection#afterStore(PersistenceBroker,
CollectionDescriptor)
        */
  -    public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
  +    public void afterStore(PersistenceBroker broker, CollectionDescriptor cod) throws PersistenceBrokerException
       {
  -        // If the real subject is a ManageableCollection
  +        // If the real subject is a IRemovalAwareCollection
           // the afterStore() callback must be invoked !
           Collection c = getData();
   
  -        if (c instanceof ManageableCollection)
  +        if (c instanceof IRemovalAwareCollection)
           {
  -            ((ManageableCollection)c).afterStore(broker);
  +            ((IRemovalAwareCollection)c).afterStore(broker, cod);
           }
       }
   
  
  
  
  1.65      +4 -1      db-ojb/release-notes.txt
  
  Index: release-notes.txt
  ===================================================================
  RCS file: /home/cvs/db-ojb/release-notes.txt,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- release-notes.txt	15 Sep 2004 17:18:45 -0000	1.64
  +++ release-notes.txt	18 Oct 2004 18:52:08 -0000	1.65
  @@ -18,6 +18,7 @@
   
   CHANGES:
   
  +- Moved method afterStore() from ManageableCollection to IRemovalAwareCollection
   - replaced ojbConcreteClass by a discriminator-descriptor:
   
    <class-descriptor
  @@ -62,6 +63,8 @@
   
   BUG FIXES:
   
  +- fixed OJB297
  +- fixed OJB296
   - fixed issue with CollectionProxy and RemovalAwareCollection
   - RemovalAwareCollection is no longer the default collection-class for m:n-relationships
   - ManageableCollection#afterStore is only called if cascadeStoring is CASCADE_OBJECT
  
  
  

---------------------------------------------------------------------
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