com.esri.arcgis.geodatabasedistributed
Interface IDataExtraction

All Superinterfaces:
Serializable
All Known Implementing Classes:
DataExtraction

public interface IDataExtraction
extends Serializable

Provides access to members that extract schema and/or data from one geodatabase to another geodatabase.

Remarks

The IDataExtraction interface provides methods to extract data and schema or just schema from one geodatabase to another.

Unlike CheckOut, DataExtraction can move data from a personal or file geodatabases to an ArcSDE geodatabase, between personal and file geodatabases.

Product Availability

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

See Also:
IReplicaFilterDescriptionEdit, IReplicaDescription, IReplicaFilterDescription

Method Summary
 void extract(IReplicaDescription rDDescription, boolean transferRelObjects)
          Extracts schema and data from one geodatabase to another geodatabase.
 void extractSchema(IReplicaDescription rSDescription, ISpatialReference outputSpatialReference)
          Extracts schema only from one geodatabase to another geodatabase.
 

Method Detail

extract

void extract(IReplicaDescription rDDescription,
             boolean transferRelObjects)
             throws IOException,
                    AutomationException
Extracts schema and data from one geodatabase to another geodatabase.

Remarks

The extract method extracts schema and data from one geodatabase to another geodatabase. The rDDescription parameter references a ReplicaDescription object which is used to specify the data to check out and the filters applied to this data.

If you set transferRelatedObjects to TRUE, related features/rows from other feature classes/tables will also be checked out. Otherwise, they are not checked out. Note that the schema of the related objects is always included regardless of whether transferRelatedObjects is TRUE or FALSE.

Unlike CheckOut or replication, DataExtraction can copy data from a personal geodatabase or file geodatabase to an ArcSDE geodatabase or between personal and file geodatabases.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rDDescription - A reference to a com.esri.arcgis.geodatabase.IReplicaDescription (in)
transferRelObjects - The transferRelObjects (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

extractSchema

void extractSchema(IReplicaDescription rSDescription,
                   ISpatialReference outputSpatialReference)
                   throws IOException,
                          AutomationException
Extracts schema only from one geodatabase to another geodatabase.

Remarks

The ExtractSchema method extracts just the schema of the data involved. It also takes a ReplicaDescription object, but in this case it is used to simply define that schema to extract.

The OutputSpatialReference parameter allows you to set the spatial reference of the extracted schema. All spatial data will be assigned this spatial reference. If this parameter is set to nothing, then the spatial reference of the input datasets is used.

When performing an extraction with re-use schema set to TRUE in the ReplicaDescription, setting the spatial reference will result in an error.

Unlike CheckOut, DataExtraction can copy data from a personal or file geodatabase to an ArcSDE geodatabase or between personal and file geodatabases.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rSDescription - A reference to a com.esri.arcgis.geodatabase.IReplicaDescription (in)
outputSpatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.