com.esri.arcgis.geodatabase
Class Attachment

java.lang.Object
  extended by com.esri.arcgis.geodatabase.Attachment
All Implemented Interfaces:
IAttachment, IAttachment2, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class Attachment
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IAttachment2

COM Class 'Attachment'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description '.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.IAttachment2
IID, IID475e3d30_5478_46c2_9547_09aa7076d787, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IAttachment
IID475e3d30_5478_46c2_9547_09aa7076dce6
 
Constructor Summary
Attachment()
          Constructs a Attachment using ArcGIS Engine.
Attachment(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Attachment theAttachment = (Attachment) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getAttachmentID()
          ID that uniquely identifies the attachment.
static java.lang.String getClsid()
          getClsid.
 java.lang.String getContentType()
          Content type that describes the attachment data.
 IMemoryBlobStream getData()
          Attachment data.
 java.lang.String getGlobalID()
          Global ID that uniquely identifies the attachment.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getName()
          Name of the attachment.
 java.lang.String getParentGlobalID()
          Parent global ID to which the attachment belongs.
 int getParentID()
          Parent ID to which the attachment belongs.
 int getSize()
          Size of the attachment data in bytes.
 int hashCode()
          the hashcode for this object
 void release()
          Release a Attachment.
 void setContentType(java.lang.String contentType)
          Content type that describes the attachment data.
 void setDataByRef(IMemoryBlobStream data)
          Attachment data.
 void setName(java.lang.String name)
          Name of the attachment.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
           throws java.io.IOException,
                  java.net.UnknownHostException
Constructs a Attachment using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

Attachment

public Attachment(java.lang.Object obj)
           throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Attachment theAttachment = (Attachment) obj;

Construct a Attachment using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Attachment.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a Attachment.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getParentGlobalID

public java.lang.String getParentGlobalID()
                                   throws java.io.IOException,
                                          AutomationException
Parent global ID to which the attachment belongs.

Specified by:
getParentGlobalID in interface IAttachment2
Returns:
The parentGlobalID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentID

public int getAttachmentID()
                    throws java.io.IOException,
                           AutomationException
ID that uniquely identifies the attachment.

Specified by:
getAttachmentID in interface IAttachment
Returns:
The attID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGlobalID

public java.lang.String getGlobalID()
                             throws java.io.IOException,
                                    AutomationException
Global ID that uniquely identifies the attachment.

Specified by:
getGlobalID in interface IAttachment
Returns:
The globalID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParentID

public int getParentID()
                throws java.io.IOException,
                       AutomationException
Parent ID to which the attachment belongs.

Specified by:
getParentID in interface IAttachment
Returns:
The oID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setName

public void setName(java.lang.String name)
             throws java.io.IOException,
                    AutomationException
Name of the attachment.

Specified by:
setName in interface IAttachment
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
Name of the attachment.

Specified by:
getName in interface IAttachment
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setContentType

public void setContentType(java.lang.String contentType)
                    throws java.io.IOException,
                           AutomationException
Content type that describes the attachment data.

Specified by:
setContentType in interface IAttachment
Parameters:
contentType - The contentType (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getContentType

public java.lang.String getContentType()
                                throws java.io.IOException,
                                       AutomationException
Content type that describes the attachment data.

Specified by:
getContentType in interface IAttachment
Returns:
The contentType
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSize

public int getSize()
            throws java.io.IOException,
                   AutomationException
Size of the attachment data in bytes.

Specified by:
getSize in interface IAttachment
Returns:
The size
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDataByRef

public void setDataByRef(IMemoryBlobStream data)
                  throws java.io.IOException,
                         AutomationException
Attachment data.

Specified by:
setDataByRef in interface IAttachment
Parameters:
data - A reference to a com.esri.arcgis.system.IMemoryBlobStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getData

public IMemoryBlobStream getData()
                          throws java.io.IOException,
                                 AutomationException
Attachment data.

Specified by:
getData in interface IAttachment
Returns:
A reference to a com.esri.arcgis.system.IMemoryBlobStream
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.