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/broker/accesslayer RsIterator.java
Date Tue, 11 Nov 2003 00:03:43 GMT
arminw      2003/11/10 16:03:43

  Modified:    src/java/org/apache/ojb/broker/accesslayer RsIterator.java
  Log:
  avoid logging overkill, log ClassDescriptor name
  instead of the whole ClassDescriptor (with all
  FieldDescriptor ...) in RsIterator constructor
  
  Revision  Changes    Path
  1.46      +9 -5      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java
  
  Index: RsIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- RsIterator.java	25 Oct 2003 23:59:26 -0000	1.45
  +++ RsIterator.java	11 Nov 2003 00:03:43 -0000	1.46
  @@ -177,7 +177,7 @@
           m_cld = mif;
   
           Class classToPrefetch = broker.getClassToPrefetch();
  -        if ((classToPrefetch != null) 
  +        if ((classToPrefetch != null)
                   && classToPrefetch.isAssignableFrom(mif.getClassOfObject()))
           {
               itemProxyClass = null;
  @@ -205,10 +205,14 @@
       public RsIterator(Query query, ClassDescriptor mif, PersistenceBrokerImpl broker)
       {
           this(mif, broker);
  -        if (logger.isDebugEnabled()) logger.debug("RsIterator(" + query + ", " + mif +
")");
           m_query = query;
           m_rsAndStmt = broker.serviceJdbcAccess().executeQuery(query, mif);
           prefetchRelationships(query);
  +        if (logger.isDebugEnabled())
  +        {
  +            logger.debug("RsIterator[query: " + query
  +                    + ", ClassDescriptor: " + mif.getClassNameOfObject() + "] initialized");
  +        }
       }
   
       protected Class getTopLevelClass()
  @@ -728,12 +732,12 @@
       {
           releaseDbResources();
       }
  -    
  +
       public String toString()
       {
           return super.toString() + "\n" + m_cld.toString();
       }
  -    
  +
       /**
        * @return Returns the cld.
        */
  
  
  

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