db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess AbstractPersistentField.java
Date Wed, 20 Aug 2003 19:39:00 GMT
brj         2003/08/20 12:39:00

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        AbstractPersistentField.java
  Log:
  some style fixes
  
  Revision  Changes    Path
  1.7       +9 -9      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/AbstractPersistentField.java
  
  Index: AbstractPersistentField.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/AbstractPersistentField.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractPersistentField.java	16 Jul 2003 15:53:22 -0000	1.6
  +++ AbstractPersistentField.java	20 Aug 2003 19:39:00 -0000	1.7
  @@ -241,25 +241,25 @@
        * @param fieldName nested attribute name
        * @return Object the value of the represented field in object obj
        */
  -    protected Object getNestedObject(Object obj, String fieldName)
  +    protected Object getNestedObject(Object obj, String aFieldName)
       {
           Object result = null;
  -        int index = fieldName.indexOf(PATH_TOKEN);
  +        int index = aFieldName.indexOf(PATH_TOKEN);
           if (index >= 0)
           {
  -            String name = fieldName.substring(0, index);
  +            String name = aFieldName.substring(0, index);
               PersistentField pField = createInternPersistentField(ProxyHelper.getRealClass(obj),
name);
               Object attrib = pField.get(ProxyHelper.getRealObject(obj));
   
               if (attrib != null)
               {
  -                String nestedName = fieldName.substring(index + PATH_TOKEN.length());
  +                String nestedName = aFieldName.substring(index + PATH_TOKEN.length());
                   result = getNestedObject(attrib, nestedName);
               }
           }
           else
           {
  -            PersistentField pField = createInternPersistentField(ProxyHelper.getRealClass(obj),
fieldName);
  +            PersistentField pField = createInternPersistentField(ProxyHelper.getRealClass(obj),
aFieldName);
               result = pField.get(ProxyHelper.getRealObject(obj));
           }
           return result;
  @@ -321,15 +321,15 @@
   
       }
   
  -    private PersistentField createInternPersistentField(Class fieldType, String fieldName)
  +    private PersistentField createInternPersistentField(Class fieldType, String aFieldName)
       {
           try
           {
  -            return PersistentFieldFactory.createPersistentField(fieldType, fieldName);
  +            return PersistentFieldFactory.createPersistentField(fieldType, aFieldName);
           }
           catch (Exception e)
           {
  -            throw new MetadataException("Cannot create PersistentField for field '" + fieldName
+ "' of class " +
  +            throw new MetadataException("Cannot create PersistentField for field '" + aFieldName
+ "' of class " +
                       fieldType.getName(), e);
           }
       }
  
  
  

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