com.esri.arcgis.geodatabase
Class GeoDBDataTransfer

java.lang.Object
  extended by com.esri.arcgis.geodatabase.GeoDBDataTransfer
All Implemented Interfaces:
IConnectionPointContainer, IGeoDBDataTransfer, IGeoDBDataTransfer2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class GeoDBDataTransfer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IGeoDBDataTransfer, IGeoDBDataTransfer2, IConnectionPointContainer

Transfers data to/from GeoDatabases.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
GeoDBDataTransfer()
          Constructs a GeoDBDataTransfer using ArcGIS Engine.
GeoDBDataTransfer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeoDBDataTransfer theGeoDBDataTransfer = (GeoDBDataTransfer) obj;
 
Method Summary
 void addIFeatureProgressListener(IFeatureProgress theListener)
          addIFeatureProgressListener.
 void delete(IEnumNameMapping from, IName toName)
          Deletes objects that were transfered.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          enumConnectionPoints
 boolean equals(Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          findConnectionPoint
 boolean generateNameMapping(IEnumName from, IName toName, IEnumNameMapping[] to)
          Generate a list of objects to transfer.
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 int numberObjectsToTransfer(IEnumNameMapping from)
          Returns the number of objects to be transfered (by the Simple Data Converter).
 void removeIFeatureProgressListener(IFeatureProgress theListener)
          removeIFeatureProgressListener.
 void transfer(IEnumNameMapping from, IName toName)
          Transfers Data from one Workspace to another.
 
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

GeoDBDataTransfer

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

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

GeoDBDataTransfer

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

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

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

addIFeatureProgressListener

public void addIFeatureProgressListener(IFeatureProgress theListener)
                                 throws IOException
addIFeatureProgressListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
Throws:
IOException - If there are communications problems.

removeIFeatureProgressListener

public void removeIFeatureProgressListener(IFeatureProgress theListener)
                                    throws IOException
removeIFeatureProgressListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
Throws:
IOException - If there are communications problems.

generateNameMapping

public boolean generateNameMapping(IEnumName from,
                                   IName toName,
                                   IEnumNameMapping[] to)
                            throws IOException,
                                   AutomationException
Generate a list of objects to transfer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
generateNameMapping in interface IGeoDBDataTransfer
Parameters:
from - A reference to a com.esri.arcgis.system.IEnumName (in)
toName - A reference to a com.esri.arcgis.system.IName (in)
to - A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (out: use single element array)
Returns:
The conflicts
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transfer

public void transfer(IEnumNameMapping from,
                     IName toName)
              throws IOException,
                     AutomationException
Transfers Data from one Workspace to another.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
transfer in interface IGeoDBDataTransfer
Parameters:
from - A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (in)
toName - A reference to a com.esri.arcgis.system.IName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

numberObjectsToTransfer

public int numberObjectsToTransfer(IEnumNameMapping from)
                            throws IOException,
                                   AutomationException
Returns the number of objects to be transfered (by the Simple Data Converter).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
numberObjectsToTransfer in interface IGeoDBDataTransfer
Parameters:
from - A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (in)
Returns:
The nObjects
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(IEnumNameMapping from,
                   IName toName)
            throws IOException,
                   AutomationException
Deletes objects that were transfered.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
delete in interface IGeoDBDataTransfer2
Parameters:
from - A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (in)
toName - A reference to a com.esri.arcgis.system.IName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

enumConnectionPoints

public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
                          throws IOException,
                                 AutomationException
enumConnectionPoints

Description

IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
enumConnectionPoints in interface IConnectionPointContainer
Parameters:
ppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findConnectionPoint

public void findConnectionPoint(GUID riid,
                                IConnectionPoint[] ppCP)
                         throws IOException,
                                AutomationException
findConnectionPoint

Description

IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
findConnectionPoint in interface IConnectionPointContainer
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.