org.griphyn.vdl.directive
Class Connect

java.lang.Object
  extended byorg.griphyn.vdl.directive.Directive
      extended byorg.griphyn.vdl.directive.Connect

public class Connect
extends Directive

The class dynamically loads a databaseschema

See Also:
DatabaseSchema

Field Summary
 
Fields inherited from class org.griphyn.vdl.directive.Directive
m_logger, m_props, m_verbose
 
Constructor Summary
Connect()
          Constructor
 
Method Summary
 DatabaseSchema connectDatabase(String schemaName)
          Connects the database backend.
 DatabaseSchema connectDatabase(String schemaName, String dbDriverName)
          Connects the database backend.
 
Methods inherited from class org.griphyn.vdl.directive.Directive
getLogger, getProperties, getVerbose, setLogger, setProperties, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connect

public Connect()
        throws IOException,
               MissingResourceException
Constructor

Method Detail

connectDatabase

public DatabaseSchema connectDatabase(String schemaName)
                               throws ClassNotFoundException,
                                      IOException,
                                      NoSuchMethodException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException
Connects the database backend. This is not done in the c'tor, because some apps don't need this heavyweight instructions.

Parameters:
schemaName - is the name of the schema class to load. This better be the fully-qualified name in-sync with properties.
Returns:
the schema class on success, null on non-exceptional failure. The result is to be cast to appropriate catalog classes.
Throws:
ClassNotFoundException
IOException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
See Also:
ChimeraProperties.getVDCSchemaName(), ChimeraProperties.getPTCSchemaName()

connectDatabase

public DatabaseSchema connectDatabase(String schemaName,
                                      String dbDriverName)
                               throws ClassNotFoundException,
                                      IOException,
                                      NoSuchMethodException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException
Connects the database backend. This is not done in the c'tor, because some apps don't need this heavyweight instructions.

Parameters:
schemaName - is the name of the schema class to load. This better be the fully-qualified name in-sync with properties.
dbDriverName - is the name of the database driver
Returns:
the schema class on success, null on non-exceptional failure. The result is to be cast to appropriate catalog classes.
Throws:
ClassNotFoundException
IOException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
See Also:
ChimeraProperties.getVDCSchemaName(), ChimeraProperties.getPTCSchemaName()


Copyright © 2003 The University of Chicago and The University of Southern California. All Rights Reserved.