com.esri.arcgis.geodatabase
Class AttachmentManager

java.lang.Object
  extended by com.esri.arcgis.geodatabase.AttachmentManager
All Implemented Interfaces:
IAttachmentManager, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class AttachmentManager
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAttachmentManager

.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
AttachmentManager(Object obj)
          Construct a AttachmentManager using a reference to such an object returned from ArcGIS Engine or 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.
 boolean equals(Object o)
          Compare this object with another
 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.
 int hashCode()
          the hashcode for this object
 boolean isHasGlobalID()
          Indicates if the attachments have a global object identity field.
 void updateAttachment(IAttachment att)
          Updates the attachment.
 
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

AttachmentManager

public AttachmentManager(Object obj)
                  throws IOException
Construct a AttachmentManager using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to AttachmentManager.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
AttachmentManager o = (AttachmentManager)obj; // will not work

AttachmentManager o = new AttachmentManager(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems AttachmentManager theAttachmentManager = (AttachmentManager) obj;
Method Detail

equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

addAttachment

public 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.

Specified by:
addAttachment in interface IAttachmentManager
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

public 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.

Specified by:
getAttachmentsByParentIDs in interface IAttachmentManager
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

public 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.

Specified by:
getAttachmentsByAttachmentIDs in interface IAttachmentManager
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

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

Product Availability

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

Specified by:
updateAttachment in interface IAttachmentManager
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

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

Product Availability

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

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

deleteAttachmentsForParent

public 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.

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

isHasGlobalID

public 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.

Specified by:
isHasGlobalID in interface IAttachmentManager
Returns:
The hasGlobalID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.