db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r504269 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java
Date Tue, 06 Feb 2007 19:58:40 GMT
Author: arminw
Date: Tue Feb  6 11:58:39 2007
New Revision: 504269

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

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java?view=diff&rev=504269&r1=504268&r2=504269
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/ObjectReferenceDescriptor.java
Tue Feb  6 11:58:39 2007
@@ -60,11 +60,11 @@
     /**
      * holds the foreign-key field descriptor array for a specified class.
      */
-    private Map fkFieldMap = new HashMap();
+    private Map m_fkFieldMap = new HashMap();
     /**
      * holds the foreign-key target-field descriptor array for a specified class.
      */
-    private Map fkTargetFieldMap = new HashMap();
+    private Map m_fkTargetFieldMap = new HashMap();
 
     /**
      * define loading strategy of the resulting object
@@ -84,14 +84,14 @@
     }
 
     /**
-     *
+     * Returns the proxy implementation class of the referenced item
+     * or <em>null</em> if not set.
      */
     public Class getItemProxyClass() throws PersistenceBrokerException
     {
         if (!m_LookedUpProxy)
         {
-            m_ProxyOfItems = getClassDescriptor().getRepository().
-                                getDescriptorFor(m_ClassOfItems).getProxyClass();
+            m_ProxyOfItems = getItemClassDescriptor().getProxyClass();
             m_LookedUpProxy = true;
         }
         return m_ProxyOfItems;
@@ -104,7 +104,7 @@
      */
     public FieldDescriptor[] getForeignKeyTargetFieldDescriptors(ClassDescriptor targetCld)
     {
-        FieldDescriptor[] fkFieldDescriptors = (FieldDescriptor[]) fkTargetFieldMap.get(targetCld);
+        FieldDescriptor[] fkFieldDescriptors = (FieldDescriptor[]) m_fkTargetFieldMap.get(targetCld);
         
         if (fkFieldDescriptors == null)
         {
@@ -164,7 +164,7 @@
                 }
                 
                 fkFieldDescriptors = (FieldDescriptor[]) ret.toArray(new FieldDescriptor[ret.size()]);
-                fkTargetFieldMap.put(targetCld, fkFieldDescriptors);
+                m_fkTargetFieldMap.put(targetCld, fkFieldDescriptors);
             }
         }
         return fkFieldDescriptors;
@@ -176,7 +176,7 @@
      */
 	public FieldDescriptor[] getForeignKeyFieldDescriptors(ClassDescriptor cld)
 	{
-		FieldDescriptor[] fkFieldDescriptors = (FieldDescriptor[]) fkFieldMap.get(cld);
+		FieldDescriptor[] fkFieldDescriptors = (FieldDescriptor[]) m_fkFieldMap.get(cld);
 		if (fkFieldDescriptors == null)
 		{
 			// collect list of indices of Fk-Fields
@@ -232,7 +232,7 @@
 					ret.add(fkfd);
 				}
 				fkFieldDescriptors = (FieldDescriptor[]) ret.toArray(new FieldDescriptor[ret.size()]);
-				fkFieldMap.put(cld, fkFieldDescriptors);
+				m_fkFieldMap.put(cld, fkFieldDescriptors);
 			}
 		}
 		return fkFieldDescriptors;



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