Class RelQueryCursorClass
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("365F6149-1D24-11D3-9F5C-00C04F6BC886")]
public class RelQueryCursorClass : RelQueryCursor, ICursor, IFeatureCursor
- Inheritance
-
RelQueryCursorClass
- Implements
- Inherited Members
Explicit Interface Implementations
DeleteFeature()
Delete the existing Feature in the database corresponding to the current position of the cursor.
virtual void DeleteFeature()
Remarks
The cursor must be initialized to a feature (with the NextFeature() method) before this method can be successfully called.
This should only be called on update cursors. To delete a feature retrieved from a search cursor, call IFeature.Delete on the feature itself.
DeleteRow()
Delete the existing Row in the database corresponding to the current position of the cursor.
virtual void DeleteRow()
Remarks
The cursor must be initialized to a row (with the NextRow method) before this method can be successfully called.
This should only be called on update cursors. To delete a row retrieved from a search cursor, call IRow.Delete on the row itself.
Fields
The Fields Collection for this cursor.
virtual IFields Fields { get; }
Returns
Remarks
<P>Each table in a database has an ordered collection of fields, there is always at least one field in a table. The ordered collection behaves like a list, so it is possible to access individual fields by a numbered position (or index) in the list.</P> <P>A <STRONG>Fields </STRONG>collection can also exist independently of a table, for example when creating an index on a table you will need to define which fields take part in the index. There are many interfaces which either require or return a <STRONG>Fields </STRONG>collection; these include <STRONG>IClass </STRONG>(therefore also <STRONG>IObjectClass </STRONG>and <STRONG>IFeatureClass</STRONG>), <STRONG>ICursor</STRONG>, <STRONG>IIndex</STRONG>, <STRONG>IFeatureClassDraw</STRONG>, <STRONG>IRowBuffer</STRONG>, <STRONG>ISimpleDataConverter</STRONG>, <STRONG>ITableSort </STRONG>and <STRONG>IValidate</STRONG>.</P>
FindField(string)
The index of the field with the specified name.
virtual int FindField(string Name)
Parameters
Namestring
Returns
Remarks
If the specified field cannot be found, this method returns a value of -1.
Flush()
Flush any outstanding buffered writes to the database.
virtual void Flush()
Remarks
This method should only be called on insert cursors.
IFeatureCursor_Fields
The fields Collection for this cursor.
virtual IFields IFeatureCursor_Fields { get; }
Returns
Remarks
<P>Each table in a database has an ordered collection of fields, there is always at least one field in a table. The ordered collection behaves like a list, so it is possible to access individual fields by a numbered position (or index) in the list.</P> <P>A <STRONG>Fields </STRONG>collection can also exist independently of a table, for example when creating an index on a table you will need to define which fields take part in the index. There are many interfaces which either require or return a <STRONG>Fields </STRONG>collection; these include <STRONG>IClass </STRONG>(therefore also <STRONG>IObjectClass </STRONG>and <STRONG>IFeatureClass</STRONG>), <STRONG>ICursor</STRONG>, <STRONG>IIndex</STRONG>, <STRONG>IFeatureClassDraw</STRONG>, <STRONG>IRowBuffer</STRONG>, <STRONG>ISimpleDataConverter</STRONG>, <STRONG>ITableSort </STRONG>and <STRONG>IValidate</STRONG>.</P>
IFeatureCursor_FindField(string)
The index of the field with the specified name.
virtual int IFeatureCursor_FindField(string Name)
Parameters
Namestring
Returns
Remarks
If the specified field cannot be found, this method returns a value of -1.
IFeatureCursor_Flush()
Flush any outstanding buffered writes to the database.
virtual void IFeatureCursor_Flush()
Remarks
This method should only be called on insert cursors.
InsertFeature(IFeatureBuffer)
Insert a new Feature into the database using the property values in the input buffer. The ID of the new Feature is returned.
virtual object InsertFeature(IFeatureBuffer buffer)
Parameters
bufferIFeatureBuffer
Returns
Remarks
This method should only be called on insert cursors.
InsertRow(IRowBuffer)
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.
virtual object InsertRow(IRowBuffer buffer)
Parameters
bufferIRowBuffer
Returns
Remarks
This method should only be called on insert cursors.
NextFeature()
Advance the position of the cursor by one and return the Feature object at that position.
virtual IFeature NextFeature()
Returns
Remarks
If you fetch features out of a geodatabase using a cursor (recycling or non recycling), the spatial reference of the feature, as returned by NextFeature, is guaranteed to be in the spatial reference that you specified in the query filter .
No guarantee however is made that the geometry of the feature will continue to remain in this spatial reference. In particular, if you use a non recycling cursor, then the feature you fetch will be shared with other consumers and any one of these may change its spatial reference at any time. It is the developers responsibility to test the spatial reference or the geometry you get from the feature (via IFeature::Shape) if you retrieve the geometry at a later time and rely on its spatial reference being a specified spatial reference.
NextRow()
Advance the position of the cursor by one and return the Row object at that position.
virtual IRow NextRow()
Returns
Remarks
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. If no rows remain in the result set, this method returns a null value.
UpdateFeature(IFeature)
Update the existing Feature in the database corresponding to the current position of the cursor.
virtual void UpdateFeature(IFeature Object)
Parameters
ObjectIFeature
Remarks
This method should only be called on update cursors.
UpdateRow(IRow)
Update the existing Row in the database corresponding to the current position of the cursor.
virtual void UpdateRow(IRow Row)
Parameters
RowIRow
Remarks
This method should only be called on update cursors.