|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IGPDataType IGPValue_getDataType() throws IOException, AutomationException
IGPValue_getDataType
in interface IGPValue
IOException
- 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 IGPValue
IOException
- 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 IGPValue
IOException
- 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 IGPValue
IOException
- 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 IGPValue
text
- 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 IGPReplica
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.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 IGPReplica
replicaName
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setID(int replicaID) throws IOException, AutomationException
setID
in interface IGPReplica
replicaID
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGUID(String gUID) throws IOException, AutomationException
setGUID
in interface IGPReplica
gUID
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRole(int replicaRole) throws IOException, AutomationException
setRole
in interface IGPReplica
replicaRole
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAccessType(int accessType) throws IOException, AutomationException
setAccessType
in interface IGPReplica
accessType
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCreationDate(Object replicaRole) throws IOException, AutomationException
setCreationDate
in interface IGPReplica
replicaRole
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReplicaVersion(String replicaVersion) throws IOException, AutomationException
setReplicaVersion
in interface IGPReplica
replicaVersion
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMyGenerationNumber(int pMyGenerationNumber) throws IOException, AutomationException
setMyGenerationNumber
in interface IGPReplica
pMyGenerationNumber
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSibGenerationNumber(int pSibGenerationNumber) throws IOException, AutomationException
setSibGenerationNumber
in interface IGPReplica
pSibGenerationNumber
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSibMyGenerationNumber(int pSibMyGenerationNumber) throws IOException, AutomationException
setSibMyGenerationNumber
in interface IGPReplica
pSibMyGenerationNumber
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReplicaState(int replicaState) throws IOException, AutomationException
setReplicaState
in interface IGPReplica
replicaState
- 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 IGPReplica
IOException
- 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 IGPReplica
sibConnectionString
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReplicaDescriptionByRef(IGPReplicaDescription replicaDescription) throws IOException, AutomationException
setReplicaDescriptionByRef
in interface IGPReplica
replicaDescription
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReconcilePolicy(int policy) throws IOException, AutomationException
setReconcilePolicy
in interface IGPReplica
policy
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHasConflicts(boolean hasConflicts) throws IOException, AutomationException
setHasConflicts
in interface IGPReplica
hasConflicts
- 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 IGPReplica
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseArchiving(boolean useArchiving) throws IOException, AutomationException
setUseArchiving
in interface IGPReplica2
useArchiving
- 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 IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getMyTime() throws IOException, AutomationException
getMyTime
in interface IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMyTime(Object myTime) throws IOException, AutomationException
setMyTime
in interface IGPReplica2
myTime
- 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 IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSibTime(Object sibTime) throws IOException, AutomationException
setSibTime
in interface IGPReplica2
sibTime
- 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 IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSibMyTime(Object sibMyTime) throws IOException, AutomationException
setSibMyTime
in interface IGPReplica2
sibMyTime
- 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 IGPReplica2
inTransportFile
- 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 IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResolveDatasetNameConflicts(boolean resolveDatasetNameConflicts) throws IOException, AutomationException
setResolveDatasetNameConflicts
in interface IGPReplica2
resolveDatasetNameConflicts
- 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 IGPReplica2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- 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 IXMLSerialize
data
- 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 IPersist
pClassID
- 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 IPersistStream
IOException
- 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 IPersistStream
pstm
- 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 IPersistStream
pstm
- 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 IPersistStream
pcbSize
- 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 IXMLVersionSupport
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |