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/odmg/states ModificationState.java
Date Fri, 11 Apr 2003 22:02:20 GMT
arminw      2003/04/11 15:02:20

  Modified:    src/java/org/apache/ojb/odmg ObjectEnvelopeTable.java
               src/java/org/apache/ojb/odmg/states ModificationState.java
  Log:
  remove lines without effect
  
  Revision  Changes    Path
  1.22      +1 -6      db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelopeTable.java
  
  Index: ObjectEnvelopeTable.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelopeTable.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ObjectEnvelopeTable.java	25 Mar 2003 12:03:11 -0000	1.21
  +++ ObjectEnvelopeTable.java	11 Apr 2003 22:02:20 -0000	1.22
  @@ -199,7 +199,7 @@
               if (t instanceof OptimisticLockException)
               {
   	            // PB OptimisticLockException should be clearly signalled to the user
  -            	throw new LockNotGrantedException(t.getMessage());	
  +            	throw new LockNotGrantedException(t.getMessage());
               }
   			else
   			{
  @@ -226,11 +226,6 @@
               while (iter.hasNext())
               {
                   ObjectEnvelope mod = (ObjectEnvelope) mhtObjectEnvelopes.get(iter.next());
  -                // in a distributed environment all broker caches must invalidate modified
Objects
  -                if (mod.needsDelete() || mod.needsInsert() || mod.needsUpdate())
  -                {
  -                    broker.invalidate(new Identity(mod.getObject(), transaction.getBroker()));
  -                }
                   mod.getModificationState().commit(mod, broker);
               }
           }
  
  
  
  1.5       +0 -1      db-ojb/src/java/org/apache/ojb/odmg/states/ModificationState.java
  
  Index: ModificationState.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/states/ModificationState.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ModificationState.java	24 Jan 2003 22:44:10 -0000	1.4
  +++ ModificationState.java	11 Apr 2003 22:02:20 -0000	1.5
  @@ -141,7 +141,6 @@
           try
           {
               broker.removeFromCache(objToBeRemoved);
  -            broker.invalidate(new Identity(objToBeRemoved, broker));
           }
           catch (PersistenceBrokerException e)
           {
  
  
  

Mime
View raw message