Functions | |
RDM_RETCODE | rdm_cursorGetClone (RDM_CURSOR sourceCursor, RDM_CURSOR *pCursor) |
Associate an RDM_CURSOR as a clone of an existing RDM_CURSOR. More... | |
RDM_RETCODE | rdm_cursorGetRowsInReverseOrder (RDM_CURSOR sourceCursor, RDM_CURSOR *pCursor) |
Associate an RDM_CURSOR as a copy of an existing RDM_CURSOR with the rows in reverse order. More... | |
RDM_RETCODE | rdm_cursorGetSelf (RDM_CURSOR sourceCursor, RDM_CURSOR *pCursor) |
Associate an RDM_CURSOR with the current row of the sourceCursor. More... | |
Core cursor association API for other functions. All the functions here are located in RDM DB Engine Library. Linker option:
-lrdmrdm
See RDM Cursor APIs for a more detailed description of a cursor.
RDM_RETCODE rdm_cursorGetClone | ( | RDM_CURSOR | sourceCursor, |
RDM_CURSOR * | pCursor | ||
) |
#include <rdmcursorapi.h>
Associate an RDM_CURSOR as a clone of an existing RDM_CURSOR.
This function associates the RDM_CURSOR pointed to by pCursor as a clone of sourceCursor. The resulting RDM_CURSOR will be of the same type, contain the same row set, and will have the same current row as sourceCursor.
sOKAY | Normal, successful return. |
eNOSTARTREAD | A read operation was attempted when no rdm_dbStartSnapshot(), rdm_dbStartRead(), or rdm_dbStartUpdate() is active. |
eNOTLOCKED | Attempt to access a table for reading or update without proper locks. |
eDBNOTOPEN | Database not open. |
sNOTFOUND | Requested item not found. |
[in] | sourceCursor | The cursor to clone |
[out] | pCursor | A pointer to an RDM_CURSOR (must be allocated, associated with the same db as sourceCursor, or set to NULL) |
RDM_RETCODE rdm_cursorGetRowsInReverseOrder | ( | RDM_CURSOR | sourceCursor, |
RDM_CURSOR * | pCursor | ||
) |
#include <rdmcursorapi.h>
Associate an RDM_CURSOR as a copy of an existing RDM_CURSOR with the rows in reverse order.
This function associates the RDM_CURSOR pointed to by pCursor with the same set of rows in sourceCursor, but in the reverse navigation order. The pCursor can point to sourceCursor and in this case you will get sourceCursor back in the reverse order. The resulting cursor will be initially positioned to the BeforeFirst location, which would be the same as AfterLast of the sourceCursor.
sOKAY | Normal, successful return. |
eDBNOTOPEN | Database not open. |
[in] | sourceCursor | The source cursor to reverse the retrieval order for |
[out] | pCursor | A pointer to an RDM_CURSOR (must be allocated, associated with db, or set to NULL) |
RDM_RETCODE rdm_cursorGetSelf | ( | RDM_CURSOR | sourceCursor, |
RDM_CURSOR * | pCursor | ||
) |
#include <rdmcursorapi.h>
Associate an RDM_CURSOR with the current row of the sourceCursor.
This function associates the RDM_CURSOR pointed to by pCursor with the current row of sourceCursor. The new cursor will be a singleton cursor positioned to the current row of sourceCursor.
If the sourceCursor is not at a valid row then an error will be returned and the RDM_CURSOR will not be associated.
sOKAY | Normal, successful return. |
eNOSTARTREAD | A read operation was attempted when no rdm_dbStartSnapshot(), rdm_dbStartRead(), or rdm_dbStartUpdate() is active. |
eNOTLOCKED | Attempt to access a table for reading or update without proper locks. |
eDBNOTOPEN | Database not open. |
eNOCURRENTROW | The cursor is not positioned to a valid row. |
eOWNERDELETED | The owner row for a set cursor has been deleted. |
eSINGLETONDELETED | The row for a singleton cursor has been deleted. |
[in] | sourceCursor | The source cursor for the row |
[out] | pCursor | A pointer to an RDM_CURSOR (must be allocated, associated with db, or set to NULL) |