com.esri.arcgis.editor
Class IEnumRowProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.editor.IEnumRowProxy
All Implemented Interfaces:
IEnumRow, Externalizable, Serializable
Direct Known Subclasses:
IEnumRow2Proxy

public class IEnumRowProxy
extends com.esri.arcgis.interop.Dispatch
implements IEnumRow, Serializable

Provides access to members that enumerate rows in sequence.

Remarks

The IEnumRow object is an enumeration and methods to cycle through it.

Use the Count method to identify how many objects exist within the collection.

Use the Next method to retrieve the next object in the enumeration.

Use the Reset method to reset the enumeration to the first object in the collection.

Click on the example to see the associate example of how the IEnumRow interface can be used when building a custom feature inspector. Also note that this example does not fully explain what a custom feature inspector is. Refer to the documentation of IObjectInspector for details.

When To Use

Use the IEnumRow object when you need to maintain a collection of IRow objects.

The collection itself can consist of any object that implements the IRow interface. For example, the Feature coclass implements the IRow interface so you can use the IEnumRow object to maintain a collection of features.

Product Availability

Available with ArcGIS Desktop.

See Also:
com.esri.arcgis.editor.IShortTransactionObjectInspector, IFeature, IFeatureCursor, 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
  IEnumRowProxy()
           
  IEnumRowProxy(Object obj)
           
protected IEnumRowProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 int getCount()
          The number of rows.
 IRow next()
          Retrieves the next row in the sequence.
 void removeListener(String iidStr, Object theListener)
           
 void reset()
          Resets the enumeration sequence to the beginning.
 
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

IEnumRowProxy

public IEnumRowProxy()

IEnumRowProxy

public IEnumRowProxy(Object obj)
              throws IOException
Throws:
IOException

IEnumRowProxy

protected IEnumRowProxy(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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The number of rows.

Remarks

The Count property lists the total number of IRow objects in the enumeration.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getCount in interface IEnumRow
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

public IRow next()
          throws IOException,
                 AutomationException
Retrieves the next row in the sequence.

Remarks

The Next method retreives the next IRow object in the enumeration. If the enumeration has been reset, the Next method will return the first row in the enumeration. If the enumeration is at the end of its collection, the Next method will return a NULL object.

  

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
next in interface IEnumRow
Returns:
A reference to a com.esri.arcgis.geodatabase.IRow
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws IOException,
                  AutomationException
Resets the enumeration sequence to the beginning.

Remarks

The Reset method will reset the enumeration so that the Next method will retreive the first IRow object in the collection. Use the Reset method if you need to recycle the enumeration.




Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
reset in interface IEnumRow
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.