com.esri.arcgis.geodatabase
Class Cursor

java.lang.Object
  extended by com.esri.arcgis.geodatabase.Cursor
All Implemented Interfaces:
ICursor, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class Cursor
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ICursor

COM Class 'Cursor'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'Esri Cursor object.' 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.ICursor
IID, IIDd4803ee7_79f4_11d0_97fc_0080c7f79481, xxDummy
 
Constructor Summary
Cursor(java.lang.Object obj)
          Construct a Cursor using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void deleteRow()
          Delete the existing Row in the database corresponding to the current position of the cursor.
 boolean equals(java.lang.Object o)
          Compare this object with another
 int findField(java.lang.String name)
          The index of the field with the specified name.
 void flush()
          Flush any outstanding buffered writes to the database.
 IFields getFields()
          The Fields Collection for this cursor.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 java.lang.Object insertRow(IRowBuffer buffer)
          Insert a new Row into the database using the property values in the input buffer.
 IRow nextRow()
          Advance the position of the cursor by one and return the Row object at that position.
 void release()
          Release a Cursor.
 void updateRow(IRow row)
          Update the existing Row in the database corresponding to the current position of the cursor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cursor

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

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

Throws:
java.io.IOException - if there are interop problems Cursor theCursor = (Cursor) 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 Cursor.

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

findField

public int findField(java.lang.String name)
              throws java.io.IOException,
                     AutomationException
The index of the field with the specified name.

Specified by:
findField in interface ICursor
Parameters:
name - The name (in)
Returns:
The fieldIndex
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFields

public IFields getFields()
                  throws java.io.IOException,
                         AutomationException
The Fields Collection for this cursor.

Specified by:
getFields in interface ICursor
Returns:
A reference to a com.esri.arcgis.geodatabase.IFields
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

nextRow

public IRow nextRow()
             throws java.io.IOException,
                    AutomationException
Advance the position of the cursor by one and return the Row object at that position.

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

updateRow

public void updateRow(IRow row)
               throws java.io.IOException,
                      AutomationException
Update the existing Row in the database corresponding to the current position of the cursor.

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

deleteRow

public void deleteRow()
               throws java.io.IOException,
                      AutomationException
Delete the existing Row in the database corresponding to the current position of the cursor.

Specified by:
deleteRow in interface ICursor
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insertRow

public java.lang.Object insertRow(IRowBuffer buffer)
                           throws java.io.IOException,
                                  AutomationException
Insert a new Row into the database using the property values in the input buffer. The object ID of the new Row, if there is one, is returned.

Specified by:
insertRow in interface ICursor
Parameters:
buffer - A reference to a com.esri.arcgis.geodatabase.IRowBuffer (in)
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

flush

public void flush()
           throws java.io.IOException,
                  AutomationException
Flush any outstanding buffered writes to the database.

Specified by:
flush in interface ICursor
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.