db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r489819 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java
Date Sat, 23 Dec 2006 01:34:05 GMT
Author: arminw
Date: Fri Dec 22 17:34:05 2006
New Revision: 489819

URL: http://svn.apache.org/viewvc?view=rev&rev=489819
Log:
minor improvement

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java?view=diff&rev=489819&r1=489818&r2=489819
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/CollectionPrefetcher.java
Fri Dec 22 17:34:05 2006
@@ -65,7 +65,7 @@
     protected Query[] buildPrefetchQueries(Collection owners, Collection children)
     {
         ClassDescriptor cld = getOwnerClassDescriptor();
-        Class topLevelClass = getBroker().getTopLevelClass(cld.getClassOfObject());
+        Class topLevelClass = cld.getTopLevelClass();
         Collection queries = new ArrayList(owners.size());
         Collection idsSubset = new HashSet(owners.size());
         Object[] fkValues;
@@ -126,7 +126,7 @@
         CollectionDescriptor cds = getCollectionDescriptor();
         PersistentField field = cds.getPersistentField();
         PersistenceBroker pb = getBroker();
-        Class ownerTopLevelClass = pb.getTopLevelClass(getOwnerClassDescriptor().getClassOfObject());
+        Class ownerTopLevelClass = getOwnerClassDescriptor().getTopLevelClass();
         Class collectionClass = cds.getCollectionClass(); // this collection type will be
used:
         HashMap ownerIdsToLists = new HashMap(owners.size());
 



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