#include <class.h>
Public Methods | |
dbTableDescriptor * | getNextTable () |
dbFieldDescriptor * | findSymbol (char_t const *name) |
dbFieldDescriptor * | find (char_t const *name) |
dbFieldDescriptor * | getFirstField () |
int | getLastValueOfAutoincrementCount () const |
dbFieldDescriptor * | getNextField (dbFieldDescriptor *field) |
char_t * | getName () |
size_t | size () |
bool | equal (dbTable *table) |
bool | match (dbTable *table, bool confirmDeleteColumns) |
void | checkRelationship () |
dbDatabase * | getDatabase () |
void | storeInDatabase (dbTable *table) |
void | setFlags () |
dbTableDescriptor (dbTable *table) | |
dbTableDescriptor (char_t const *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 | |
size_t | totalNamesLength () |
int | calculateFieldsAttributes (dbFieldDescriptor *fieldsList, char_t const *prefix, int offs, int indexMask, int &attr) |
dbFieldDescriptor * | buildFieldsList (dbTable *table, char_t const *prefix, int prefixLen, int &attr) |
dbTableDescriptor * | clone () |
Protected Attributes | |
dbTableDescriptor * | next |
dbTableDescriptor * | nextDbTable |
char_t * | name |
oid_t | tableId |
dbFieldDescriptor * | columns |
dbFieldDescriptor * | hashedFields |
dbFieldDescriptor * | indexedFields |
dbFieldDescriptor * | inverseFields |
dbFieldDescriptor * | firstField |
dbFieldDescriptor ** | nextFieldLink |
dbDatabase * | db |
bool | fixedDatabase |
bool | isStatic |
dbTableDescriptor * | cloneOf |
size_t | appSize |
size_t | fixedSize |
size_t | nFields |
size_t | nColumns |
oid_t | firstRow |
oid_t | lastRow |
size_t | nRows |
int4 | autoincrementCount |
dbTableDescriptor * | nextBatch |
bool | isInBatch |
dbSelection | batch |
int | transactionId |
|
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 last value of autoincrement counter used for this table
|
|
Get table name. |
|
Get next field
|
|
Get next table in database |
|
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. |
|
Get size of instance of the class in an application |
|
Save table descriptor in the database.
|
|
Calculate total length of all names in table descriptor |
|
Size of tghe correspondent application object |
|
Autoincremented counter for this table |
|
Selection to hold OID of batch inserted records |
|
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 |
|
Identifer of the first (oldest) row in the table |
|
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 B-Ttree |
|
Initial value for autoincrement conunt |
|
List of related fields (fields, for which inverse references exist) |
|
If table contains batch inserted records |
|
Table descriptor is static object created by one of REGISTER macros |
|
Identifer of the last (most recently inerted) row in the table |
|
Name of the table |
|
Number of columns in the table |
|
Chain of all tables in application |
|
Next table with batch inserted records |
|
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 |
|
Number of the rows in the table |
|
Indetifier of table object in the database |
|
ID of transaction when this table descriptor was last refreshed |