Table of Contents

TCursorSource Class

A Aurelius.Bind.BaseDataset.TObjectSource that fetches entity objects one at a time through an open database cursor.

Remarks

Objects are fetched on demand as the dataset scrolls forward. The cursor remains open until all records have been consumed or the dataset is closed. The cursor interface is reference-counted and released automatically when it is no longer needed. Use SetSourceCursor on TCustomAureliusDataset to create this source indirectly.

Syntax

Unit: Aurelius.Bind.Dataset

TCursorSource = class(TObjectSource);

Constructors

Name Description
Create Creates a new cursor source wrapping the given open database cursor.

Methods

Name Description
Fetching Indicates whether the cursor still has records to deliver.
FetchMore Fetches the next object from the cursor into the supplied list.
ObjectClass Returns the entity class of objects produced by the cursor.