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, java.io.Serializable

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

COM Class 'Replica'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'Esri Replica object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.IReplica3
IID, IIDa3213932_009d_4a49_ae5e_945f32e079f2, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IReplica2
IID3b29c4b9_4989_4871_8006_57dcc67f59d9
 
Fields inherited from interface com.esri.arcgis.geodatabase.IReplica
IIDc475452c_72f3_4277_9fb7_fd8099665cec
 
Fields inherited from interface com.esri.arcgis.geodatabase.IReplicaEdit2
IID, IIDe4f414d0_398a_47b8_8176_daa6860cdd77, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IReplicaEdit
IID891ac2b8_4744_454c_8e16_1c46c38fc0b4
 
Constructor Summary
Replica()
          Constructs a Replica using ArcGIS Engine.
Replica(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Replica theReplica = (Replica) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getAccessType()
          Replica access type.
 IEnumReplicaDataset getAllReplicaDatasets()
          The replica datasets for the replica.
static java.lang.String getClsid()
          getClsid.
 IWorkspaceName getConnectionInfo()
          The WorkspaceName object for the master geodatabase.
 IReplicaDescription getDescription()
          The ReplicaDescription associated with the replica.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IEnumReplicaLog getLog()
          Replica log associated with this replica.
 int getMyGenerationNumber()
          The generation number for a replica.
 java.lang.String getName()
          The name of the replica.
 java.lang.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.
 java.lang.String getReplicaGuid()
          The guid of the replica.
 int getReplicaID()
          The ID of the replica.
 java.lang.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.
 java.lang.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.
 java.lang.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 release()
          Release a Replica.
 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(java.lang.String rhs1)
          The name of the replica.
 void setOwner(java.lang.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(java.lang.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(java.lang.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(java.lang.String rhs1)
          The name of the replica version.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replica

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

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

Replica

public Replica(java.lang.Object obj)
        throws java.io.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:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a Replica.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getReplicaID

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

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

getName

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

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

getOwner

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

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

getVersion

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

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

getParentID

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

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

getReplicaDate

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

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

getReplicaGuid

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

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

getDescription

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

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

getConnectionInfo

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

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

getReplicaRole

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

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

getReplicaDatasets

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

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

getMyGenerationNumber

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

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

getSibGenerationNumber

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

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

getSibMyGenNumber

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

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

getLog

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

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

getAllReplicaDatasets

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

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

init2

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

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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAccessType

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

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

getReconcilePolicyType

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

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

isHasConflicts

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

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

getReplicaReceivingVersion

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

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

getReplicaState

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

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

getSibConnectionString

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

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

isUseArchiving

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

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

setUseArchiving

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

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

setReplicaID

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

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

setName

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

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

setOwner

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

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

setVersion

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

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

setParentID

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

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

setReplicaDate

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

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

setReplicaGuid

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

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

setDescriptionByRef

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

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

setConnectionInfoByRef

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

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

setReplicaRole

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

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

setReplicaDatasetsByRef

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

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

init

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

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

setSibMyGenNumber

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

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

setAllReplicaDatasetsByRef

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

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

setAccessType

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

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

setReconcilePolicyType

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

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

setSibConnectionString

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

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