Class ObjectStore

java.lang.Object
  |
  +--ObjectStore

public class ObjectStore
extends java.lang.Object

ObjectStore.java Copyright (C) 2000 Marc Boorshtein under the GNU General Public License offered without warenty


Constructor Summary
ObjectStore(java.lang.String id)
          Creates a ObjectStore based on an ID
ObjectStore(java.lang.String id, java.lang.String className)
          Creates an ObjectStore based on an Id and a classname
 
Method Summary
 void addMethod(java.lang.String methodName, java.lang.Class[] argTypes)
          Loads given method for use
 java.lang.Object execMethod(java.lang.String methodName, java.lang.Object[] vals)
          Executes a given method with given arguments
 java.lang.Class[] getMethodTypes(java.lang.String method)
          Returns the class' of a given methods arguments
static java.lang.Object getValue(java.lang.Class cls, java.lang.String val, java.sql.Connection con)
          Used to return a valid class for the ObjectStore
 void initiate(java.lang.Class[] argTypes, java.lang.Object[] args)
          Calls the constructor matching the artypes
 void setClassName(java.lang.String clsName)
          Loads given class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStore

public ObjectStore(java.lang.String id,
                   java.lang.String className)
Creates an ObjectStore based on an Id and a classname

ObjectStore

public ObjectStore(java.lang.String id)
Creates a ObjectStore based on an ID
Method Detail

setClassName

public void setClassName(java.lang.String clsName)
                  throws java.lang.Exception
Loads given class

addMethod

public void addMethod(java.lang.String methodName,
                      java.lang.Class[] argTypes)
               throws java.lang.Exception
Loads given method for use

getMethodTypes

public java.lang.Class[] getMethodTypes(java.lang.String method)
Returns the class' of a given methods arguments

execMethod

public java.lang.Object execMethod(java.lang.String methodName,
                                   java.lang.Object[] vals)
                            throws java.lang.Exception
Executes a given method with given arguments

initiate

public void initiate(java.lang.Class[] argTypes,
                     java.lang.Object[] args)
              throws java.lang.Exception
Calls the constructor matching the artypes

getValue

public static java.lang.Object getValue(java.lang.Class cls,
                                        java.lang.String val,
                                        java.sql.Connection con)
                                 throws java.lang.Exception
Used to return a valid class for the ObjectStore