|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.GdbImporter
public class GdbImporter
ESRI Geodatabase Importer object.
GdbExporter
,
Serialized FormConstructor Summary | |
---|---|
GdbImporter()
Constructs a GdbImporter using ArcGIS Engine. |
|
GdbImporter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GdbImporter theGdbImporter = (GdbImporter) obj; |
Method Summary | |
---|---|
void |
addIFeatureProgressListener(IFeatureProgress theListener)
addIFeatureProgressListener. |
void |
addIOperationProgressListener(IOperationProgress theListener)
addIOperationProgressListener. |
boolean |
equals(Object o)
Compare this object with another |
boolean |
generateNameMapping(String inFile,
IWorkspace workspace,
IEnumNameMapping[] enumNameMapping)
Generate a list of objects to import. |
static String |
getClsid()
getClsid. |
IFields |
getRecordSetFields(String inFile)
Generate a fieldset to load from xml. |
int |
hashCode()
the hashcode for this object |
void |
importRecordSet(String inFile,
IFields sourceFields,
IFields targetMappedFields,
ITable pTable)
Loading data from xml recordset. |
void |
importWorkspace(String inFile,
IEnumNameMapping enumNameMapping,
IWorkspace pWorkspace,
boolean schemaOnly)
Imports a workspace from XML. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
removeIFeatureProgressListener(IFeatureProgress theListener)
removeIFeatureProgressListener. |
void |
removeIOperationProgressListener(IOperationProgress theListener)
removeIOperationProgressListener. |
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 |
---|
public GdbImporter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GdbImporter(Object obj) throws IOException
GdbImporter theGdbImporter = (GdbImporter) obj;
obj
to GdbImporter
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void addIFeatureProgressListener(IFeatureProgress theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
IOException
- If there are communications problems.public void removeIFeatureProgressListener(IFeatureProgress theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
IOException
- If there are communications problems.public void addIOperationProgressListener(IOperationProgress theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.geodatabasedistributed.IOperationProgress interface.
IOException
- If there are communications problems.public void removeIOperationProgressListener(IOperationProgress theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.geodatabasedistributed.IOperationProgress interface.
IOException
- If there are communications problems.public boolean generateNameMapping(String inFile, IWorkspace workspace, IEnumNameMapping[] enumNameMapping) throws IOException, AutomationException
The GenerateNameMapping method generates a name mapping enumeration where you pass in inFile, IWorkspace, and IEnumNameMapping.
generateNameMapping
in interface IGdbXmlImport
inFile
- The inFile (in)workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)enumNameMapping
- A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void importWorkspace(String inFile, IEnumNameMapping enumNameMapping, IWorkspace pWorkspace, boolean schemaOnly) throws IOException, AutomationException
The ImportWorkspace method imports a geodatabase workspace schema and data.
In order to import a workspace, you need to pass in IEnumNameMapping and IWorkspace. The inFile is a string that identifies the input XML filename. The filename must have a "xml" file extension, for example, "c:\temp\file.xml". Otherwise, the inFile is a .ZIP or .Z file extension.
If you set schemaOnly to TRUE, the imported workspace will contain the schema and no data. Otherwise, the workspace being imported will contain schema and data.
importWorkspace
in interface IGdbXmlImport
inFile
- The inFile (in)enumNameMapping
- A reference to a com.esri.arcgis.geodatabase.IEnumNameMapping (in)pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)schemaOnly
- The schemaOnly (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void importRecordSet(String inFile, IFields sourceFields, IFields targetMappedFields, ITable pTable) throws IOException, AutomationException
The ImportRecordSet method imports a geodatabase recordset.
In order to import a recordset, you need to pass in IFields and ITable. The inFile is a string that identifies the input XML filename. The filename must have a "xml" file extension, for example, "c:\temp\file.xml". Otherwise, the inFile is a .ZIP or .Z file extension.
importRecordSet
in interface IGdbXmlImport
inFile
- The inFile (in)sourceFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)targetMappedFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)pTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFields getRecordSetFields(String inFile) throws IOException, AutomationException
The GetRecordSetFields method retrieves recordset fields and records from resulting XML file. You need to pass in inFile as a string that identifies the input XML file.
getRecordSetFields
in interface IGdbXmlImport
inFile
- The inFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |