com.esri.arcgis.geodatabasedistributed
Class ReplicaSchemaExporter

java.lang.Object
  extended by com.esri.arcgis.geodatabasedistributed.ReplicaSchemaExporter
All Implemented Interfaces:
IExportSchema, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class ReplicaSchemaExporter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IExportSchema

Esri Replica Schema Exporter object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ReplicaSchemaExporter()
          Constructs a ReplicaSchemaExporter using ArcGIS Engine.
ReplicaSchemaExporter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicaSchemaExporter theReplicaSchemaExporter = (ReplicaSchemaExporter) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 void exportSchema(String exportFileName, IReplica replica)
          Export schema info.
 void exportSchemaDifferences(String exportFileName, ISchemaChanges schemaChanges)
          Export schema differences between replica pair.
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

ReplicaSchemaExporter

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

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

ReplicaSchemaExporter

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

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

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

exportSchema

public void exportSchema(String exportFileName,
                         IReplica replica)
                  throws IOException,
                         AutomationException
Export schema info.

Remarks

The ExportSchema method exports a replicas schema to an XML file.

ExportFileName is the XML file to be created and Replica defines the replica from which to export the schema.

The exportFileName is the string name of the replica schema changes file (XML) that will be created. The Replica parameter takes a Replica object for the replica to export the schema from. See the Replica coclass for more information.

Replica schema cannot be exported from check-out parent replicas or one way child replicas. All other replica types are supported.

Replica schema can only be exported from a replica that can synchronize it's changes with it's relative replica. This includes check-out replicas (child replicas only), two way replicas (both parent and child replicas), and one way parent replicas. Ultimately, this replica schema document can be used to compare and import schema differences into the relative replica. If a relatives replica cannot receive data changes, it also can not apply schema changes. Therefore we do not allow exporting replica schema in the first place.

Product Availability

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

Specified by:
exportSchema in interface IExportSchema
Parameters:
exportFileName - The exportFileName (in)
replica - A reference to a com.esri.arcgis.geodatabase.IReplica (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportSchemaDifferences

public void exportSchemaDifferences(String exportFileName,
                                    ISchemaChanges schemaChanges)
                             throws IOException,
                                    AutomationException
Export schema differences between replica pair.

Remarks

The ExportSchemaDifferences method exports replica schema differences to an XML file.

The exportFileName is the string name of the replica schema changes file (XML) that will be created. The SchemaChanges parameter takes a reference to a SchemaChanges object. See the SchemaChanges coclass for more information.

Product Availability

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

Specified by:
exportSchemaDifferences in interface IExportSchema
Parameters:
exportFileName - The exportFileName (in)
schemaChanges - A reference to a com.esri.arcgis.geodatabasedistributed.ISchemaChanges (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.