com.esri.arcgis.geodatabasedistributed
Interface IReplicaDataChangesInit2

All Superinterfaces:
IReplicaDataChangesInit, Serializable
All Known Implementing Classes:
ArchivingDataChanges, ReplicationDataChanges

public interface IReplicaDataChangesInit2
extends IReplicaDataChangesInit, Serializable

Provides access to members that initialize a multi-generation Replica DataChanges object.

Remarks

The IReplicaDataChangesInit2 interface is used to initialize the ReplicaDataChanges coclass. The coclass must be intialized before any of the other interfaces in the coclass can be used.

IReplicaDataChangesInit2::Init2 method should be used when exporting data changes from a two way or one way replica. When exporting edits from a check-out replica use the IReplicaDatachangesInit::Init method.

Product Availability

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


Method Summary
 void init2(IReplica replica, IWorkspaceName checkoutWorkspace, int genOption)
          Initializes the class by using the replica, generation option and the replica workspace.
 
Methods inherited from interface com.esri.arcgis.geodatabasedistributed.IReplicaDataChangesInit
init
 

Method Detail

init2

void init2(IReplica replica,
           IWorkspaceName checkoutWorkspace,
           int genOption)
           throws IOException,
                  AutomationException
Initializes the class by using the replica, generation option and the replica workspace.

Remarks

This method is used to initialize replication data changes for two way or one way replicas. To initialize replication data changes for check-outs use the IReplicaDataChangesInit::Init method.

The init2 method takes a replica geodatabase, a Replica, and a GenOption. The Replica defines the replica from which to export the data changes. See IWorkspaceReplicas to see how to get a replica object. See the esriExportGenerationsOption enumeration for more information.

The GenOption parameter uses the esriExportGenerationsOption enumeration to specify what data changes to export. You may choose to export only unacknowledged data change, new data changes, all data changes, or no data changes. See the esriExportGenerationsOptions enumeration for more information.

Product Availability

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

Parameters:
replica - A reference to a com.esri.arcgis.geodatabase.IReplica (in)
checkoutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
genOption - A com.esri.arcgis.geodatabasedistributed.esriExportGenerationsOption constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.