org.apache.derby.impl.services.reflect
Class ReflectGeneratedClass

java.lang.Object
  extended byorg.apache.derby.impl.services.reflect.LoadedGeneratedClass
      extended byorg.apache.derby.impl.services.reflect.ReflectGeneratedClass
All Implemented Interfaces:
GeneratedClass

public final class ReflectGeneratedClass
extends LoadedGeneratedClass


Field Summary
private static GeneratedMethod[] directs
           
private  GCInstanceFactory factory
           
private  java.lang.Class factoryClass
           
private  java.util.Hashtable methodCache
           
 
Fields inherited from class org.apache.derby.impl.services.reflect.LoadedGeneratedClass
 
Constructor Summary
ReflectGeneratedClass(ClassFactory cf, java.lang.Class jvmClass, java.lang.Class factoryClass)
           
 
Method Summary
 GeneratedMethod getMethod(java.lang.String simpleName)
          Obtain a handle to the method with the given name that takes no arguments.
 java.lang.Object newInstance(Context context)
          Return a new object that is an instance of the represented class.
 
Methods inherited from class org.apache.derby.impl.services.reflect.LoadedGeneratedClass
getClassLoaderVersion, getJVMClass, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodCache

private final java.util.Hashtable methodCache

directs

private static final GeneratedMethod[] directs

factoryClass

private final java.lang.Class factoryClass

factory

private GCInstanceFactory factory
Constructor Detail

ReflectGeneratedClass

public ReflectGeneratedClass(ClassFactory cf,
                             java.lang.Class jvmClass,
                             java.lang.Class factoryClass)
Method Detail

newInstance

public java.lang.Object newInstance(Context context)
                             throws StandardException
Description copied from interface: GeneratedClass
Return a new object that is an instance of the represented class. The object will have been initialised by the no-arg constructor of the represneted class. (Similar to java.lang.Class.newInstance).

Specified by:
newInstance in interface GeneratedClass
Overrides:
newInstance in class LoadedGeneratedClass
Throws:
StandardException

getMethod

public GeneratedMethod getMethod(java.lang.String simpleName)
                          throws StandardException
Description copied from interface: GeneratedClass
Obtain a handle to the method with the given name that takes no arguments.

Throws:
StandardException - Standard Cloudscape error policy


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.