com.esri.arcgis.geodatabase
Class IAttachmentManagerProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IAttachmentManagerProxy
All Implemented Interfaces:
IAttachmentManager, Externalizable, Serializable

public class IAttachmentManagerProxy
extends com.esri.arcgis.interop.Dispatch
implements IAttachmentManager, Serializable

Product Availability

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IAttachmentManagerProxy()
           
  IAttachmentManagerProxy(Object obj)
           
protected IAttachmentManagerProxy(Object obj, String iid)
           
 
Method Summary
 int addAttachment(int parentObjectID, IAttachment attachment)
          Adds an attachment to the object identified by the oid.
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void deleteAttachment(int attachmentID)
          Deletes the attachment identified with attID.
 void deleteAttachmentsForParent(int parentObjectID)
          Deletes all attachments for the object with oid.
 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.
 boolean isHasGlobalID()
          Indicates if the attachments have a global object identity field.
 void removeListener(String iidStr, Object theListener)
           
 void updateAttachment(IAttachment attachment)
          Updates the attachment.
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IAttachmentManagerProxy

public IAttachmentManagerProxy()

IAttachmentManagerProxy

public IAttachmentManagerProxy(Object obj)
                        throws IOException
Throws:
IOException

IAttachmentManagerProxy

protected IAttachmentManagerProxy(Object obj,
                                  String iid)
                           throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

addAttachment

public int addAttachment(int parentObjectID,
                         IAttachment attachment)
                  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:
parentObjectID - The parentObjectID (in)
attachment - A reference to a com.esri.arcgis.geodatabase.IAttachment (in)
Returns:
The attachmentID
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 attachmentIDs,
                                                     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:
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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateAttachment

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

Product Availability

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

Specified by:
updateAttachment in interface IAttachmentManager
Parameters:
attachment - 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 attachmentID)
                      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:
attachmentID - The attachmentID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttachmentsForParent

public void deleteAttachmentsForParent(int parentObjectID)
                                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:
parentObjectID - The parentObjectID (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.