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/metadata/fieldaccess PersistentFieldDynaBeanAccessImpl.java
Date Thu, 10 Jul 2003 20:07:08 GMT
arminw      2003/07/10 13:07:08

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        PersistentFieldDynaBeanAccessImpl.java
  Log:
  avoid use of Field instances
  when using DynaBean objects
  
  Revision  Changes    Path
  1.2       +18 -1     db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanAccessImpl.java
  
  Index: PersistentFieldDynaBeanAccessImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDynaBeanAccessImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PersistentFieldDynaBeanAccessImpl.java	8 Jul 2003 14:30:07 -0000	1.1
  +++ PersistentFieldDynaBeanAccessImpl.java	10 Jul 2003 20:07:08 -0000	1.2
  @@ -135,6 +135,23 @@
           }
       }
   
  +    /*
  +    override these three methods to avoid use
  +    of Field instances
  +    */
  +    public String getName()
  +    {
  +        return this.fieldName;
  +    }
  +    public Class getType()
  +    {
  +        return this.rootObjectType;
  +    }
  +    public Class getDeclaringClass()
  +    {
  +        return DynaBean.class;
  +    }
  +
       public boolean makeAccessible()
       {
           return false;
  
  
  

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