Declaration

TnxDataset = class(TDataSet)

 
Description

TnxDataset is the base class for all TDataset compatible Nexus components. Most methods and properties work exactly the same as Borland's implementation.

 
Events

OnServerFilterTimeout

The event is triggered if the FilterTimeout time has passed since activating a filter. Set cancel to false to give the server another FilterTimeout period of time to finish the filtering.

 
Methods

AddFileBlob

AddFileBlob adds a blob linked to real file. Please keep in mind that the file and it's name are server based and that NexusDB is not responsible for this file.

AddFileBlobEx

AddFileBlob adds a blob linked to real file. Please keep in mind that the file and it's name are server based and that NexusDB is not responsible for this file.

BatchPost

Only call BatchPost in batch append mode. It copies the current record buffer into the internal batch append buffer and posts the internal batch append buffer if its size is bigger than aCutoffSize defined in BeginBatchAppend.

BeginBatchAppend

Use BeginBatchAppend to start batch append mode. In this mode the only allowed actions are: setting field values, BatchPost, EndBatchAppend.

Please note that batch writing to blob fields is fully supported!

BookmarkValid

see TDataSet.BookmarkValid

CompareBookmarks

see TDataSet.CompareBookmarks

CopyRecords

The method copies all visible records from the source dataset to the current table.

It correctly uses the ranges/filters on the source table.

CopyRecordsEx

The method copies all visible records from the source dataset to the current table.

It correctly uses the ranges/filters on the source table.

Create

constructor.

CreateBlobStream

This function creates the right type of blob stream based on the state of the dataset.

The blob stream should be freed again as soon as possible. It must be freed before calling Post or moving to another record.

DeleteRecords

This method deletes all visible records of the current table. You can use filters/ranges to restrict the functionality to a subset of records.

DeleteStream

Use this to delete the streams.

NEVER EVER DELETE THE DICT STREAM!

Destroy

destructor.

EndBatchAppend

This method terminates the batch append mode. It sends the internal batch append buffer to the server if required.

Exists

Exists returns true if this table exists, in the given session/database context.

It can be called without opening the table.

FlushBatchAppend

Only call in batch append mode. It forces the dataset to post the current internal batch append buffer.

GetAutoIncValue

GetAutoincValue gets the last used value of the AutoInc field of this dataset.

this function works even if there is no autoinc field declared in the table, because Nexus always tracks a "highest autoinc" value in the header.

GetBookmark

see TDataSet.GetBookmark

GetCurrentRecord

see TDataSet.GetCurrentRecord

GetFieldData

see TDataSet.GetFieldData

GetStreamList

GetStreamList returns a list of the "table streams" saved in the table. A "table stream" is a delphi stream of system or user defined data that can be saved with a table. All tables contain a stream called DICT which contain the data dictionary.

GotoCurrent

GotoCurrent synchronizes a dataset with the given one or in other words positions the dataset on the same record as aDataSet. This method will result in an error if that record is currently not visible (range/filter) or if aDataSet is not positioned on a valid record

InBatchAppend

This function returns true if a Batch Append is open.

IsRecordLocked

???

IsSequenced

see TDataSet.IsSequenced

IsTableLocked

???

KeyAsVariant

The text for this method has been generated automatically. This means that it is not documented.

Locate

see TDataSet.Locate

LockTable

LockTable locks the dataset for the given operation. Make sure to keep these locks as short as possible, because it might otherwise interfere with the functionality/access of other instances to the table.

These locks interact directly with record locks, e.g. you can't acquire a table lock while anyone else has a record lock.

Lookup

see TDataSet.Lookup

Post

== virtual TDataSet methods == navigation

PSEndTransaction

see TDataset.PSEndTransaction

PSExecuteStatement

see TDataset.PSExecuteStatement

PSGetQuoteChar

see TDataset.PSGetQuoteChar

PSInTransaction

see TDataset.PSInTransaction

PSIsSQLBased

see TDataset.PSIsSQLBased

PSIsSQLSupported

see TDataset.PSIsSQLSupported

PSReset

see TDataset.PSReset

PSStartTransaction

see TDataset.PSStartTransaction

ReadStream

