Top Description Methods
org.apache.derby.iapi.services.loader

public Interface GeneratedClass

Known Direct Implementers
org.apache.derby.impl.services.reflect.LoadedGeneratedClass
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.Context

A meta-class that represents a generated class. (Similar to java.lang.Class).

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the class loader's version
getClassLoaderVersion
()

Return the class reload version that this class was built at.

public GeneratedMethod

Returns:

the corresponding generated method
getMethod
(String
Name of the method
simpleName
)

Obtain a handle to the method with the given name that takes no arguments.

public String

Returns:

the class name
getName
()

Return the name of the generated class.

public Object

Returns:

an object of the indicated class
newInstance
(Context
Context for the class
context
)

Return a new object that is an instance of the represented class.

Method Detail

getClassLoaderVersionback to summary
public int getClassLoaderVersion()

Return the class reload version that this class was built at.

Returns:int

the class loader's version

getMethodback to summary
public GeneratedMethod getMethod(String simpleName) throws StandardException

Obtain a handle to the method with the given name that takes no arguments.

Parameters
simpleName:String

Name of the method

Returns:GeneratedMethod

the corresponding generated method

Exceptions
StandardException:
Standard Derby error policy
getNameback to summary
public String getName()

Return the name of the generated class.

Returns:String

the class name

newInstanceback to summary
public Object newInstance(Context context) throws StandardException

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

Parameters
context:Context

Context for the class

Returns:Object

an object of the indicated class

Exceptions
StandardException:
Standard Derby error policy