db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer CollectionProxy.java
Date Thu, 19 Jun 2003 11:26:00 GMT
thma        2003/06/19 04:26:00

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        CollectionProxy.java
  Log:
  make it work properly with RemovalAwareCollections
  
  Revision  Changes    Path
  1.21      +9 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/CollectionProxy.java
  
  Index: CollectionProxy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/CollectionProxy.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- CollectionProxy.java	17 Jun 2003 17:52:13 -0000	1.20
  +++ CollectionProxy.java	19 Jun 2003 11:26:00 -0000	1.21
  @@ -428,9 +428,16 @@
   	{
   		return iterator();
   	}
  -
  +    /**
  +     * @see org.apache.ojb.broker.ManageableCollection#afterStore(PersistenceBroker broker)
  +     */
       public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException
       {
  +    	// If the real subject is a ManageableCollection
  +    	// the afterStore() callback must be invoked !
  +        Collection c = getData();
  +        if (c instanceof ManageableCollection)
  +             ((ManageableCollection) c).afterStore(broker);
       }
   
       /**
  
  
  

Mime
View raw message