Use this method to read a certain stream. It raises exception if not the stream is not found.

RecordCountAsync

This method starts an asynchronous RecordCount. Very useful if there's for example a filter applied and the serves needs to iterate through all records to find out the count. Use TaskInfo.GetStatus to find out the status of the operation.

SetAutoIncValue

Use this method to set the AutoInc field's value; be very careful with this because it might break referential integrity based on these values and also might lead to posting errors due to unique field violations.

UnlockTable

Remove the given lock from the dataset with this method.

UnlockTableAll

UnlockTableAll releases all cursor based locks of this dataset, but this does not include record locks.

WriteStream

This method stores aStream in the table and overwrites any existing stream of that name.

NEVER EVER OVERWRITE THE DICT STREAM!

 
Properties

AbstractCursor

This is a pointer to the current cursor of this dataset.

ActiveDesigntime

Set ActiveDesigntime to true if the dataset should be automatically opened at design time. Very handy to use in combination with ActiveRuntime if you need the dataset open at design time, but sometimes forget to close it before creating a shipping version.

ActiveRuntime

Set ActiveRuntime to true if the dataset should be automatically opened at runtime. Take care that this needs a fully set up chain of components otherwise you very likely get an "could not connect to server" error on application startup.

AfterCancel

see TDataSet.AfterCancel.

AfterClose

see TDataSet.AfterClose.

AfterDelete

see TDataSet.AfterDelete

AfterEdit

see TDataSet.AfterEdit

AfterInsert

see TDataSet.AfterInsert

AfterOpen

see TDataSet.AfterOpen

AfterPost

see TDataSet.AfterPost

AfterRefresh

see TDataSet.AfterRefresh

AfterScroll

see TDataSet.AfterScroll

AliasName

AliasName is a quick way to access an alias without a connected tnxDatabase. AliasName does NOT support direct paths!

Please not that Session must be assigned for this to work.

AutoCalcFields

see TDataSet.AutoCalcFields

BeforeCancel

see TDataSet.BeforeCancel

BeforeClose

see TDataSet.BeforeClose

BeforeDelete

see TDataSet.BeforeDelete

BeforeEdit

see TDataSet.BeforeEdit

BeforeInsert

see TDataSet.BeforeInsert

BeforeOpen

see TDataSet.BeforeOpen

BeforePost

see TDataSet.BeforePost

BeforeRefresh

see TDataSet.BeforeRefresh

BeforeScroll

see TDataSet.BeforeScroll

BlockReadOptions

Use BlockReadOptions to set how block/batch operations work.

If gboBookmarks is true, bookmarks are received from the server as well as records. The Borland's implementation in TTable doesn't support bookmarks during batch reads.

If gboBlob is true, blobs are processed in the batch modes.

Database

This is database the dataset is linked to. Either AliasName or Database must be set.

Dictionary

The Dictionary holds all field and index definitions as well as full information on how to access and read the data file.

FieldsDescriptor

The text for this property has been generated automatically. This means that it is not documented.

Filter

see TDataset.Filter

Filtered

see TDataset.Filtered

FilterOptions

see TDataset.FilterOptions

FilterTimeout

This is the timeout in ms for Filter operations.

FilterType

The text for this property has been generated automatically. This means that it is not documented.

OnCalcFields

see TDataSet.OnCalcFields

OnDeleteError

see TDataSet.OnDeleteError

OnEditError

see TDataSet.OnEditError

OnFilterRecord

see TDataSet.OnFilterRecord

OnNewRecord

see TDataSet.OnNewRecord

OnPostError

see TDataSet.OnPostError

Options

The text for this property has been generated automatically. This means that it is not documented.

Session

This is the session the dataset is linked to. You only need to set this if you want to use AliasName, otherwise (when using an explicit database component) it is automatically set internally.

SimpleExpressionFilterClass

the Filter class the dataset creates an instance of for each Filter evaluation set

SqlFilterClass

the Filter class the dataset creates an instance of for each Filter evaluation set

Timeout

The is the timeout in ms used for communication with the server. If it -1 the timeout is inherited from Database.

Version

The text for this property has been generated automatically. This means that it is not documented.

 
File

 
nxdb

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes