|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.ReplicaSchemaExporter
public class ReplicaSchemaExporter
Esri Replica Schema Exporter object.
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 |
---|
public ReplicaSchemaExporter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ReplicaSchemaExporter(Object obj) throws IOException
ReplicaSchemaExporter theReplicaSchemaExporter = (ReplicaSchemaExporter) obj;
obj
to ReplicaSchemaExporter
.
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 exportSchema(String exportFileName, IReplica replica) throws IOException, AutomationException
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.
exportSchema
in interface IExportSchema
exportFileName
- The exportFileName (in)replica
- A reference to a com.esri.arcgis.geodatabase.IReplica (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportSchemaDifferences(String exportFileName, ISchemaChanges schemaChanges) throws IOException, AutomationException
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.
exportSchemaDifferences
in interface IExportSchema
exportFileName
- The exportFileName (in)schemaChanges
- A reference to a com.esri.arcgis.geodatabasedistributed.ISchemaChanges (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 |