com.esri.arcgis.geodatabase
Interface IAttachmentManager

All Superinterfaces:
Serializable
All Known Implementing Classes:
AttachmentManager, IAttachmentManagerProxy

public interface IAttachmentManager
extends Serializable

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 int addAttachment(int oID, IAttachment att)
          Adds an attachment to the object identified by the oid.
 void deleteAttachment(int attID)
          Deletes the attachment identified with attID.
 void deleteAttachmentsForParent(int oID)
          Deletes all attachments for the object with oid.
 IEnumAttachment getAttachmentsByAttachmentIDs(ILongArray attIDs, boolean infosOnly)
          Returns the attachments for the attachments with the attachment ids specified in the attIDs argument.
 IEnumAttachment getAttachmentsByParentIDs(ILongArray oids, boolean infosOnly)
          Returns the attachments for the objects with the object ids specified in the oids argument.
 boolean isHasGlobalID()
          Indicates if the attachments have a global object identity field.
 void updateAttachment(IAttachment att)
          Updates the attachment.
 

Method Detail

addAttachment

int addAttachment(int oID,
                  IAttachment att)
                  throws IOException,
                         AutomationException
Adds an attachment to the object identified by the oid.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
oID - The oID (in)
att - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Returns:
The attID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByParentIDs

IEnumAttachment getAttachmentsByParentIDs(ILongArray oids,
                                          boolean infosOnly)
                                          throws IOException,
                                                 AutomationException
Returns the attachments for the objects with the object ids specified in the oids argument.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
oids - A reference to a com.esri.arcgis.system.ILongArray (in)
infosOnly - The infosOnly (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumAttachment
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByAttachmentIDs

IEnumAttachment getAttachmentsByAttachmentIDs(ILongArray attIDs,
                                              boolean infosOnly)
                                              throws IOException,
                                                     AutomationException
Returns the attachments for the attachments with the attachment ids specified in the attIDs argument.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
attIDs - A reference to a com.esri.arcgis.system.ILongArray (in)
infosOnly - The infosOnly (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumAttachment
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateAttachment

void updateAttachment(IAttachment att)
                      throws IOException,
                             AutomationException
Updates the attachment.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
att - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttachment

void deleteAttachment(int attID)
                      throws IOException,
                             AutomationException
Deletes the attachment identified with attID.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
attID - The attID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttachmentsForParent

void deleteAttachmentsForParent(int oID)
                                throws IOException,
                                       AutomationException
Deletes all attachments for the object with oid.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
oID - The oID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasGlobalID

boolean isHasGlobalID()
                      throws IOException,
                             AutomationException
Indicates if the attachments have a global object identity field.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The hasGlobalID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.