com.esri.arcgis.geodatabase
Class IDifferenceCursorProxy

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

public class IDifferenceCursorProxy
extends com.esri.arcgis.interop.Dispatch
implements IDifferenceCursor, Serializable

Provides access to members that control the version difference cursor.

Description

The IDifferenceCursor interface returns a cursor of OIDs and IRows based upon the difference type used with IVersionedTable or IDataChangesEx.

The set of object IDs returned is dependant on the difference type category. For example, if the difference type DeleteNoChange is applied, the outbound row will be nothing since the row no longer exists. In this case it is necessary to enumerate until the returned OID equals -1. Use the value returned by the outbound OID parameter to retrieve the row in the other version of the table where the row has not yet been deleted.

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 to the ITable::GetRow or ITable::GetRows methods.

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
  IDifferenceCursorProxy()
           
  IDifferenceCursorProxy(Object obj)
           
protected IDifferenceCursorProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void next(int[] oID, IRow[] differenceRow)
          Returns the object identifier or difference row.
 void removeListener(String iidStr, Object theListener)
           
 
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

IDifferenceCursorProxy

public IDifferenceCursorProxy()

IDifferenceCursorProxy

public IDifferenceCursorProxy(Object obj)
                       throws IOException
Throws:
IOException

IDifferenceCursorProxy

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

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.