com.esri.arcgis.datasourcesoledb
Interface IFDOToADOConnection

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
FdoAdoConnection, IFDOToADOConnectionProxy

public interface IFDOToADOConnection
extends java.io.Serializable

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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.

See Also:
IWorkspace, IWorkspaceFactory

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

Method Detail

connect

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

Supported Platforms

Windows, Solaris, Linux

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.

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

createADOConnection

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

Supported Platforms

Windows, Solaris, Linux

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.

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