Declaration
TnxDataDictionary = class(TnxPersistent)
Description
The data dictionary is the heart of every NexusDB table. It describes the files, fields, indices, etc and even how to read/write the records.
If you don't need the fine control that the data dictionary gives you, you can just use TIndexDefs, TFieldDefs and the CreateTable method of TDataset.
Methods
This function sets the AutoInc Descriptor class to the given aAutoIncClass, creates and instance, adds it to the data dictionary and returns the instance.
This function sets the Blob Descriptor class to the given aBlobClass, creates and instance, adds it to the data dictionary and returns the instance.
This function adds a new instance of a Custom Descriptor to the data dictionary and returns the newly created Instance.
This function sets the Fields Descriptor class to the given aFieldsClass, creates and instance, adds it to the data dictionary and returns the instance.
This function adds a new instance of a File Descriptor to the data dictionary and returns the newly created Instance.
This function sets the Indices Descriptor class to the given aIndicesClass, creates and instance, adds it to the data dictionary and returns the instance.
This function sets the Locale Descriptor class to the given aLocaleClass, creates and instance, adds it to the data dictionary and returns the instance.
This function sets the Record Descriptor class to the given aRecordClass, creates and instance, adds it to the data dictionary and returns the instance.
This methods copies the settings of the given Source to the current Data Dictionary, if Source is of the same type.
Checks if the Data Dictionary is read-only. Raises an exception if true.
Checks if the Data Dictionary is valid. Raises an exception if not.
This function clears the Data Dictionary.
constructor.
destructor.
This function ensures a Fields Descriptor exists.
This function ensures there is an indices descritor.
Return the custom number for a given custom name, or -1 if not found.
Return the field number for a given field name, or -1 if not found.
Return the file number for a given file extension, or -1 if not found.
Return the index number for a given index name, or -1 if not found.
Compares the current Data Dictionary to another. Returns true if they are equal.
Returns true if an Index Descriptor validates ok.
Reads the whole Data Dictionary settings (data) from aReader.
Reads the whole Data Dictionary settings (data) from aStream.
This function frees the Instance of the associated AutoInc Descriptor.
This function frees the Instance of the associated Blob Descriptor.
Remove a Custom Descriptor from the Data Dictionary.
Remove a Custom Descriptor from the Data Dictionary.
This function frees the Instance of the associated Fields Descriptor.
Remove a File Descriptor from the Data Dictionary.
This function frees the Instance of the associated Indices Descriptor.
This function frees the Instance of the associated Locale Descriptor.
This function frees the Instance of the associated Record Descriptor.
Set the internal table base name - used for error messages
This function calculates the number of bytes that can be used for storing data per block by subtracting the header size from the block size in bytes
Writes the whole Data Dictionary settings (data) to aStream.
Writes the whole Data Dictionary settings (data) to aWriter.
Properties
This property returns the associated AutoInc Descriptor.
This property returns the associated Blob Descriptor.
The length of a bookmark for the given index.
This property returns the associated Fields Descriptor.
This property returns the associated Indices Descriptor.
The length of the key for the given index.
This property returns the associated Locale Descriptor.
This property returns the associated Record Descriptor.
Returns the Version of the Data Dictionary implementation and thus the table.
File