com.esri.arcgis.geodatabasedistributed
Class ReplicaValidator

java.lang.Object
  extended by com.esri.arcgis.geodatabasedistributed.ReplicaValidator
All Implemented Interfaces:
IReplicaValidation, IReplicaValidation2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class ReplicaValidator
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IReplicaValidation, IReplicaValidation2

Validates a check-out with the master geodatabase.

Remarks

This coclass validates a check-out with a master geodatabase. Use this coclass to ensure that the check out was successful and before a check in to ensure that the check-out still exists and is valid in the master geodatabase.

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
ReplicaValidator()
          Constructs a ReplicaValidator using ArcGIS Engine.
ReplicaValidator(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicaValidator theReplicaValidator = (ReplicaValidator) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 boolean validateDeltaFile(IWorkspaceName parentDB, String replicaName, String deltaFileName, int sourceType)
          Indicates if the check-out in a delta database is valid.
 boolean validateReplicaPair(IWorkspaceName parentDB, String replicaName, IWorkspaceName checkOutDB)
          Indicates if the check-out in a check-out database is valid.
 void validateReplicaSchema(IReplica replica)
          Validates a replicas schema in the geodatabase.
 
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

ReplicaValidator

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

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

ReplicaValidator

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

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

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

validateReplicaPair

public boolean validateReplicaPair(IWorkspaceName parentDB,
                                   String replicaName,
                                   IWorkspaceName checkOutDB)
                            throws IOException,
                                   AutomationException
Indicates if the check-out in a check-out database is valid.

Remarks

The ValidateReplicaPair method validates a replica in a parent and child geodatabase. Applies to check-out replicas and two way and one way replicas. If FALSE is returned the replica is no longer valid.

This method takes both the parent and child workspaces, parentDB and checkoutDB. ReplicaName is the name of the replica to validate.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
validateReplicaPair in interface IReplicaValidation
Parameters:
parentDB - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
replicaName - The replicaName (in)
checkOutDB - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
Returns:
The isValid
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

validateDeltaFile

public boolean validateDeltaFile(IWorkspaceName parentDB,
                                 String replicaName,
                                 String deltaFileName,
                                 int sourceType)
                          throws IOException,
                                 AutomationException
Indicates if the check-out in a delta database is valid.

Remarks

The ValidateDeltaFile method validates a replica in a delta file. Applies to check-out replicas, two way replicas or one way replicas.

This method takes a workspace for the parent workspace. For check-out replicas this is the master geodatabase (now know as the parent replica geodatabase). For two way or one way replicas this can be either the parent or child workspace. The ReplicaName is the name of the replica. The DeltaFileName is the path for the delta file. SourceType is the type of delta file used. The delta file can be a delta geodatabase, delta file geodatabase, delta xml file, or a checkout geodatabase. See the esriCheckInSourceType enumeration for more information.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
validateDeltaFile in interface IReplicaValidation
Parameters:
parentDB - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
replicaName - The replicaName (in)
deltaFileName - The deltaFileName (in)
sourceType - A com.esri.arcgis.geodatabasedistributed.esriCheckInSourceType constant (in)
Returns:
The isValid
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

validateReplicaSchema

public void validateReplicaSchema(IReplica replica)
                           throws IOException,
                                  AutomationException
Validates a replicas schema in the geodatabase.

Remarks

The ValidateReplicaSchema method validates the replica's schema in the geodatabase. This method should be used after changes have been made to the replica's schema. For example dropping a table, or adding/dropping a field from data participating in the replica.

Product Availability

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

Specified by:
validateReplicaSchema in interface IReplicaValidation2
Parameters:
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.