|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.ReplicaValidator
public class ReplicaValidator
Validates a check-out with the master geodatabase.
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.
ICheckOut
,
IReplicaValidation
,
ICheckOut.checkOutData(com.esri.arcgis.geodatabase.IReplicaDescription, boolean, String)
,
CheckOut
,
Serialized FormConstructor 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 |
---|
public ReplicaValidator() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ReplicaValidator(Object obj) throws IOException
ReplicaValidator theReplicaValidator = (ReplicaValidator) obj;
obj
to ReplicaValidator
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean validateReplicaPair(IWorkspaceName parentDB, String replicaName, IWorkspaceName checkOutDB) throws IOException, AutomationException
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.
validateReplicaPair
in interface IReplicaValidation
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean validateDeltaFile(IWorkspaceName parentDB, String replicaName, String deltaFileName, int sourceType) throws IOException, AutomationException
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.
validateDeltaFile
in interface IReplicaValidation
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void validateReplicaSchema(IReplica replica) throws IOException, AutomationException
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.
validateReplicaSchema
in interface IReplicaValidation2
replica
- A reference to a com.esri.arcgis.geodatabase.IReplica (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |