com.esri.arcgis.datasourcesoledb
Class FdoAdoConnection

java.lang.Object
  extended by com.esri.arcgis.datasourcesoledb.FdoAdoConnection
All Implemented Interfaces:
IESRIDataSourceCreate, IFDOToADOConnection, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class FdoAdoConnection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IESRIDataSourceCreate, IFDOToADOConnection

ESRI FDO to ADO Connection Object.

Remarks

Create a new FdoAdoConnection object whenever you want to create or connect to an ADO (ActiveX Data Objects) connection object from an existing workspace object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
IWorkspace, Serialized Form

Constructor Summary
FdoAdoConnection()
          Constructs a FdoAdoConnection using ArcGIS Engine.
FdoAdoConnection(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FdoAdoConnection theFdoAdoConnection = (FdoAdoConnection) obj;
 
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.
 Object createDataSource(IWorkspace pWorkspace)
          Creates an OLEDB-FDO Data Source object and connects to existing Workspace.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

FdoAdoConnection

public FdoAdoConnection()
                 throws IOException,
                        UnknownHostException
Constructs a FdoAdoConnection using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

FdoAdoConnection

public FdoAdoConnection(Object obj)
                 throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FdoAdoConnection theFdoAdoConnection = (FdoAdoConnection) obj;

Construct a FdoAdoConnection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FdoAdoConnection.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

createDataSource

public Object createDataSource(IWorkspace pWorkspace)
                        throws IOException,
                               AutomationException
Creates an OLEDB-FDO Data Source object and connects to existing Workspace.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
createDataSource in interface IESRIDataSourceCreate
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.

connect

public 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

Specified by:
connect in interface IFDOToADOConnection
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

public 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

Specified by:
createADOConnection in interface IFDOToADOConnection
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