portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/pb PBStore.java
Date Fri, 05 Mar 2004 17:04:27 GMT
weaver      2004/03/05 09:04:27

  Modified:    components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/pb
                        PBStore.java
  Log:
  new PersistenceBroker not being set
  
  Revision  Changes    Path
  1.3       +8 -8      jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/pb/PBStore.java
  
  Index: PBStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/persistence/src/java/org/apache/jetspeed/components/persistence/store/ojb/pb/PBStore.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PBStore.java	4 Mar 2004 22:11:00 -0000	1.2
  +++ PBStore.java	5 Mar 2004 17:04:27 -0000	1.3
  @@ -148,7 +148,7 @@
           {
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               return pb.getCollectionByQuery((Query) query);
           }
  @@ -177,7 +177,7 @@
           {
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               return pb.getObjectByQuery((Query) query);
           }
  @@ -205,7 +205,7 @@
           {
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               return pb.getObjectByIdentity(new Identity(object, pb));
           }
  @@ -231,7 +231,7 @@
       {
           if (pb.isClosed())
           {
  -            PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +            pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
           }
           return pb.getCount((Query) query);
          
  @@ -247,7 +247,7 @@
           {
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               return pb.getIteratorByQuery((Query) query);
           }
  @@ -345,7 +345,7 @@
               invoker.beforeMakePersistent();
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               pb.store(obj);
               invoker.afterMakePersistent();
  @@ -383,7 +383,7 @@
           {
               if(pb.isClosed())
               {
  -                PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +                pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
               }
               return pb.getCollectionByQuery(QueryFactory.newQuery(clazz, new Criteria()));
           }
  @@ -407,7 +407,7 @@
       {
           if(pb.isClosed())
           {
  -            PersistenceBrokerFactory.createPersistenceBroker(pbKey);
  +            pb = PersistenceBrokerFactory.createPersistenceBroker(pbKey);
           }
           pb.clearCache();
       }
  
  
  

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


Mime
View raw message