org.eclipse.birt.data.oda
Interface IDriver

All Known Implementing Classes:
SimpleDriver

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

public interface IDriver

A connection factory interface used to produce an IConnection object.


Method Summary
 IConnection getConnection(java.lang.String dataSourceId)
          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.
 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).
 

Method Detail

getConnection

public IConnection getConnection(java.lang.String dataSourceId)
                          throws OdaException
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.

Parameters:
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.
Returns:
an IConnection object
Throws:
OdaException - if data source error occurs.
See Also:
IConnection

setLogConfiguration

public void setLogConfiguration(LogConfiguration logConfig)
                         throws OdaException
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).

Parameters:
logConfig - The trace logging configuration.
Throws:
OdaException - if ODA runtime driver error occurs.

getMaxConnections

public int getMaxConnections()
                      throws OdaException
Deprecated. 
Returns the maximum number of concurrent connections that the driver can support.

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.


Copyright © 2005 Actuate Corp. All rights reserved.