org.eclipse.birt.data.oda.impl
Class SimpleDriver

java.lang.Object
  extended byorg.eclipse.birt.data.oda.impl.SimpleDriver
All Implemented Interfaces:
IDriver

Deprecated. As of BIRT 2.0, replaced by org.eclipse.datatools.connectivity.oda.impl.SimpleDriver .
The BIRT ODA run-time framework has been migrated to the Eclipse Data Tools Platform (DTP) project.

public class SimpleDriver
extends java.lang.Object
implements IDriver

Default implementation of IDriver for a simple ODA runtime driver.


Constructor Summary
SimpleDriver()
          Deprecated.  
 
Method Summary
 IConnection getConnection(java.lang.String dataSourceType)
          Deprecated. 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()
          Deprecated. Returns the maximum number of concurrent connections that the driver can support.
protected  IConnection newConnection(java.lang.String dataSourceType)
          Deprecated. Override to return a specific IConnection instance based on the type of data source.
 void setLogConfiguration(LogConfiguration logConfig)
          Deprecated. 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDriver

public SimpleDriver()
Deprecated. 
Method Detail

getConnection

public IConnection getConnection(java.lang.String dataSourceType)
                          throws OdaException
Deprecated. 
Description copied from interface: IDriver
Returns an IConnection object that can then be used to establish a runtime connection to the underlying data source with the given unique id.

Specified by:
getConnection in interface IDriver
Parameters:
dataSourceType - 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.
Returns:
an IConnection object
Throws:
OdaException - if data source error occurs.
See Also:
IDriver.getConnection(java.lang.String)

newConnection

protected IConnection newConnection(java.lang.String dataSourceType)
                             throws OdaException
Deprecated. 
Override to return a specific IConnection instance based on the type of data source.

Returns:
an IConnection instance.
Throws:
OdaException - if data source error occurs.

setLogConfiguration

public void setLogConfiguration(LogConfiguration logConfig)
                         throws OdaException
Deprecated. 
Description copied from interface: IDriver
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).

Specified by:
setLogConfiguration in interface IDriver
Parameters:
logConfig - The trace logging configuration.
Throws:
OdaException - if ODA runtime driver error occurs.
See Also:
IDriver.setLogConfiguration(org.eclipse.birt.data.oda.LogConfiguration)

getMaxConnections

public int getMaxConnections()
                      throws OdaException
Deprecated. 
Description copied from interface: IDriver
Returns the maximum number of concurrent connections that the driver can support.

Specified by:
getMaxConnections in interface IDriver
Returns:
the maximum number of any type of connections that can be open concurrently, or 0 if there is no limit or the limit is unknown.
Throws:
OdaException - if driver error occurs.
See Also:
IDriver.getMaxConnections()


Copyright © 2005 Actuate Corp. All rights reserved.