com.esri.arcgis.geodatabase
Class Replica

java.lang.Object
  extended by com.esri.arcgis.geodatabase.Replica
All Implemented Interfaces:
IReplica, IReplica2, IReplica3, IReplicaEdit, IReplicaEdit2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class Replica
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IReplica, IReplica2, IReplica3, IReplicaEdit, IReplicaEdit2

Esri Replica object.

Remarks

During a check out, information is written to the GDB_REPLICAS table in the master and checkout-out geodatabases. This information is displayed in the check-out manager. The Replica coclass allows you to access this information.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
ICheckOut, IReplicaValidation, ICheckOut.checkOutData(com.esri.arcgis.geodatabase.IReplicaDescription, boolean, String), CheckOut, Serialized Form

Constructor Summary
Replica()
          Constructs a Replica using ArcGIS Engine.
Replica(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Replica theReplica = (Replica) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int getAccessType()
          Replica access type.
 IEnumReplicaDataset getAllReplicaDatasets()
          The replica datasets for the replica.
static String getClsid()
          getClsid.
 IWorkspaceName getConnectionInfo()
          The WorkspaceName object for the master geodatabase.
 IReplicaDescription getDescription()
          The ReplicaDescription associated with the replica.
 IEnumReplicaLog getLog()
          Replica log associated with this replica.
 int getMyGenerationNumber()
          The generation number for a replica.
 String getName()
          The name of the replica.
 String getOwner()
          The database user that owns the replica in the workspace.
 int getParentID()
          The ID of the replica reference in the master geodatabase.
 int getReconcilePolicyType()
          Replica reconcile policy.
 IEnumReplicaDataset getReplicaDatasets()
          The replica datasets for this replica.
 double getReplicaDate()
          The date that the data was checked out.
 String getReplicaGuid()
          The guid of the replica.
 int getReplicaID()
          The ID of the replica.
 String getReplicaReceivingVersion()
          The replica version that recieves the changes.
 int getReplicaRole()
          Determines if the workspace is the replica geodatabase or the master geodatabase for the replica.
 int getReplicaState()
          The replica state.
 String getSibConnectionString()
          The sib connection string for a replica.
 int getSibGenerationNumber()
          The generation number for a replica's sibling.
 int getSibMyGenNumber()
          The generation number that the sibling thinks is my generation number.
 String getVersion()
          The name of the replica version.
 int hashCode()
          the hashcode for this object
 void init(IReplica otherReplica)
          Init the replica from other replica.
 void init2(IGPReplica gPReplica, IWorkspace targetWorkspace)
          Initializes a replica from a gpreplica.
 boolean isHasConflicts()
          Indicates if the replica sync has conflicts.
 boolean isUseArchiving()
          Use archiving instead of versions to track replica changes.
 void setAccessType(int rhs1)
          Replica access type.
 void setAllReplicaDatasetsByRef(IEnumReplicaDataset rhs1)
          The replica datasets for this replica.
 void setConnectionInfoByRef(IWorkspaceName rhs1)
          The connection string for the master geodatabase.
 void setDescriptionByRef(IReplicaDescription rhs1)
          The replica version description.
 void setName(String rhs1)
          The name of the replica.
 void setOwner(String rhs1)
          The master geodatabase login used to create the replica.
 void setParentID(int rhs1)
          The ID of the replica reference in the master geodatabase.
 void setReconcilePolicyType(int rhs1)
          Replica reconcile policy.
 void setReplicaDatasetsByRef(IEnumReplicaDataset rhs1)
          The replica datasets for this replica.
 void setReplicaDate(double rhs1)
          The date that the data was checked out.
 void setReplicaGuid(String rhs1)
          The guid of the replica.
 void setReplicaID(int rhs1)
          The ID of the replica.
 void setReplicaRole(int rhs1)
          Determines if the workspace is the replica geodatabase or the master geodatabase for the replica.
 void setSibConnectionString(String rhs1)
          The sib connection string for a replica.
 void setSibMyGenNumber(int rhs1)
          The generation number that the sibling thinks is my generation number.
 void setUseArchiving(boolean useArchiving)
          Use archiving instead of versions to track replica changes.
 void setVersion(String rhs1)
          The name of the replica version.
 
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

Replica

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

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

Replica

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

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

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

getReplicaID

public int getReplicaID()
                 throws IOException,
                        AutomationException
The ID of the replica.

Description

This ReplicaID identifies a check-out in a geodatabase. It is unique only within the geodatabase and not across the master and the check-out geodatabases. For example, the master can have a ReplicaID of 1806 while the check-out geodatabase has a ReplicaID of 1 for the same check-out.

The ParentID property can be used in the check-out geodatabase to find the corresponding ReplicaID in the master geodatabase.

The master geodatabase of a check-out returns -1 for ParentID property. An alternative is to use the ReplicaGuid property, which uniquely identifies the check-out and has the same value in the master and check-out geodatabases.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getReplicaID in interface IReplica
Returns:
The rID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

public String getName()
               throws IOException,
                      AutomationException
The name of the replica.

Remarks

The Name is taken from the string set in the checkoutname parameter of ICheckout::CheckoutData and ICheckout::CheckoutSchema methods.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getName in interface IReplica
Returns:
The replicaName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOwner

public String getOwner()
                throws IOException,
                       AutomationException
The database user that owns the replica in the workspace.

Remarks

For two way or one way replicas this property returns the owner of the data in the replica database.

For check-out replicas, if the check-out database is a personal or File geodatabase this property returns a blank string. Otherwise it returns the owner of the checked out data in the check-out geodatabase.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getOwner in interface IReplica
Returns:
The replicaOwner
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVersion

public String getVersion()
                  throws IOException,
                         AutomationException
The name of the replica version.

Remarks

For check-out replicas, the name of the version is the same as the name of the checkout; see IReplica::Name. If the check-out database is a personal geodatabase or a File geodatabase, this property is set to the version name on the master geodatabase (parent database).

For two way or one way replicas, this property is set to the version on the replica geodatabase. The child replica will always return the Default version. The parent replica will return the version the replica was created from.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getVersion in interface IReplica
Returns:
The replicaVersion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParentID

public int getParentID()
                throws IOException,
                       AutomationException
The ID of the replica reference in the master geodatabase.

Remarks

Returns the ID of the parent replica. For two way, one way and check-out replicas, this property is only valid for the child replica geodatabase. The parent replica geodatabase returns -1 for this property.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getParentID in interface IReplica
Returns:
The replicaParentID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaDate

public double getReplicaDate()
                      throws IOException,
                             AutomationException
The date that the data was checked out.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getReplicaDate in interface IReplica
Returns:
The rDate
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaGuid

public String getReplicaGuid()
                      throws IOException,
                             AutomationException
The guid of the replica.

Remarks

The ReplicaGuid property uniquely identifies the replica and has the same value in the parent and child replica geodatabases. Unlike the ReplicaID property, it is unique across geodatabases.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getReplicaGuid in interface IReplica
Returns:
The rGUID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDescription

public IReplicaDescription getDescription()
                                   throws IOException,
                                          AutomationException
The ReplicaDescription associated with the replica.

Remarks

For check-out replicas this property is only set in the master geodatabase. Nothing is returned for a check-out in a check-out geodatabase.

This property is set on both the parent and child replica geodatabases for two way and one way replicas.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getDescription in interface IReplica
Returns:
A reference to a com.esri.arcgis.geodatabase.IReplicaDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConnectionInfo

public IWorkspaceName getConnectionInfo()
                                 throws IOException,
                                        AutomationException
The WorkspaceName object for the master geodatabase.

Remarks

For a check-out geodatabase, this property returns a WorkspaceName object for the master geodatabase. This allows you to perform a checkin from the check-out geodatabase without already knowing the connection information for the master. The user name and password are not returned and must be set before connecting.

For master geodatabase, this property returns nothing.


Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getConnectionInfo in interface IReplica
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspaceName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaRole

public int getReplicaRole()
                   throws IOException,
                          AutomationException
Determines if the workspace is the replica geodatabase or the master geodatabase for the replica.

Remarks

If a geodatabase acts as the master for the Replica, this property returns esriCheckoutTypeParent. If the geodatabase is the check-out geodatabase, esriCheckoutTypeChild is returned. The other enumerations are never returned for valid check-outs.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getReplicaRole in interface IReplica
Returns:
A com.esri.arcgis.geodatabase.esriReplicaType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaDatasets

public IEnumReplicaDataset getReplicaDatasets()
                                       throws IOException,
                                              AutomationException
The replica datasets for this replica.

Remarks

The ReplicaDataset that is returned can be used to get information about the checked-out datasets.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getReplicaDatasets in interface IReplica
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumReplicaDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMyGenerationNumber

public int getMyGenerationNumber()
                          throws IOException,
                                 AutomationException
The generation number for a replica.

Product Availability

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

Specified by:
getMyGenerationNumber in interface IReplica2
Returns:
The myGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibGenerationNumber

public int getSibGenerationNumber()
                           throws IOException,
                                  AutomationException
The generation number for a replica's sibling.

Product Availability

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

Specified by:
getSibGenerationNumber in interface IReplica2
Returns:
The sibGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibMyGenNumber

public int getSibMyGenNumber()
                      throws IOException,
                             AutomationException
The generation number that the sibling thinks is my generation number.

Product Availability

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

Specified by:
getSibMyGenNumber in interface IReplica2
Returns:
The sibMyGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLog

public IEnumReplicaLog getLog()
                       throws IOException,
                              AutomationException
Replica log associated with this replica.

Product Availability

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

Specified by:
getLog in interface IReplica2
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumReplicaLog
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAllReplicaDatasets

public IEnumReplicaDataset getAllReplicaDatasets()
                                          throws IOException,
                                                 AutomationException
The replica datasets for the replica.

Product Availability

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

Specified by:
getAllReplicaDatasets in interface IReplica2
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumReplicaDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init2

public void init2(IGPReplica gPReplica,
                  IWorkspace targetWorkspace)
           throws IOException,
                  AutomationException
Initializes a replica from a gpreplica.

Product Availability

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

Specified by:
init2 in interface IReplica2
Parameters:
gPReplica - A reference to a com.esri.arcgis.geodatabase.IGPReplica (in)
targetWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAccessType

public int getAccessType()
                  throws IOException,
                         AutomationException
Replica access type.

Product Availability

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

Specified by:
getAccessType in interface IReplica2
Returns:
A com.esri.arcgis.geodatabase.esriReplicaAccessType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReconcilePolicyType

public int getReconcilePolicyType()
                           throws IOException,
                                  AutomationException
Replica reconcile policy.

Product Availability

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

Specified by:
getReconcilePolicyType in interface IReplica2
Returns:
A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasConflicts

public boolean isHasConflicts()
                       throws IOException,
                              AutomationException
Indicates if the replica sync has conflicts.

Product Availability

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

Specified by:
isHasConflicts in interface IReplica2
Returns:
The hasConflicts
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaReceivingVersion

public String getReplicaReceivingVersion()
                                  throws IOException,
                                         AutomationException
The replica version that recieves the changes.

Product Availability

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

Specified by:
getReplicaReceivingVersion in interface IReplica2
Returns:
The replicaReceivingVersion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaState

public int getReplicaState()
                    throws IOException,
                           AutomationException
The replica state.

Product Availability

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

Specified by:
getReplicaState in interface IReplica2
Returns:
A com.esri.arcgis.geodatabase.esriReplicaState constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibConnectionString

public String getSibConnectionString()
                              throws IOException,
                                     AutomationException
The sib connection string for a replica.

Product Availability

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

Specified by:
getSibConnectionString in interface IReplica2
Returns:
The connectionString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isUseArchiving

public boolean isUseArchiving()
                       throws IOException,
                              AutomationException
Use archiving instead of versions to track replica changes.

Product Availability

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

Specified by:
isUseArchiving in interface IReplica3
Returns:
The useArchiving
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUseArchiving

public void setUseArchiving(boolean useArchiving)
                     throws IOException,
                            AutomationException
Use archiving instead of versions to track replica changes.

Product Availability

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

Specified by:
setUseArchiving in interface IReplica3
Parameters:
useArchiving - The useArchiving (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReplicaID

public void setReplicaID(int rhs1)
                  throws IOException,
                         AutomationException
The ID of the replica.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setReplicaID in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setName

public void setName(String rhs1)
             throws IOException,
                    AutomationException
The name of the replica.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setName in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOwner

public void setOwner(String rhs1)
              throws IOException,
                     AutomationException
The master geodatabase login used to create the replica.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setOwner in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVersion

public void setVersion(String rhs1)
                throws IOException,
                       AutomationException
The name of the replica version.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setVersion in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParentID

public void setParentID(int rhs1)
                 throws IOException,
                        AutomationException
The ID of the replica reference in the master geodatabase.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setParentID in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReplicaDate

public void setReplicaDate(double rhs1)
                    throws IOException,
                           AutomationException
The date that the data was checked out.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setReplicaDate in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReplicaGuid

public void setReplicaGuid(String rhs1)
                    throws IOException,
                           AutomationException
The guid of the replica.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setReplicaGuid in interface IReplicaEdit
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDescriptionByRef

public void setDescriptionByRef(IReplicaDescription rhs1)
                         throws IOException,
                                AutomationException
The replica version description.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setDescriptionByRef in interface IReplicaEdit
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IReplicaDescription (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setConnectionInfoByRef

public void setConnectionInfoByRef(IWorkspaceName rhs1)
                            throws IOException,
                                   AutomationException
The connection string for the master geodatabase.

Product Availability

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

Specified by:
setConnectionInfoByRef in interface IReplicaEdit
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReplicaRole

public void setReplicaRole(int rhs1)
                    throws IOException,
                           AutomationException
Determines if the workspace is the replica geodatabase or the master geodatabase for the replica.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setReplicaRole in interface IReplicaEdit
Parameters:
rhs1 - A com.esri.arcgis.geodatabase.esriReplicaType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReplicaDatasetsByRef

public void setReplicaDatasetsByRef(IEnumReplicaDataset rhs1)
                             throws IOException,
                                    AutomationException
The replica datasets for this replica.

Product Availability

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

Specified by:
setReplicaDatasetsByRef in interface IReplicaEdit
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IEnumReplicaDataset (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(IReplica otherReplica)
          throws IOException,
                 AutomationException
Init the replica from other replica.

Remarks

The Init method allows you to initialize a new check-out based on another check-out. This method along with the IWorkspaceReplicasAdmin::RegisterReplica method can be used to create the meta-data for a new check-out. See the Duplicating Check-outs sample in the ArcObjects help for an example of where this can be used.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
init in interface IReplicaEdit
Parameters:
otherReplica - 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.

setSibMyGenNumber

public void setSibMyGenNumber(int rhs1)
                       throws IOException,
                              AutomationException
The generation number that the sibling thinks is my generation number.

Product Availability

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

Specified by:
setSibMyGenNumber in interface IReplicaEdit2
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAllReplicaDatasetsByRef

public void setAllReplicaDatasetsByRef(IEnumReplicaDataset rhs1)
                                throws IOException,
                                       AutomationException
The replica datasets for this replica.

Product Availability

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

Specified by:
setAllReplicaDatasetsByRef in interface IReplicaEdit2
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.IEnumReplicaDataset (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAccessType

public void setAccessType(int rhs1)
                   throws IOException,
                          AutomationException
Replica access type.

Product Availability

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

Specified by:
setAccessType in interface IReplicaEdit2
Parameters:
rhs1 - A com.esri.arcgis.geodatabase.esriReplicaAccessType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReconcilePolicyType

public void setReconcilePolicyType(int rhs1)
                            throws IOException,
                                   AutomationException
Replica reconcile policy.

Product Availability

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

Specified by:
setReconcilePolicyType in interface IReplicaEdit2
Parameters:
rhs1 - A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSibConnectionString

public void setSibConnectionString(String rhs1)
                            throws IOException,
                                   AutomationException
The sib connection string for a replica.

Product Availability

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

Specified by:
setSibConnectionString in interface IReplicaEdit2
Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.