com.esri.arcgis.geodatabasedistributed
Interface IReplicaValidation

All Superinterfaces:
Serializable
All Known Subinterfaces:
IReplicaValidation2
All Known Implementing Classes:
ReplicaValidator

public interface IReplicaValidation
extends Serializable

Provides access to members that validate a check-out.

Superseded By

IReplicaValidation2

Remarks

Apply these methods after the creation of a replica (check-out, two way or one way replica) to ensure the creation was successful and before checking in or synchronizing changes to ensure that the replica still exists and is valid on the target database.

If a FALSE is returned, the replica cannot be synchronized with the target database.

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

Method Summary
 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.
 

Method Detail

validateReplicaPair

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

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

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

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.