#include <class.h>
Public Methods | |
dbFieldDescriptor * | findSymbol (char const *name) |
dbFieldDescriptor * | find (char const *name) |
dbFieldDescriptor * | getFirstField () |
dbFieldDescriptor * | getNextField (dbFieldDescriptor *field) |
char * | getName () |
void | setFlags () |
bool | equal (dbTable *table) |
bool | match (dbTable *table) |
void | checkRelationship () |
dbDatabase * | getDatabase () |
void | storeInDatabase (dbTable *table) |
dbTableDescriptor (dbTable *table) | |
dbTableDescriptor (char *tableName, dbDatabase *db, size_t objSize, describeFunc func, dbTableDescriptor *original=NULL) | |
~dbTableDescriptor () | |
Static Public Methods | |
void | cleanup () |
Static Public Attributes | |
int | initialAutoincrementCount |
Protected Types | |
typedef dbFieldDescriptor *(* | describeFunc )() |
Protected Methods | |
dbTableDescriptor * | clone () |
size_t | totalNamesLength () |
int | calculateFieldsAttributes (dbFieldDescriptor *fieldsList, char const *prefix, int offs, int indexMask, int &attr) |
dbFieldDescriptor * | buildFieldsList (dbTable *table, char const *prefix, int prefixLen, int &attr) |
Protected Attributes | |
dbTableDescriptor * | next |
dbTableDescriptor * | nextDbTable |
char * | name |
oid_t | tableId |
dbFieldDescriptor * | columns |
dbFieldDescriptor * | hashedFields |
dbFieldDescriptor * | indexedFields |
dbFieldDescriptor * | inverseFields |
dbFieldDescriptor * | firstField |
dbFieldDescriptor ** | nextFieldLink |
dbDatabase * | db |
bool | fixedDatabase |
bool | isStatic |
size_t | appSize |
size_t | fixedSize |
size_t | nFields |
size_t | nColumns |
int4 | autoincrementCount |
dbTableDescriptor * | cloneOf |
describeFunc | describeComponentsFunc |
Static Protected Attributes | |
dbTableDescriptor * | chain |
Friends | |
class | dbCompiler |
class | dbDatabase |
class | dbTable |
class | dbAnyCursor |
class | dbSubSql |
class | dbHashTable |
class | dbTtreeNode |
class | dbServer |
class | dbColumnBinding |
class | dbFieldDescriptor |
class | dbAnyContainer |
class | dbCLI |
|
Function returning list of record fields descriptors |
|
Construct table descriptor using information stored in database
|
|
Constructor of application table descriptor
|
|
Table descriptor destructor |
|
Read table definiton from the database and build fields list
|
|
Recursively set field attributes.
|
|
Check consuistency of declared realations (check that referenced table actually contains declared inverse reference field). This method also resolve references between table. |
|
Remove all table descriptors except static ones |
|
Clone table descriptor |
|
Check whether table descriptor in the database is the same as table appplication table descriptor
|
|
Find field with specified name |
|
Find field with specified symbol name |
|
Get reference to associated database
|
|
Get first record field
|
|
Get table name. |
|
Get next field
|
|
Check whether fprmats of table descriptor in the database and in application is compatible. This method also prepares information for performing conversion of record to new format
|
|
Set fields flags. This method is called after loading table descriptor from database. |
|
Save table descriptor in the database.
|
|
Calculate total length of all names in table descriptor |
|
Size of tghe correspondent applciation object |
|
Autoincremented counter for this table |
|
When unassigned table descriptor is explicitly assigned to the database, new clone of descriptor is created and |
|
List of table columns |
|
Attached database |
|
List of all fields |
|
Database staticly attached to the table (by means of REGISTER_IN macro) |
|
Size of fixed part of the records (without string and array bodies) |
|
List of hashed fields |
|
List of fields indexed by T-Ttree |
|
Initial value for autoincrement conunt |
|
List of related fields (fields, for which inverse references exist) |
|
Table descriptor is static object created by one of REGISTER macros |
|
Name of the table |
|
Number of columns in the table |
|
Chain of all tables in application |
|
Chain of all tables associated with database |
|
Pointer of next field of the last field (used for list construction) |
|
Number of fields in the table |
|
Indetifier of table object in the database |