db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/singlevm PersistenceBrokerImpl.java
Date Sat, 11 Jan 2003 19:48:37 GMT
brj         2003/01/11 11:48:37

  Modified:    src/java/org/apache/ojb/broker/singlevm
                        PersistenceBrokerImpl.java
  Log:
  support for new ListProxy
  
  Revision  Changes    Path
  1.110     +9 -2      jakarta-ojb/src/java/org/apache/ojb/broker/singlevm/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/singlevm/PersistenceBrokerImpl.java,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- PersistenceBrokerImpl.java	10 Jan 2003 17:04:35 -0000	1.109
  +++ PersistenceBrokerImpl.java	11 Jan 2003 19:48:37 -0000	1.110
  @@ -1333,7 +1333,14 @@
   
           if (lazy)
           {
  -            result = new CollectionProxy(getPBKey(), collectionClass, query);
  +            if (List.class.isAssignableFrom(collectionClass))
  +            {
  +                result = new ListProxy(getPBKey(), collectionClass, query);
  +            }
  +            else
  +            {
  +                result = new CollectionProxy(getPBKey(), collectionClass, query);
  +            }
           }
           else
           {
  
  
  

Mime
View raw message