#include <class.h>
Public Types | |
enum | FieldAttributes |
Public Methods | |
size_t | calculateRecordSize (byte *base, size_t offs) |
size_t | calculateNewRecordSize (byte *base, size_t offs) |
size_t | convertRecord (byte *dst, byte *src, size_t offs) |
int | sizeWithoutOneField (dbFieldDescriptor *field, byte *base, size_t &size) |
size_t | copyRecordExceptOneField (dbFieldDescriptor *field, byte *dst, byte *src, size_t offs) |
size_t | storeRecordFields (byte *dst, byte *src, size_t offs, bool insert) |
void | markUpdatedFields (byte *dst, byte *src) |
void | fetchRecordFields (byte *dst, byte *src) |
void | adjustReferences (byte *record, size_t base, size_t size, long shift) |
dbFieldDescriptor * | find (const char *name) |
dbFieldDescriptor * | getFirstComponent () |
dbFieldDescriptor * | getNextComponent (dbFieldDescriptor *field) |
dbFieldDescriptor & | operator, (dbFieldDescriptor &field) |
dbFieldDescriptor & | adjustOffsets (long offs) |
dbFieldDescriptor (char const *name, size_t offs, size_t size, int indexType, char const *inverse=NULL, dbFieldDescriptor *components=NULL) | |
dbFieldDescriptor (char const *name) | |
~dbFieldDescriptor () | |
Public Attributes | |
dbFieldDescriptor * | next |
dbFieldDescriptor * | prev |
dbFieldDescriptor * | nextField |
dbFieldDescriptor * | nextHashedField |
dbFieldDescriptor * | nextIndexedField |
dbFieldDescriptor * | nextInverseField |
int | fieldNo |
char * | name |
char * | longName |
char * | refTableName |
dbTableDescriptor * | refTable |
dbTableDescriptor * | defTable |
dbFieldDescriptor * | inverseRef |
char * | inverseRefName |
int | type |
int | appType |
int | indexType |
int | dbsOffs |
int | appOffs |
dbFieldDescriptor * | components |
oid_t | hashTable |
oid_t | tTree |
size_t | dbsSize |
size_t | appSize |
size_t | alignment |
dbUDTComparator | comparator |
int | oldDbsType |
int | oldDbsOffs |
int | oldDbsSize |
dbAnyMethodTrampoline * | method |
void(* | arrayAllocator )(dbAnyArray *array, void *data, size_t length) |
|
Attributes of the field |
|
Field descriptor constructor
|
|
Constructor of dummy field descriptor
|
|
Field descriptor destructor |
|
Adjust offsets within application objects for descriptors of base classes. |
|
Adjust references in all fetched records (current records in all opened cursors) when database was reallocated.
|
|
Calculate record size after reformatting record according to the new definition of the application class. This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.
|
|
Calculate record size in the database. This method performs interation through all components in one scope and recursively invokes itself for structure and array components. First time this method is invoked by table descriptor with
|
|
Convert of the feild to new format. This method is recursively invoked for array and structure components.
|
|
Recursively copy record to new location except one field. This method is used for updating inverse references.
|
|
Fetch record from the database This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.
|
|
Find component with specified name (for structures only)
|
|
Get first component of the field (for structures only)
|
|
Get next component within the scope
|
|
Mask updated fields. This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.
|
|
Redefined ',' operator used to form list of components |
|
Size of the record without one field. This method is used to implement automatically updated inverse references. This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.
|
|
Store record fields in the databases This method performs interation thtough all components in one scope and recursively invoke itself for structure and array components.
|
|
Alignment of the field (for structures it is equal to the maximum required alignment of it's components |
|
Offset to the field in application |
|
Size of the object in application |
|
Type of the field in application |
|
Allocator of array components |
|
Comparator for user defined types |
|
Subcomponents of the field (for structures and arrays) |
|
Offset to the field in database |
|
Size of the record in database |
|
Definition of the table to which this field belongs |
|
Column number |
|
Hash table (for fields which are indexed by means of hash table) |
|
Type of field index (bit combination of constants defined in dbIndexType) |
|
Inverse reference (for reference fields only) |
|
Inverse reference name (for reference fields only) |
|
Compound name of field, for example "coord.x" |
|
Trampoline used to invoke class method from SubSQL (for method components only) |
|
Name of the field |
|
Next file within scope |
|
Next field in the list of all fields in the table |
|
Next field in the list of all hashed fields in the table |
|
Next field in the list of all indexed fields in the table |
|
Next field in the list of all relation fields in the table |
|
Old offset of the field in database (before schema evaluation) |
|
Old size of the field in database (before schema evaluation) |
|
Old type of the field in database (before schema evaluation) |
|
Previous field within scope |
|
Referenced table (for reference fields only) |
|
Name of referenced table (for reference fields only) |
|
T-Tree (for fields which are indexed by means of T-Ttree) |
|
Type of the field in the database (dbField::FieldTypes) |