|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.GPReplicaDescription
public class GPReplicaDescription
Defines the data to replicate or extract.
The GPReplicaDescription coclass is used during replica creation and data extraction to describe the data and schema to include. See the CreateReplica methods on the IGeoDataServer and IReplicationAgent interfaces,
It can also be accessed from existing replicas to determine the schema associated with a replica and the filters used. See the IGPReplica interface for more information.
Constructor Summary | |
---|---|
GPReplicaDescription()
Constructs a GPReplicaDescription using ArcGIS Engine. |
|
GPReplicaDescription(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPReplicaDescription theGPReplicaDescription = (GPReplicaDescription) 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 |
String |
getAsText()
Provides the value of the value object. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace). |
int |
getModelType()
The replica model type. |
IGeometry |
getQueryGeometry()
The shape that determines which features are replicated. |
IGPReplicaDatasets |
getReplicaDatasets()
The datasets in the replica. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getSpatialRelation()
Defines how the shape returned by the QueryGeometry property is applied during replication and synchronization. |
int |
hashCode()
the hashcode for this object |
IGPDataType |
IGPValue_getDataType()
The data type of the value object. |
void |
init(IReplica replica)
Initializes the object from an existing replica. |
void |
isDirty()
isDirty |
boolean |
isEmpty()
Indicates if the value object is empty. |
boolean |
isSingleGeneration()
Indicates if the replica is a check-out. |
boolean |
isTransferRelatedObjects()
Indicates if related objects are replicated. |
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. |
IGPMessage |
setAsText(String text)
Provides the value of the value object with the given string value. |
void |
setModelType(int modelType)
The replica model type. |
void |
setQueryGeometryByRef(IGeometry queryGeometry)
The shape that determines which features are replicated. |
void |
setReplicaDatasetsByRef(IGPReplicaDatasets replicaDatasets)
The datasets in the replica. |
void |
setSingleGeneration(boolean singleGeneration)
Indicates if the replica is a check-out. |
void |
setSpatialRelation(int spatialRelation)
Defines how the shape returned by the QueryGeometry property is applied during replication and synchronization. |
void |
setTransferRelatedObjects(boolean transferRelObjects)
Indicates if related objects are replicated. |
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 GPReplicaDescription() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GPReplicaDescription(Object obj) throws IOException
GPReplicaDescription theGPReplicaDescription = (GPReplicaDescription) obj;
obj
to GPReplicaDescription
.
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 init(IReplica replica) throws IOException, AutomationException
Initialzes a GPReplicaDescription object from an existing Replica in the geodatabase. The object describes the data that has been replicated.
init
in interface IGPReplicaDescription
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 setModelType(int modelType) throws IOException, AutomationException
The ModelType defines whether to output the data as simple datasets (esriModelTypeSimple) or as they are defined in the parent replica geodatabase (esriModelTypeFullGeodatabase).
By default this property is set to esriModelTypeFullGeodatabase.
See the esriReplicaModelType enumeration for more information.
setModelType
in interface IGPReplicaDescription
modelType
- A com.esri.arcgis.geodatabase.esriReplicaModelType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getModelType() throws IOException, AutomationException
This property returns the ModelType for existng replicas and allows you to set the type when creating a replica. Only one way replicas can have a type of either esriModelTypeSimple or esriModelTypeFullGeodatabase. Two way and check-out replicas always have a esriModelTypeFullGeodatabase model type.
The ModelType defines whether to output the data as simple datasets (esriModelTypeSimple) or as they are defined in the parent replica geodatabase (esriModelTypeFullGeodatabase). For example, when creating a replica from data with complex types such as a topologies or a geometric networks, a full model type includes the topolgies and geometric networks while the simple model does not.
By default this property is set to esriModelTypeFullGeodatabase.
getModelType
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSingleGeneration(boolean singleGeneration) throws IOException, AutomationException
Determines whether replica created will be a check-out replica (single generation) or a multi-generation replica (includes two way and one way replicas).
To create a check-out replica set this property to TRUE. By default this is set to TRUE.
When creating a two way or one way replica set this to FALSE. Use the IGPReplicaOptions::AccessType property to specify to create either a two way or one way replica. See the GPReplicaOptions coclass for more information.
setSingleGeneration
in interface IGPReplicaDescription
singleGeneration
- The singleGeneration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSingleGeneration() throws IOException, AutomationException
Returns TRUE if the replica is a check-out replica (single generation replica). Returns FALSE if replica is either a two way or one way replica.
isSingleGeneration
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialRelation(int spatialRelation) throws IOException, AutomationException
This property defines how the shape returned by the Geometry property is applied during replication. For example, if the geometry is a polygon and the SpatialRelation is esriSpatialRelIntersects, any features that intersect the polygon are replicated.
By default this property is set to esriSpatialRelIntersects. See the esriSpatialRelEnum enumeration for more information.
setSpatialRelation
in interface IGPReplicaDescription
spatialRelation
- A com.esri.arcgis.geodatabase.esriSpatialRelEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSpatialRelation() throws IOException, AutomationException
This property defines how the shape returned by the Geometry property is applied during replication. For example, if the geometry is a polygon and the SpatialRelation is esriSpatialRelIntersects, any features that intersect the polygon are replicated.
By default this property is set to esriSpatialRelIntersects. See the esriSpatialRelEnum enumeration for more information.
getSpatialRelation
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setQueryGeometryByRef(IGeometry queryGeometry) throws IOException, AutomationException
Set this property if you want to add an association with the specified shape to determine the features to replicate. The association is defined by the SpatialRelation property. For example, if the Geometry is a polygon and the SpatialRelation is esriSpatialRelIntersects, any features that intersect the polygon are replicated.
The SpatialReference of the geometry is significant. Data from the replica feature classes gets projected into this spatial reference when the geometry association is applied. If the spatial reference of the geometry is not set, the features you expect to get replicated may not be included.
By default, the geometry is applied to all datasets in the replica description during replication.
setQueryGeometryByRef
in interface IGPReplicaDescription
queryGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry getQueryGeometry() throws IOException, AutomationException
This property returns the shape that is used to determine which features are to be replicated. The SpatialRelation property returns how this shape is applied as a filter. For example, if the Geometry is a polygon and the SpatialRelation is esriSpatialRelIntersects, any features that intersect the polygon are replicated.
If a geometry is not used for the replica, nothing is returned.
By default, the geometry is applied to all datasets in the replica description during replication.
getQueryGeometry
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReplicaDatasetsByRef(IGPReplicaDatasets replicaDatasets) throws IOException, AutomationException
setReplicaDatasetsByRef
in interface IGPReplicaDescription
replicaDatasets
- A reference to a com.esri.arcgis.geodatabase.IGPReplicaDatasets (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPReplicaDatasets getReplicaDatasets() throws IOException, AutomationException
getReplicaDatasets
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTransferRelatedObjects(boolean transferRelObjects) throws IOException, AutomationException
TransferRelatedObjects determines whether related objects will be replicated.
If this is set to TRUE related objects will be replicated. TransferRelatedObjects is set to TRUE by default. If you don't want to replicate related objects set this property to FALSE.
setTransferRelatedObjects
in interface IGPReplicaDescription
transferRelObjects
- The transferRelObjects (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTransferRelatedObjects() throws IOException, AutomationException
TransferRelatedObjects determines whether related objects will be replicated.
If this is set to TRUE related objects will be replicated. TransferRelatedObjects is set to TRUE by default.
isTransferRelatedObjects
in interface IGPReplicaDescription
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 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 |