Builds a data packet representing the content in the buffered dataset.
Source position: bufdataset.pas line 672
public procedure TCustomBufDataset.GetDatasetPacket( |
AWriter: TDataPacketHandler |
); |
AWriter |
|
Data packet handler for the operation. |
GetDatasetPacket is a procedure used to build the data packet that represents the content in the buffered dataset. GetDatasetPacket ensures that record buffers and update buffers in the dataset are normalized and applied using the data packet handler (n.b. I won't call it a reader if it writes) in AWriter.
GetDatasetPacket sequentially processes records using the currently selected index for the dataset. Update buffers for a given record are consolidate in the record buffer, and the record buffer to stored to the data packet handler. The current record position is not changed when the process has been completed.
GetDatasetPacket stores the current value for an auto-increment field used in the dataset in the AWriter argument. The internal data packet handler for the dataset is set to Nil when the method is completed.
GetDatasetPacket is used in the implementation of the SaveToStream method.
|
Implements a data packet reader for TBufDataset. |
|
|
Saves the dataset to the specified stream using the given data format. |