Note that while a cursor is created in the client's memory after a call to methods such as ITable.Search or ITable.Insert, the DBMS cursor is not created until a call to NextRow (or a similar method) is made. If both executions of the query are made within the same edit session (or database transaction with the appropriate level of isolation), the application is guaranteed not to see any changes made to the data by other concurrently executing applications. If an application needs to make multiple passes over the data, the application needs to reexecute the query that returned the cursor. Classes that implement ICursor ClassesĪ cursor that is opened from a RelQueryTable.Ĭursors are forward only they do not support backing up and retrieving rows that have already been retrieved or making multiple passes over data. #Hey guys get icursor updateThis method should only be called on update cursors. Update the existing Row in the database corresponding to the current position of the cursor. If no rows remain in the result set, this method returns a null value. To retrieve all rows in a result set containing N rows, the application must make N calls to NextRow. The row object returned is allocated and hydrated by the cursor, and a reference to it is handed to the application. The NextRow method on a search or update cursor returns the next row in the result set to the application. ICursor.NextRow MethodĪdvance the position of the cursor by one and return the Row object at that position. This method should only be called on insert cursors. Public object InsertRow ( IRowBuffer buffer The object ID of the new Row, if there is one, is returned. Insert a new Row into the database using the property values in the input buffer. ICursor.Flush Methodįlush any outstanding buffered writes to the database. If the specified field cannot be found, this method returns a value of -1. The index of the field with the specified name. Public IFields Fields ICursor.FindField Method Public ReadOnly Property Fields As IFields To delete a row retrieved from a search cursor, call IRow.Delete on the row itself. This should only be called on update cursors. The cursor must be initialized to a row (with the NextRow method) before this method can be successfully called. Update the existing Row in the database corresponding to the current position of the cursor.ĭelete the existing Row in the database corresponding to the current position of the cursor. The object ID of the new Row, if there is one, is returned.Īdvance the position of the cursor by one and return the Row object at that position. The index of the field with the specified name.įlush any outstanding buffered writes to the database. Membersĭelete the existing Row in the database corresponding to the current position of the cursor. Provides access to members that hand out enumerated rows, field collections and allows for the updating, deleting and inserting of rows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |