|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.Cursor
public class Cursor
ESRI Cursor object.
| Constructor Summary | |
|---|---|
Cursor(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(Object o)
Compare this object with another |
int |
findField(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. |
int |
hashCode()
the hashcode for this object |
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 |
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 |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public Cursor(Object obj)
throws IOException
obj to Cursor. *
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
IOException - if there are interop problems
Cursor theCursor = (Cursor) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int findField(String name)
throws IOException,
AutomationException
findField in interface ICursorname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFields getFields()
throws IOException,
AutomationException
getFields in interface ICursorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRow nextRow()
throws IOException,
AutomationException
The NextRow method on a search or update cursor returns the next row in the result set to the application. The row object returned is allocated and hydrated by the cursor, and a reference to it is handed to the application. To retrieve all rows in a result set containing N rows, the application must make N calls to NextRow. In VB, a call to NextRow after the last row in the result set has been retrieved returns Nothing. In C++, a call to NextRow after the last row in the result set has been retrieved returns a value of S_FALSE and sets the output row reference to 0.
nextRow in interface ICursorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateRow(IRow row)
throws IOException,
AutomationException
updateRow in interface ICursorrow - A reference to a com.esri.arcgis.geodatabase.IRow (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteRow()
throws IOException,
AutomationException
The cursor must be initialized to a row (with the NextRow method) before this method can be successfully called.
deleteRow in interface ICursorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object insertRow(IRowBuffer buffer)
throws IOException,
AutomationException
insertRow in interface ICursorbuffer - A reference to a com.esri.arcgis.geodatabase.IRowBuffer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void flush()
throws IOException,
AutomationException
flush in interface ICursorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||