|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.GPReplicaOptions
public class GPReplicaOptions
Defines replica options.
When creating a replica, the GPReplicaOptions define replica options such as the type of replica and the connection strings to the geodatabases involved. This is used with the CreateReplica methods on the GeoDataServer and ReplicationAgent classes.
Constructor Summary | |
---|---|
GPReplicaOptions()
Constructs a GPReplicaOptions using ArcGIS Engine. |
|
GPReplicaOptions(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPReplicaOptions theGPReplicaOptions = (GPReplicaOptions) obj; |
Method Summary | |
---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
int |
getAccessType()
The replica access type. |
String |
getChildConnectionString()
The connection string for the child geodatabase. |
int |
getChildReconcilePolicy()
The childs replica reconcile property. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace). |
String |
getParentConnectionString()
The connection string for the parent geodatabase. |
int |
getParentReconcilePolicy()
The parents replica reconcile policy. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
boolean |
isChildFirstSender()
Indicates if the child replica will be the first sender. |
void |
isDirty()
isDirty |
boolean |
isIncludeMapLayers()
isIncludeMapLayers |
boolean |
isRegisterReplicaOnly()
Indicates if the replica will be created using the register existing data only option. |
boolean |
isResolveDatasetNameConflicts()
Resolve dataset name conflicts when creating replicas. |
boolean |
isReturnAllExpandedDatasets()
Return all datasets including feature datasets, topologies, and geometric networks when expanding. |
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)
The replica access type. |
void |
setChildConnectionString(String childConnectionString)
The connection string for the child geodatabase. |
void |
setChildReconcilePolicy(int childPolicy)
The childs replica reconcile property. |
void |
setIncludeMapLayers(boolean includeMapLayers)
setIncludeMapLayers |
void |
setIsChildFirstSender(boolean childIsFirstSender)
Indicates if the child replica will be the first sender. |
void |
setParentConnectionString(String parentConnectionString)
The connection string for the parent geodatabase. |
void |
setParentReconcilePolicy(int parentPolicy)
The parents replica reconcile policy. |
void |
setRegisterReplicaOnly(boolean registerReplicaData)
Indicates if the replica will be created using the register existing data only option. |
void |
setResolveDatasetNameConflicts(boolean resolveNameConflicts)
Resolve dataset name conflicts when creating replicas. |
void |
setReturnAllExpandedDatasets(boolean returnAllExpandedDatasets)
Return all datasets including feature datasets, topologies, and geometric networks when expanding. |
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 GPReplicaOptions() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GPReplicaOptions(Object obj) throws IOException
GPReplicaOptions theGPReplicaOptions = (GPReplicaOptions) obj;
obj
to GPReplicaOptions
.
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 void setIsChildFirstSender(boolean childIsFirstSender) throws IOException, AutomationException
setIsChildFirstSender
in interface IGPReplicaOptions
childIsFirstSender
- The childIsFirstSender (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isChildFirstSender() throws IOException, AutomationException
isChildFirstSender
in interface IGPReplicaOptions
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 IGPReplicaOptions
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
getAccessType
in interface IGPReplicaOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setChildReconcilePolicy(int childPolicy) throws IOException, AutomationException
setChildReconcilePolicy
in interface IGPReplicaOptions
childPolicy
- A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getChildReconcilePolicy() throws IOException, AutomationException
For the current release of ArcGIS, the only valid value for this property is esriReplicaResolveConflictsNone. When creating a replica, an error occurs if you try to use differnet enumeration value.
getChildReconcilePolicy
in interface IGPReplicaOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParentReconcilePolicy(int parentPolicy) throws IOException, AutomationException
setParentReconcilePolicy
in interface IGPReplicaOptions
parentPolicy
- A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getParentReconcilePolicy() throws IOException, AutomationException
For the current release of ArcGIS, the only valid value for this property is esriReplicaResolveConflictsNone. When creating a replica, an error occurs if you try to use differnet enumeration value.
getParentReconcilePolicy
in interface IGPReplicaOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRegisterReplicaOnly(boolean registerReplicaData) throws IOException, AutomationException
setRegisterReplicaOnly
in interface IGPReplicaOptions
registerReplicaData
- The registerReplicaData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRegisterReplicaOnly() throws IOException, AutomationException
isRegisterReplicaOnly
in interface IGPReplicaOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setChildConnectionString(String childConnectionString) throws IOException, AutomationException
setChildConnectionString
in interface IGPReplicaOptions
childConnectionString
- The childConnectionString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getChildConnectionString() throws IOException, AutomationException
Set this property to the connection string for the ArcSDE geodatabase or the geodata service referencing the ArcSDE geodatabase that will host the child replica. Setting the property stores the connection string with the parent replica. This allows you to synchronzie without having to ask for the child replicas geodatabase when synchronizing from the parent.
getChildConnectionString
in interface IGPReplicaOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParentConnectionString(String parentConnectionString) throws IOException, AutomationException
setParentConnectionString
in interface IGPReplicaOptions
parentConnectionString
- The parentConnectionString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getParentConnectionString() throws IOException, AutomationException
Set this property to the connection string for the ArcSDE geodatabase or the geodata service referencing the ArcSDE geodatabase that will host the parent replica. Setting the property stores the connection string with the child replica. This allows you to synchronzie without having to ask for the parent replicas geodatabase when synchronizing from the child.
getParentConnectionString
in interface IGPReplicaOptions
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 IGPReplicaOptions2
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 IGPReplicaOptions2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIncludeMapLayers(boolean includeMapLayers) throws IOException, AutomationException
setIncludeMapLayers
in interface IGPReplicaOptions2
includeMapLayers
- The includeMapLayers (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIncludeMapLayers() throws IOException, AutomationException
isIncludeMapLayers
in interface IGPReplicaOptions2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReturnAllExpandedDatasets(boolean returnAllExpandedDatasets) throws IOException, AutomationException
setReturnAllExpandedDatasets
in interface IGPReplicaOptions2
returnAllExpandedDatasets
- The returnAllExpandedDatasets (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isReturnAllExpandedDatasets() throws IOException, AutomationException
isReturnAllExpandedDatasets
in interface IGPReplicaOptions2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResolveDatasetNameConflicts(boolean resolveNameConflicts) throws IOException, AutomationException
setResolveDatasetNameConflicts
in interface IGPReplicaOptions2
resolveNameConflicts
- The resolveNameConflicts (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isResolveDatasetNameConflicts() throws IOException, AutomationException
isResolveDatasetNameConflicts
in interface IGPReplicaOptions2
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 |