|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.consumer.helper.OdaObject
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaDriver
OdaDriver is the Oda wrapper for driver connection factories.
Constructor Summary | |
OdaDriver(ExtensionManifest driverConfig)
|
|
OdaDriver(java.lang.String driverClassName,
java.util.Locale locale,
java.lang.ClassLoader classloader,
boolean switchContextClassloader)
|
Method Summary | |
java.lang.Object |
findAndInvokeMethod(java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Object[] args)
|
IConnection |
getConnection(java.lang.String dataSourceId)
Returns an IConnection object that can then be used to establish a runtime connection to the underlying data source with the given unique id. |
int |
getMaxConnections()
Returns the maximum number of concurrent connections that the driver can support. |
void |
setAppContext(java.lang.Object context)
Sets the driver context passed through from an application. |
void |
setLogConfiguration(LogConfiguration logConfig)
An optional method to set the trace logging configuration of the ODA runtime driver for the given type of data source and its runtime connection(s). |
void |
setLogDirectory(java.lang.String logDirectory)
|
static void |
setThrowAndSetOdaException()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OdaDriver(ExtensionManifest driverConfig) throws OdaException
public OdaDriver(java.lang.String driverClassName, java.util.Locale locale, java.lang.ClassLoader classloader, boolean switchContextClassloader) throws OdaException
Method Detail |
public void setLogDirectory(java.lang.String logDirectory)
public void setLogConfiguration(LogConfiguration logConfig) throws OdaException
IDriver
setLogConfiguration
in interface IDriver
logConfig
- The trace logging configuration.
OdaException
- if ODA runtime driver error occurs.public IConnection getConnection(java.lang.String dataSourceId) throws OdaException
IDriver
getConnection
in interface IDriver
dataSourceId
- The id fo a type of data source supported by this IDriver.
This matches the data source element id defined in
the data source driver's configuration file.
A null or empty String will use the default
data source type supported by this IDriver.
OdaException
- if data source error occurs.IConnection
public int getMaxConnections() throws OdaException
IDriver
getMaxConnections
in interface IDriver
OdaException
- if driver error occurs.public void setAppContext(java.lang.Object context) throws OdaException
IDriver
setAppContext
in interface IDriver
context
- Application context object of this instance.
OdaException
- if data source error occurspublic static void setThrowAndSetOdaException()
public java.lang.Object findAndInvokeMethod(java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Object[] args) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, OdaException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
OdaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |