db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegn...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core QueryReferenceBroker.java
Date Sun, 28 Dec 2003 18:13:14 GMT
olegnitz    2003/12/28 10:13:14

  Modified:    src/java/org/apache/ojb/broker/core
                        QueryReferenceBroker.java
  Log:
  Batch retrieval and proxy prefetching for M:N relations
  
  Revision  Changes    Path
  1.5       +4 -4      db-ojb/src/java/org/apache/ojb/broker/core/QueryReferenceBroker.java
  
  Index: QueryReferenceBroker.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/QueryReferenceBroker.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- QueryReferenceBroker.java	13 Dec 2003 17:35:43 -0000	1.4
  +++ QueryReferenceBroker.java	28 Dec 2003 18:13:14 -0000	1.5
  @@ -495,8 +495,8 @@
       {
           if (forced || cds.getCascadeRetrieve())
           {
  -            if ((m_retrievalTasks != null) && !cds.isLazy() 
  -                    && !cds.isMtoNRelation() && !cds.hasProxyItems()
  +            if ((m_retrievalTasks != null) && !cds.isLazy()
  +                    && !cds.hasProxyItems()
                       && (cds.getQueryCustomizer() == null))
               {
                   addRetrievalTask(obj, cds);
  @@ -541,7 +541,7 @@
   
                   if (prefetchProxies && (m_retrievalTasks != null)
                           && (cds.getProxyPrefetchingLimit() > 0)
  -                        && !cds.isMtoNRelation() && (cds.getQueryCustomizer()
== null)
  +                        && (cds.getQueryCustomizer() == null)
                           && (value instanceof CollectionProxy))
                   {
                       if (addRetrievalTask(obj, cds))
  
  
  

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