com.esri.arcgis.datasourcesoledb
Interface IFDOToADOConnection

All Superinterfaces:
Serializable
All Known Implementing Classes:
FdoAdoConnection

public interface IFDOToADOConnection
extends Serializable

Provides access to members that create or connect to an ADO connection from a workspace.

Description

IFDOToADOConnection is used to either create an ADO (ActiveX Data Objects) connection from a workspace or connect an existing ADO connection to a workspace.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
IWorkspace

Method Summary
 void connect(IWorkspace pWorkspace, Object pADOConnection)
          Connects a Workspace object to an ADO connection object.
 Object createADOConnection(IWorkspace pWorkspace)
          Creates an ADO connection from a Workspace.
 

Method Detail

connect

void connect(IWorkspace pWorkspace,
             Object pADOConnection)
             throws IOException,
                    AutomationException
Connects a Workspace object to an ADO connection object.

Remarks

The Connect method connects a workspace object to an ADO (ActiveX Data Objects) connection object. The ADO connection object must exist BUT not be opened, before this method is called. If the ADO connection has any existing properties, they will be over-written.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
pADOConnection - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IWorkspace

createADOConnection

Object createADOConnection(IWorkspace pWorkspace)
                           throws IOException,
                                  AutomationException
Creates an ADO connection from a Workspace.

Remarks

The CreateADOConnection method creates an ADO (ActiveX Data Objects) connection from a workspace object. The ADO connection object should not exist before this method is called.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IWorkspace