db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess PersistentFieldMaxPerformanceImpl.java
Date Tue, 17 Dec 2002 20:38:38 GMT
brj         2002/12/17 12:38:38

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        PersistentFieldMaxPerformanceImpl.java
  Log:
  deleted unused ensureRealObject()
  
  Revision  Changes    Path
  1.11      +1 -29     jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldMaxPerformanceImpl.java
  
  Index: PersistentFieldMaxPerformanceImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldMaxPerformanceImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PersistentFieldMaxPerformanceImpl.java	17 Dec 2002 19:00:39 -0000	1.10
  +++ PersistentFieldMaxPerformanceImpl.java	17 Dec 2002 20:38:38 -0000	1.11
  @@ -55,10 +55,7 @@
    */
   
   import java.lang.reflect.Field;
  -import java.lang.reflect.Proxy;
   
  -import org.apache.ojb.broker.VirtualProxy;
  -import org.apache.ojb.broker.accesslayer.IndirectionHandler;
   import org.apache.ojb.broker.metadata.MetadataException;
   import org.apache.ojb.broker.util.ProxyHelper;
   import org.apache.ojb.broker.util.logging.Logger;
  @@ -170,31 +167,6 @@
   			throw new MetadataException("Error getting field:" + field.getName() + " in object:"
+ obj.getClass().getName(), e);
   		}
   	}
  -
  -    /**
  -     * get the real object for objectOrProxy
  -     * @param objectOrProxy
  -     * @return Object
  -     */
  -    protected Object ensureRealObject(Object objectOrProxy)
  -    {
  -        IndirectionHandler handler;
  -
  -        if (Proxy.isProxyClass(objectOrProxy.getClass()))
  -        {
  -            handler = (IndirectionHandler) Proxy.getInvocationHandler(objectOrProxy);
  -            return handler.getRealSubject();
  -        }
  -        else if (objectOrProxy instanceof VirtualProxy)
  -        {
  -            handler = (IndirectionHandler) VirtualProxy.getIndirectionHandler((VirtualProxy)objectOrProxy);
  -            return handler.getRealSubject();
  -        }
  -        else
  -        {
  -            return objectOrProxy;
  -        }
  -    }
   
   	/**
   	 * Tries to compute a Field object using getFieldRecursive.
  
  
  

Mime
View raw message