com.esri.arcgis.geodatabase
Class SimpleDataConverter

java.lang.Object
  extended by com.esri.arcgis.geodatabase.SimpleDataConverter
All Implemented Interfaces:
IConnectionPointContainer, ISimpleDataConverter, ISimpleDataConverter2, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class SimpleDataConverter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISimpleDataConverter, ISimpleDataConverter2, IConnectionPointContainer, ISupportErrorInfo

Convert a set of shape files into Access or SDE.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
SimpleDataConverter()
          Constructs a SimpleDataConverter using ArcGIS Engine.
SimpleDataConverter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SimpleDataConverter theSimpleDataConverter = (SimpleDataConverter) obj;
 
Method Summary
 void addIFeatureProgressListener(IFeatureProgress theListener)
          addIFeatureProgressListener.
 IEnumInvalidObject convert()
          Convert the input FeatureClass to another FeatureClass in the output FeatureDataset.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          enumConnectionPoints
 boolean equals(Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          findConnectionPoint
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void removeIFeatureProgressListener(IFeatureProgress theListener)
          removeIFeatureProgressListener.
 void reset()
          Reset all the properties associated with the simple data converter.
 void setConfigurationKeyword(String rhs1)
          The configuration keyword for the new FeatureClass.
 void setDataConvertProcessByRef(IDataConvertProcess rhs1)
          The data converter process object.
 void setFlushInterval(int rhs1)
          The flushing interval for sde FeatureClass.
 void setInputDatasetNameByRef(IDatasetName rhs1)
          The input DatasetName, FeatureClass or table.
 void setInputQueryFilterByRef(IQueryFilter rhs1)
          The input QueryFilter.
 void setInputSelectionSetByRef(ISelectionSet rhs1)
          The set of objects to convert.
 void setIsFeatureTypeSimple(boolean rhs1)
          The property to preserve the inputFeatureType in the output.
 void setOutputDatasetNameByRef(IDatasetName rhs1)
          The output object class Name (optional).
 void setOutputFeatureDatasetNameByRef(IFeatureDatasetName rhs1)
          The output FeatureDatasetName.
 void setOutputFieldsByRef(IFields rhs1)
          The output fields for the input FeatureClass.
 void setOutputGeometryDefByRef(IGeometryDef rhs1)
          The GeometryDef (optional) for the output FeatureDatasetName.
 void setParentWindowHandle(int rhs1)
          The parent hWnd.
 
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

SimpleDataConverter

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

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

SimpleDataConverter

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

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

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.

convert

public IEnumInvalidObject convert()
                           throws IOException,
                                  AutomationException
Convert the input FeatureClass to another FeatureClass in the output FeatureDataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
convert in interface ISimpleDataConverter
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumInvalidObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws IOException,
                  AutomationException
Reset all the properties associated with the simple data converter.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
reset in interface ISimpleDataConverter
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIsFeatureTypeSimple

public void setIsFeatureTypeSimple(boolean rhs1)
                            throws IOException,
                                   AutomationException
The property to preserve the inputFeatureType in the output.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setIsFeatureTypeSimple in interface ISimpleDataConverter
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInputDatasetNameByRef

public void setInputDatasetNameByRef(IDatasetName rhs1)
                              throws IOException,
                                     AutomationException
The input DatasetName, FeatureClass or table.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setInputDatasetNameByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInputQueryFilterByRef

public void setInputQueryFilterByRef(IQueryFilter rhs1)
                              throws IOException,
                                     AutomationException
The input QueryFilter.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setInputQueryFilterByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputGeometryDefByRef

public void setOutputGeometryDefByRef(IGeometryDef rhs1)
                               throws IOException,
                                      AutomationException
The GeometryDef (optional) for the output FeatureDatasetName.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOutputGeometryDefByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputFieldsByRef

public void setOutputFieldsByRef(IFields rhs1)
                          throws IOException,
                                 AutomationException
The output fields for the input FeatureClass.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOutputFieldsByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IFields (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputFeatureDatasetNameByRef

public void setOutputFeatureDatasetNameByRef(IFeatureDatasetName rhs1)
                                      throws IOException,
                                             AutomationException
The output FeatureDatasetName.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOutputFeatureDatasetNameByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IFeatureDatasetName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputDatasetNameByRef

public void setOutputDatasetNameByRef(IDatasetName rhs1)
                               throws IOException,
                                      AutomationException
The output object class Name (optional).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOutputDatasetNameByRef in interface ISimpleDataConverter
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setConfigurationKeyword

public void setConfigurationKeyword(String rhs1)
                             throws IOException,
                                    AutomationException
The configuration keyword for the new FeatureClass.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setConfigurationKeyword in interface ISimpleDataConverter
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFlushInterval

public void setFlushInterval(int rhs1)
                      throws IOException,
                             AutomationException
The flushing interval for sde FeatureClass.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setFlushInterval in interface ISimpleDataConverter
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParentWindowHandle

public void setParentWindowHandle(int rhs1)
                           throws IOException,
                                  AutomationException
The parent hWnd.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setParentWindowHandle in interface ISimpleDataConverter
Parameters:
rhs1 - The rhs1 (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInputSelectionSetByRef

public void setInputSelectionSetByRef(ISelectionSet rhs1)
                               throws IOException,
                                      AutomationException
The set of objects to convert.

Product Availability

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

Specified by:
setInputSelectionSetByRef in interface ISimpleDataConverter2
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDataConvertProcessByRef

public void setDataConvertProcessByRef(IDataConvertProcess rhs1)
                                throws IOException,
                                       AutomationException
The data converter process object.

Product Availability

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

Specified by:
setDataConvertProcessByRef in interface ISimpleDataConverter2
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IDataConvertProcess (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.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.