Declaration
TnxAbstractCursor = class(TnxAbstractTimeoutObject)
Description
The abstract declaration of a Server cursor. All actual cursor implementations must be descendent from this class. This is the server side version of TnxCursor.
Methods
see TObject.AfterConstruction
This function sets the next AutoInc value for the current table.
see TObject.BeforeDestruction.
This function creates a new blob and returns the new blob reference number in aBlobNr. This number is unique for any blob and is needed to access the blob.
This creates a new FileBlob and returns the new blob reference number in aBlobNr. This number is unique for any blob and is needed to access the blob.
This function deletes the blob with the given aBlobNr.
???
This function returns the length of the blob in aLengt as bytes.
The text for this method has been generated automatically. This means that it is not documented.
This function reads data from a blob.
This function truncates the given blob at aBlobLength bytes.
This function writes data to a blob.
The text for this method has been generated automatically. This means that it is not documented.
This function compares two bookmarks.
The text for this method has been generated automatically. This means that it is not documented.
This function copies *all* visible (in regards of ranges and filters) records to the cursor given in aDestCursor. aMaxTransSize specifies the maximum number of dirty transaction bytes before the transaction is committed.
This function copies *all* visible (in regards of ranges and filters) records to the cursor given in aDestCursor. aMaxTransSize specifies the maximum number of dirty transaction bytes before the transaction is committed. aCheckReqFields determines wether a check is done for required fields having a value.
Constructor
This function deletes *all* visible (in regards of ranges and filters) records.
destructor.
This function clones the current cursor and returns a new instance in aNewCursor. The new cursor can be opened with a different mode by specifying the aOpenMode accordingly.
This function sets the given Filter to active.
???
???
FilterAddExpression creates a new Filter instance for the given aExpression and returns its in aFilterID.
This function sets the given Filter to inactive.
This function removes the given Filter from the internal list.
This function sets the timeout for the filter evaluation in msec.
This function returns the id of the current index.
GetRecordCount returns the number of currently "visible" records. It obeys set ranges and filters.
This function is an asynchronous version of GetRecordCount.
GetRecordCountEx returns the number of records or keys based on the value of aOption.
This function is an asynchronous version of GetRecordCountEx.
This is the class function that returns the object with a certain ID.
This function cancels the active range.
???
The text for this method has been generated automatically. This means that it is not documented.
The text for this method has been generated automatically. This means that it is not documented.
recno support
RecordDelete deletes the current record and returns a pointer to the then current record buffer. It needs to be able to acquire the given lock type for this function to be successful.
RecordGet returns a pointer to the current record buffer. It needs to be able to acquire the given lock type for this function to be successful.
This function returns a batch of record data in a Stream. aCutoffSize - the maximum length to return in bytes. aOptions - the (blob/bookmark) options to use for filling the stream aStream - the stream that receives the data aMaxRecords - the maximum number of records to return.
???
RecordGet moves to the next valid (in regards of ranges and filters) record returns a pointer to the then current record buffer. It needs to be able to acquire the given lock type for this function to be successful.
RecordGet moves to the prior valid (in regards of ranges and filters) record returns a pointer to the then current record buffer. It needs to be able to acquire the given lock type for this function to be successful.
RecordInsert creates a new record and returns a pointer to the then current record buffer. It needs to be able to acquire the given lock type for this function to be successful.
This function adds the data in a aStream as new records. Please note that the size of aStream must be a multiple of the record size.
RecordIsLocked returns the current record lock state for a certain lock type.
This function releases the last lock or alternatively all locks in the record.
RecordInsert sets the record buffer to the give data. The record must have a proper lock acquired for this function to succeed. If aReleaseLock is true all locks on the current record are released.
This function can be called from an extender to request that the cursor uses nested transactions for all operations. By default this is not supported.
This function will position the cursor on the given bookmark
This function synchronizes the position with the given aCursor. Please note that the two cursor have to point to the same dataset.
This function sets the cursor position to the end of the dataset. This is NOT the last record but after it!
This function sets the cursor position before the first record that meets the filter criteria in aFilter.
???
SwitchToIndex activates the given index. It aPosOnRec it repositions the cursor to the record active before changing the index, otherwise it jumps to the first record.
TableIsLocked returns the current table lock state for a certain lock type.
This function will try to acquire a table lock with the given aLockType.
This function will release and acquired lock with the given aLockType or alternatively (if aAllLocks is true) all locks on the table.
This function deletes the table stream with the given aName.
This function returns the names of all streams stored with the table.
This function reads the WHOLE stream with the given name into aStream.
This function rewrites the WHOLE stream with the given name.
Properties
This property returns the database the cursor is linked to.
This property returns the data dictionary for this cursor.
File