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

java.lang.Object
  extended byorg.eclipse.birt.data.oda.impl.SimpleConnection
All Implemented Interfaces:
IConnection

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

public class SimpleConnection
extends java.lang.Object
implements IConnection

Default implementation of IConnection for a simple ODA runtime driver.


Constructor Summary
SimpleConnection()
          Deprecated.  
 
Method Summary
 void close()
          Deprecated. Attempts to close this connection.
 void commit()
          Deprecated. Commits all changes made since the previous commit/rollback.
 int getMaxQueries()
          Deprecated. Returns the maximum number of active queries for any data set types that the driver can support for this connection.
 IDataSetMetaData getMetaData(java.lang.String dataSetType)
          Deprecated. Returns an IDataSetMetaData object of the the given data set type.
 boolean isOpen()
          Deprecated. Checks whether this has an established connection
 IQuery newQuery(java.lang.String dataSetType)
          Deprecated. Returns an IQuery object of the given data set type.
 void open(java.util.Properties connProperties)
          Deprecated. Attempts to establish a connection based on the given connection properties.
 void rollback()
          Deprecated. Undoes all changes made since the previous commit/rollback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConnection

public SimpleConnection()
Deprecated. 
Method Detail

open

public void open(java.util.Properties connProperties)
          throws OdaException
Deprecated. 
Description copied from interface: IConnection
Attempts to establish a connection based on the given connection properties. The connection property "OdaDriverDir" is always passed as a service to drivers; its property value is the directory where the ODA runtime driver is installed. It is up to the individual ODA driver to process this property.

Specified by:
open in interface IConnection
Parameters:
connProperties - Properties necessary to establish a connection.
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.open(java.util.Properties)

close

public void close()
           throws OdaException
Deprecated. 
Description copied from interface: IConnection
Attempts to close this connection.

Specified by:
close in interface IConnection
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.close()

isOpen

public boolean isOpen()
               throws OdaException
Deprecated. 
Description copied from interface: IConnection
Checks whether this has an established connection

Specified by:
isOpen in interface IConnection
Returns:
true if connection is established.
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.isOpen()

getMetaData

public IDataSetMetaData getMetaData(java.lang.String dataSetType)
                             throws OdaException
Deprecated. 
Description copied from interface: IConnection
Returns an IDataSetMetaData object of the the given data set type. The data set type is implementation-dependent. This can be called before this IConnection is opened; however some IDataSetMetaData methods expects and requires an opened connection before being called, e.g. getDataSourceObjects().

Specified by:
getMetaData in interface IConnection
Parameters:
dataSetType - String representation of a data set type.
Returns:
an IDataSetMetaData object.
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.getMetaData(java.lang.String)

newQuery

public IQuery newQuery(java.lang.String dataSetType)
                throws OdaException
Deprecated. 
Description copied from interface: IConnection
Returns an IQuery object of the given data set type. The data set type is implementation-dependent.

Specified by:
newQuery in interface IConnection
Parameters:
dataSetType - String representation of a data set type.
Returns:
an IQuery object.
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.newQuery(java.lang.String)

getMaxQueries

public int getMaxQueries()
                  throws OdaException
Deprecated. 
Description copied from interface: IConnection
Returns the maximum number of active queries for any data set types that the driver can support for this connection.

Specified by:
getMaxQueries in interface IConnection
Returns:
the maximum number of any type of queries that can be prepared and executed concurrently, or 0 if there is no limit or the limit is unknown.
Throws:
OdaException - if driver error occurs.
See Also:
IConnection.getMaxQueries()

commit

public void commit()
            throws OdaException
Deprecated. 
Description copied from interface: IConnection
Commits all changes made since the previous commit/rollback.
An optional method.

Specified by:
commit in interface IConnection
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.commit()

rollback

public void rollback()
              throws OdaException
Deprecated. 
Description copied from interface: IConnection
Undoes all changes made since the previous commit/rollback.
An optional method.

Specified by:
rollback in interface IConnection
Throws:
OdaException - if data source error occurs.
See Also:
IConnection.rollback()


Copyright © 2005 Actuate Corp. All rights reserved.