|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabasedistributed.GDSData
public class GDSData
An object that transports GeoDataServer data.
A GDSData instance is used whenever you need to export data from or import data into a GeoDataServer object. The GDSData class acts as a data carrier. Export operations, such as ExportReplicaDataChanges or CreateReplica, will return a GDSData instance. Import operations, such as ImportReplicaSchemaChanges or ImportAcknowledgement, will take a GDSData instance as an argument. These types of operations are normally performed when you are working in a disconnected environment. When working in a connected envronment, use the methods from the ReplicationAgent coclass.
When exporting, use the IGDSData::TransportType property to determine how the data was exported. If it was exported embedded (esriGDSTransportTypeEmbedded), the data exists in memory as a byte array. You can then use the IGDSData::EmbeddedData property to get the byte array and write it to a file. If it was exported to a URL (esriGDSTransportTypeURL), an export file with the data has been written to the virtual directory of the GIS server. The IGDSData::URL property returns the virtual directory location. The IGDSData::Compressed property returns whether or not the data has been compressed. The IGDSData::ConnectionProperties will contain the connection information for the GeoDataServer.
When importing, you must initialize the GDSData coclass appropriately by setting the properties of the IGDSData interface. If importing from a file at a URL or in a local directory, you need to set the IGDSData::URL property to the file location. You must also set the IGDSData::TransportType to URL. If importing from a byte array, you need to set the IGDSData::EmbeddedData property with the byte array and set IGDSData::TransportType to Embedded.
If using a URL, note that the GeoDataServer must be able to access the file location. For example, if importing from a local file into a GeoDataServer accessed through ArcGIS for Server, you must use embedded. This is because the GeoDataServer will not be able to access the local file directory as specified by the URL property.
When importing, you must also set IGDSData::Compressed to true if the data is compressed, or false if the data is not compressed. If importing from a secure server, you also need to set the IGDSData::ConnectionProperties with the proper credentials to access the data.
Constructor Summary | |
---|---|
GDSData()
Constructs a GDSData using ArcGIS Engine. |
|
GDSData(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GDSData theGDSData = (GDSData) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IPropertySet |
getConnectionProperties()
The properties to be used when downloading the data (if transport type is URL). |
byte[] |
getEmbeddedData()
The embedded replica data. |
String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace). |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getTransportType()
The transport type used to transfer the replica data. |
String |
getURL()
The url where the replica data is located. |
int |
hashCode()
the hashcode for this object |
boolean |
isCompressed()
Indicates whether the data has been compressed. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
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 |
setCompressed(boolean comp)
Indicates whether the data has been compressed. |
void |
setConnectionPropertiesByRef(IPropertySet connProps)
The properties to be used when downloading the data (if transport type is URL). |
void |
setEmbeddedData(byte[] data)
The embedded replica data. |
void |
setTransportType(int pTransport)
The transport type used to transfer the replica data. |
void |
setURL(String uRL)
The url where the replica data is located. |
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 GDSData() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GDSData(Object obj) throws IOException
GDSData theGDSData = (GDSData) obj;
obj
to GDSData
.
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 isCompressed() throws IOException, AutomationException
The get_Compressed method returns whether the data has been compressed. Compressed data is stored in the .zip format.
isCompressed
in interface IGDSData
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCompressed(boolean comp) throws IOException, AutomationException
setCompressed
in interface IGDSData
comp
- The comp (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTransportType() throws IOException, AutomationException
getTransportType
in interface IGDSData
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTransportType(int pTransport) throws IOException, AutomationException
The TransportType method returns a compression type. The CompressionType enumeration is used to specify the type of compression.
esriTransportType include the following:
0 - esriGDSTransportTypeEmbedded
1 - esriGDSTransportTypeUrl
2 - esriGDSTransportTypeFile
setTransportType
in interface IGDSData
pTransport
- A com.esri.arcgis.geodatabasedistributed.esriGDSTransportType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getURL() throws IOException, AutomationException
The URL is used to specify the location of the local or virtual directory where the data is located. This is not set when the TransportType of embedded.
getURL
in interface IGDSData
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setURL(String uRL) throws IOException, AutomationException
The URL method returns a string. The URL is used to specify the location of the actual or virtual directory. Note: The default directory location is the Temp folder.
setURL
in interface IGDSData
uRL
- The uRL (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getEmbeddedData() throws IOException, AutomationException
The EmbeddedData property returns a byte array with the actual data if the transport type is embedded.
getEmbeddedData
in interface IGDSData
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEmbeddedData(byte[] data) throws IOException, AutomationException
The EmbeddedData property returns a Byte. The EmbeddedData has a byte array with the actual data. The client needs to create a file with this array. This property is valid for GeoDataServer and GDSData coclasses. Note: The default directory location is the Temp folder.
setEmbeddedData
in interface IGDSData
data
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConnectionPropertiesByRef(IPropertySet connProps) throws IOException, AutomationException
setConnectionPropertiesByRef
in interface IGDSData
connProps
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getConnectionProperties() throws IOException, AutomationException
The connection properties needed to connect to the URL specified in the IGDSData::URL property.
This property does not need to be set if the data is embedded or if the URL allows anonymous access. If the URL has http authentication enabled, then it is recommended you use an encrypted communication channel which can be enabled through ssl.
getConnectionProperties
in interface IGDSData
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 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 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 IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
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 |