Main Page | Class Hierarchy | Class List | File List | Class Members

dbComponent Class Reference

#include <query.h>

List of all members.

Public Member Functions

 dbComponent (char_t const *s, char_t const *f=NULL)

Public Attributes

char_t const * structure
char_t const * field


Detailed Description

This class represents component of the structure. It is mostly needed for implementation of application specific database types. For example, look at dbDate class. It contains int4 jday component which stores time in seconds sinse 1970. This class defines its own comparison methods:
dbQueryExpression operator == (char const* field) { dbQueryExpression expr; expr = dbComponent(field,"jday"),"=",jday; return expr; }
Making it possible to sepcify queries like this (assume that record has column "released" with type dbDate:
dbQuery q; dbDate date; q = date == "released";


The documentation for this class was generated from the following file:
Generated on Thu Feb 12 18:46:27 2004 for GigaBASE by doxygen 1.3.5