com.esri.arcgis.geodatabase
Class DifferenceCursor

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

public class DifferenceCursor
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDifferenceCursor

ESRI Difference Cursor object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
DifferenceCursor(Object obj)
          Construct a DifferenceCursor using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int hashCode()
          the hashcode for this object
 void next(int[] oID, IRow[] differenceRow)
          Returns the object identifier or difference row.
 
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

DifferenceCursor

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

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

Throws:
IOException - if there are interop problems DifferenceCursor theDifferenceCursor = (DifferenceCursor) 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

next

public void next(int[] oID,
                 IRow[] differenceRow)
          throws IOException,
                 AutomationException
Returns the object identifier or difference row.

Remarks

The Next method returns an object ID of an IRow.

IRow objects returned from a difference cursor are meant to be a read only. If row editing is desired the OID returned from the call to IDifferenceCursor::NextRow should be used in a call ITable::GetRow or ITable::GetRows methods.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
next in interface IDifferenceCursor
Parameters:
oID - The oID (out: use single element array)
differenceRow - A reference to a com.esri.arcgis.geodatabase.IRow (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.