|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.GPReplica
public class GPReplica
A GPReplica object
A class the represents a replica in a geodatabase.
| Constructor Summary | |
|---|---|
GPReplica()
Constructs a GPReplica using ArcGIS Engine. |
|
GPReplica(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPReplica theGPReplica = (GPReplica) obj; |
|
| Method Summary | |
|---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
void |
empty()
Clears the value object. |
boolean |
equals(Object o)
Compare this object with another |
int |
getAccessType()
Replica access type. |
String |
getAsText()
Provides the value of the value object. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCreationDate()
The date the replica was created. |
String |
getGUID()
The guid of the replica. |
int |
getID()
The ID of the replica. |
String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace). |
int |
getMyGenerationNumber()
The generation number for the replica. |
Object |
getMyTime()
getMyTime |
String |
getName()
Name of the replica. |
int |
getReconcilePolicy()
The replica reconcile policy. |
IGPReplicaDescription |
getReplicaDescription()
The replica description for the replica. |
int |
getReplicaState()
The replica state. |
String |
getReplicaVersion()
The name of the replica version. |
int |
getRole()
The replica role. |
String |
getSibConnectionString()
The connection string of the relative replica. |
int |
getSibGenerationNumber()
The generation number of the relative replica. |
int |
getSibMyGenerationNumber()
The last generation number that has been acknowledged by the relative replica. |
Object |
getSibMyTime()
getSibMyTime |
Object |
getSibTime()
getSibTime |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
IGPDataType |
IGPValue_getDataType()
The data type of the value object. |
void |
init(IReplica replica)
Initializes the class using an IReplica object. |
void |
isDirty()
isDirty |
boolean |
isEmpty()
Indicates if the value object is empty. |
boolean |
isHasConflicts()
Indicates if the replica is in conflict. |
boolean |
isInTransportFile()
isInTransportFile |
boolean |
isResolveDatasetNameConflicts()
Resolve dataset name conflicts when creating replicas. |
boolean |
isUseArchiving()
Use archiving instead of versions to track changes in one way replicas. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setAccessType(int accessType)
Replica access type. |
IGPMessage |
setAsText(String text)
Provides the value of the value object with the given string value. |
void |
setCreationDate(Object replicaRole)
The date the replica was created. |
void |
setGUID(String gUID)
The guid of the replica. |
void |
setHasConflicts(boolean hasConflicts)
Indicates if the replica is in conflict. |
void |
setID(int replicaID)
The ID of the replica. |
void |
setInTransportFile(boolean inTransportFile)
setInTransportFile |
void |
setMyGenerationNumber(int pMyGenerationNumber)
The generation number for the replica. |
void |
setMyTime(Object myTime)
setMyTime |
void |
setName(String replicaName)
Name of the replica. |
void |
setReconcilePolicy(int policy)
The replica reconcile policy. |
void |
setReplicaDescriptionByRef(IGPReplicaDescription replicaDescription)
The replica description for the replica. |
void |
setReplicaState(int replicaState)
The replica state. |
void |
setReplicaVersion(String replicaVersion)
The name of the replica version. |
void |
setResolveDatasetNameConflicts(boolean resolveDatasetNameConflicts)
Resolve dataset name conflicts when creating replicas. |
void |
setRole(int replicaRole)
The replica role. |
void |
setSibConnectionString(String sibConnectionString)
The connection string of the relative replica. |
void |
setSibGenerationNumber(int pSibGenerationNumber)
The generation number of the relative replica. |
void |
setSibMyGenerationNumber(int pSibMyGenerationNumber)
The last generation number that has been acknowledged by the relative replica. |
void |
setSibMyTime(Object sibMyTime)
setSibMyTime |
void |
setSibTime(Object sibTime)
setSibTime |
void |
setUseArchiving(boolean useArchiving)
Use archiving instead of versions to track changes in one way replicas. |
void |
writeExternal(ObjectOutput out)
|
| 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 GPReplica()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GPReplica(Object obj)
throws IOException
GPReplica theGPReplica = (GPReplica) obj;
obj to GPReplica.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public IGPDataType IGPValue_getDataType()
throws IOException,
AutomationException
IGPValue_getDataType in interface IGPValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEmpty()
throws IOException,
AutomationException
The IsEmpty method returns if this Value object has been set or not.
isEmpty in interface IGPValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void empty()
throws IOException,
AutomationException
The Empty method clears this Value object and releases any associated objects.
empty in interface IGPValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getAsText()
throws IOException,
AutomationException
The GetAsText method returns this Value object as a text string. For DataElement value objects it is the NameString. For simple value objects it is the text string for the scalar value.
getAsText in interface IGPValueIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPMessage setAsText(String text)
throws IOException,
AutomationException
The SetAsText method sets the value of this Value object as a text string. For DataElement value objects it is the NameString. For simple value objects it is the text string representing the scalar value.
setAsText in interface IGPValuetext - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void init(IReplica replica)
throws IOException,
AutomationException
init in interface IGPReplicareplica - A reference to a com.esri.arcgis.geodatabase.IReplica (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String replicaName)
throws IOException,
AutomationException
The replica access type. Returns a value of the esriReplicaAccessType enumeration. See the esriReplicaAccessType enumeration for more information.
setName in interface IGPReplicareplicaName - The replicaName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setID(int replicaID)
throws IOException,
AutomationException
setID in interface IGPReplicareplicaID - The replicaID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getID()
throws IOException,
AutomationException
getID in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGUID(String gUID)
throws IOException,
AutomationException
setGUID in interface IGPReplicagUID - The gUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getGUID()
throws IOException,
AutomationException
getGUID in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRole(int replicaRole)
throws IOException,
AutomationException
setRole in interface IGPReplicareplicaRole - A com.esri.arcgis.geodatabase.esriReplicaRole constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getRole()
throws IOException,
AutomationException
getRole in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAccessType(int accessType)
throws IOException,
AutomationException
setAccessType in interface IGPReplicaaccessType - A com.esri.arcgis.geodatabase.esriReplicaAccessType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAccessType()
throws IOException,
AutomationException
This property returns a value of the esriReplicaAccessType enumeration indicating the replicas access type. See the esriReplicaAccessType enumeration for more information.
getAccessType in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCreationDate(Object replicaRole)
throws IOException,
AutomationException
setCreationDate in interface IGPReplicareplicaRole - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCreationDate()
throws IOException,
AutomationException
The replica creation date.
getCreationDate in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReplicaVersion(String replicaVersion)
throws IOException,
AutomationException
setReplicaVersion in interface IGPReplicareplicaVersion - The replicaVersion (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getReplicaVersion()
throws IOException,
AutomationException
The version the replica was created from.
getReplicaVersion in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMyGenerationNumber(int pMyGenerationNumber)
throws IOException,
AutomationException
setMyGenerationNumber in interface IGPReplicapMyGenerationNumber - The pMyGenerationNumber (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMyGenerationNumber()
throws IOException,
AutomationException
Returns the current generation number of a replica.
getMyGenerationNumber in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSibGenerationNumber(int pSibGenerationNumber)
throws IOException,
AutomationException
setSibGenerationNumber in interface IGPReplicapSibGenerationNumber - The pSibGenerationNumber (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSibGenerationNumber()
throws IOException,
AutomationException
Returns the generation number for a replica's sibling as it is known to the replica.
The generation number returned is based on the replicas last received message from it's relative.
getSibGenerationNumber in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSibMyGenerationNumber(int pSibMyGenerationNumber)
throws IOException,
AutomationException
setSibMyGenerationNumber in interface IGPReplicapSibMyGenerationNumber - The pSibMyGenerationNumber (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSibMyGenerationNumber()
throws IOException,
AutomationException
Returns the generation number that the sibling thinks is the replicas generation number.
The generation number returned is based on the replicas last received acknowledgement message from it's relative.
getSibMyGenerationNumber in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReplicaState(int replicaState)
throws IOException,
AutomationException
setReplicaState in interface IGPReplicareplicaState - A com.esri.arcgis.geodatabase.esriReplicaState constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getReplicaState()
throws IOException,
AutomationException
Returns the replica state as a value of the esriReplicaState enumeration. See the esriReplicaState enumeration for more information.
getReplicaState in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSibConnectionString(String sibConnectionString)
throws IOException,
AutomationException
Use this method to set the connection string of the relative replicas geodatabase.
setSibConnectionString in interface IGPReplicasibConnectionString - The sibConnectionString (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSibConnectionString()
throws IOException,
AutomationException
Returns the connection string to the sibling replica database if it has been set.
getSibConnectionString in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReplicaDescriptionByRef(IGPReplicaDescription replicaDescription)
throws IOException,
AutomationException
setReplicaDescriptionByRef in interface IGPReplicareplicaDescription - A reference to a com.esri.arcgis.geodatabase.IGPReplicaDescription (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPReplicaDescription getReplicaDescription()
throws IOException,
AutomationException
Returns the replica description. See the GPReplicaDescription coclass for more information.
getReplicaDescription in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReconcilePolicy(int policy)
throws IOException,
AutomationException
setReconcilePolicy in interface IGPReplicapolicy - A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getReconcilePolicy()
throws IOException,
AutomationException
Returns the replica reconcile policy as a value of the esriReplicaReconcilePolicyType enumeration. See the esriReplicaReconcilePolicyType enumeration for more information.
This property will always return esriReplicaReconcilePolicyNone as reconcile policies are not stored with the replica. Reconcile policies are specified at synchronization time. See the IGeoDataServer::ImportReplicaDataChanges and IReplicationAgent::SynchronizeReplica methods for more information.
getReconcilePolicy in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHasConflicts(boolean hasConflicts)
throws IOException,
AutomationException
setHasConflicts in interface IGPReplicahasConflicts - The hasConflicts (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasConflicts()
throws IOException,
AutomationException
isHasConflicts in interface IGPReplicaIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseArchiving(boolean useArchiving)
throws IOException,
AutomationException
setUseArchiving in interface IGPReplica2useArchiving - The useArchiving (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseArchiving()
throws IOException,
AutomationException
isUseArchiving in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getMyTime()
throws IOException,
AutomationException
getMyTime in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMyTime(Object myTime)
throws IOException,
AutomationException
setMyTime in interface IGPReplica2myTime - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getSibTime()
throws IOException,
AutomationException
getSibTime in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSibTime(Object sibTime)
throws IOException,
AutomationException
setSibTime in interface IGPReplica2sibTime - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getSibMyTime()
throws IOException,
AutomationException
getSibMyTime in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSibMyTime(Object sibMyTime)
throws IOException,
AutomationException
setSibMyTime in interface IGPReplica2sibMyTime - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setInTransportFile(boolean inTransportFile)
throws IOException,
AutomationException
setInTransportFile in interface IGPReplica2inTransportFile - The inTransportFile (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isInTransportFile()
throws IOException,
AutomationException
isInTransportFile in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResolveDatasetNameConflicts(boolean resolveDatasetNameConflicts)
throws IOException,
AutomationException
setResolveDatasetNameConflicts in interface IGPReplica2resolveDatasetNameConflicts - The resolveDatasetNameConflicts (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isResolveDatasetNameConflicts()
throws IOException,
AutomationException
isResolveDatasetNameConflicts in interface IGPReplica2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deserialize(IXMLSerializeData data)
throws IOException,
AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMinNamespaceSupported()
throws IOException,
AutomationException
getMinNamespaceSupported in interface IXMLVersionSupportIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||