org.griphyn.vdl.directive
Class Connect
java.lang.Object
org.griphyn.vdl.directive.Directive
org.griphyn.vdl.directive.Connect
public class Connect
- extends Directive
The class dynamically loads a databaseschema
- See Also:
DatabaseSchema
|
Constructor Summary |
Connect()
Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connect
public Connect()
throws IOException,
MissingResourceException
- Constructor
- Throws:
IOException
MissingResourceException
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 © 2007 The University of Southern California. All Rights Reserved.