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, java.io.Serializable

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

COM Class 'AttachmentManager'. 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.IAttachmentManager
IID, IID52067577_796d_421a_8502_8f10d4ebd1fe, xxDummy
 
Constructor Summary
AttachmentManager(java.lang.Object obj)
          Construct a AttachmentManager using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 int addAttachment(int parentObjectID, IAttachment attachment)
          Adds an attachment to the object identified by the oid.
 void deleteAttachment(int attachmentID)
          Deletes the attachment identified with attID.
 void deleteAttachmentsForParent(int parentObjectID)
          Deletes all attachments for the object with oid.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IEnumAttachment getAttachmentsByAttachmentIDs(ILongArray attachmentIDs, 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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 boolean isHasGlobalID()
          Indicates if the attachments have a global object identity field.
 void release()
          Release a AttachmentManager.
 void updateAttachment(IAttachment attachment)
          Updates the attachment.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentManager

public AttachmentManager(java.lang.Object obj)
                  throws java.io.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:
java.io.IOException - if there are interop problems AttachmentManager theAttachmentManager = (AttachmentManager) obj;
Method Detail

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

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

addAttachment

public int addAttachment(int parentObjectID,
                         IAttachment attachment)
                  throws java.io.IOException,
                         AutomationException
Adds an attachment to the object identified by the oid.

Specified by:
addAttachment in interface IAttachmentManager
Parameters:
parentObjectID - The parentObjectID (in)
attachment - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Returns:
The attachmentID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByParentIDs

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

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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttachmentsByAttachmentIDs

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

Specified by:
getAttachmentsByAttachmentIDs in interface IAttachmentManager
Parameters:
attachmentIDs - 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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateAttachment

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

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

deleteAttachment

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

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

deleteAttachmentsForParent

public void deleteAttachmentsForParent(int parentObjectID)
                                throws java.io.IOException,
                                       AutomationException
Deletes all attachments for the object with oid.

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

isHasGlobalID

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

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