dbQuery Class Reference

#include <query.h>

Inheritance diagram for dbQuery:

dbCompiledQuery

List of all members.


Detailed Description

Query class.

It is derived from dbCompiledQuery class because each query is compiled only once - when it is executed first time. All subsequent executions of query used precompiled tree.

Public Member Functions

char * dump (char *buf)
char * dumpValues (char *buf)
dbQueryappend (dbQueryElement::ElementType type, void const *ptr, dbTableDescriptor *table=NULL)
dbQueryreset ()
dbQueryadd (dbQueryExpression const &expr)
dbQueryAnd (dbQueryExpression const &expr)
dbQueryOr (dbQueryExpression const &expr)
dbQueryAnd (char const *str)
dbQueryOr (char const *str)
dbQueryadd (char const *str)
dbQueryadd (char const **str)
dbQueryadd (rectangle const &rect)
dbQueryadd (char **str)
dbQueryadd (int1 const &value)
dbQueryadd (int2 const &value)
dbQueryadd (int4 const &value)
dbQueryadd (db_int8 const &value)
dbQueryadd (nat1 const &value)
dbQueryadd (nat2 const &value)
dbQueryadd (nat4 const &value)
dbQueryadd (db_nat8 const &value)
dbQueryadd (long const &value)
dbQueryadd (unsigned long const &value)
dbQueryadd (real4 const &value)
dbQueryadd (real8 const &value)
dbQueryadd (bool const &value)
dbQueryadd (void const *value)
dbQueryoperator, (char const *value)
dbQueryoperator, (char const **value)
dbQueryoperator, (char **value)
dbQueryoperator, (int1 const &value)
dbQueryoperator, (int2 const &value)
dbQueryoperator, (int4 const &value)
dbQueryoperator, (db_int8 const &value)
dbQueryoperator, (nat1 const &value)
dbQueryoperator, (nat2 const &value)
dbQueryoperator, (nat4 const &value)
dbQueryoperator, (db_nat8 const &value)
dbQueryoperator, (long const &value)
dbQueryoperator, (unsigned long const &value)
dbQueryoperator, (real4 const &value)
dbQueryoperator, (real8 const &value)
dbQueryoperator, (bool const &value)
dbQueryoperator, (void const *value)
dbQueryoperator, (dbQueryExpression const &expr)
dbQueryoperator, (rectangle const &rect)
dbQueryoperator= (const char *str)
dbQueryoperator, (dbArray< db_int4 > const &value)
dbQueryoperator, (dbArray< db_int4 >const *const &value)
dbQueryoperator, (dbArray< db_int8 > const &value)
dbQueryoperator, (dbArray< db_int8 >const *const &value)
dbQueryadd (dbArray< db_int4 > const &value)
dbQueryadd (dbArray< db_int4 >const *const &value)
dbQueryadd (dbArray< db_int8 > const &value)
dbQueryadd (dbArray< db_int8 >const *const &value)
template<class T>
dbQueryoperator, (dbReference< T > const &value)
template<class T>
dbQueryoperator, (dbArray< dbReference< T > > const &value)
template<class T>
dbQueryoperator, (dbArray< dbReference< T > >const *const &value)
template<class T>
dbQueryadd (dbReference< T > const &value)
template<class T>
dbQueryadd (dbArray< dbReference< T > > const &value)
template<class T>
dbQueryadd (dbArray< dbReference< T > >const *const &value)
template<class T>
dbQueryoperator= (T const &value)
dbQueryElementgetElements () const
 dbQuery ()
 dbQuery (char const *str)
 ~dbQuery ()

Public Attributes

int pos

Private Member Functions

 dbQuery (dbQuery const &)
dbQueryoperator= (dbQuery const &)

Private Attributes

dbMutex mutex
dbQueryElementelements
dbQueryElement ** nextElement
bool operand
bool mutexLocked

Friends

class dbCompiler
class dbDatabase
class dbSubSql
class dbCLI


Constructor & Destructor Documentation

dbQuery ( dbQuery const &   )  [inline, private]

dbQuery (  )  [inline]

dbQuery ( char const *  str  )  [inline]

~dbQuery (  )  [inline]


Member Function Documentation

dbQuery& operator= ( dbQuery const &   )  [inline, private]

char* dump ( char *  buf  )  [inline]

char* dumpValues ( char *  buf  )  [inline]

dbQuery& append ( dbQueryElement::ElementType  type,
void const *  ptr,
dbTableDescriptor table = NULL 
) [inline]

dbQuery & reset (  ) 

dbQuery & add ( dbQueryExpression const &  expr  ) 

dbQuery& And ( dbQueryExpression const &  expr  )  [inline]

dbQuery& Or ( dbQueryExpression const &  expr  )  [inline]

dbQuery& And ( char const *  str  )  [inline]

dbQuery& Or ( char const *  str  )  [inline]

dbQuery& add ( char const *  str  )  [inline]

dbQuery& add ( char const **  str  )  [inline]

dbQuery& add ( rectangle const &  rect  )  [inline]

dbQuery& add ( char **  str  )  [inline]

dbQuery& add ( int1 const &  value  )  [inline]

dbQuery& add ( int2 const &  value  )  [inline]

dbQuery& add ( int4 const &  value  )  [inline]

dbQuery& add ( db_int8 const &  value  )  [inline]

dbQuery& add ( nat1 const &  value  )  [inline]

dbQuery& add ( nat2 const &  value  )  [inline]

dbQuery& add ( nat4 const &  value  )  [inline]

dbQuery& add ( db_nat8 const &  value  )  [inline]

dbQuery& add ( long const &  value  )  [inline]

dbQuery& add ( unsigned long const &  value  )  [inline]

dbQuery& add ( real4 const &  value  )  [inline]

dbQuery& add ( real8 const &  value  )  [inline]

dbQuery& add ( bool const &  value  )  [inline]

dbQuery& add ( void const *  value  )  [inline]

dbQuery& operator, ( char const *  value  )  [inline]

dbQuery& operator, ( char const **  value  )  [inline]

dbQuery& operator, ( char **  value  )  [inline]

dbQuery& operator, ( int1 const &  value  )  [inline]

dbQuery& operator, ( int2 const &  value  )  [inline]

dbQuery& operator, ( int4 const &  value  )  [inline]

dbQuery& operator, ( db_int8 const &  value  )  [inline]

dbQuery& operator, ( nat1 const &  value  )  [inline]

dbQuery& operator, ( nat2 const &  value  )  [inline]

dbQuery& operator, ( nat4 const &  value  )  [inline]

dbQuery& operator, ( db_nat8 const &  value  )  [inline]

dbQuery& operator, ( long const &  value  )  [inline]

dbQuery& operator, ( unsigned long const &  value  )  [inline]

dbQuery& operator, ( real4 const &  value  )  [inline]

dbQuery& operator, ( real8 const &  value  )  [inline]

dbQuery& operator, ( bool const &  value  )  [inline]

dbQuery& operator, ( void const *  value  )  [inline]

dbQuery& operator, ( dbQueryExpression const &  expr  )  [inline]

dbQuery& operator, ( rectangle const &  rect  )  [inline]

dbQuery& operator= ( const char *  str  )  [inline]

dbQuery& operator, ( dbArray< db_int4 > const &  value  )  [inline]

dbQuery& operator, ( dbArray< db_int4 >const *const &  value  )  [inline]

dbQuery& operator, ( dbArray< db_int8 > const &  value  )  [inline]

dbQuery& operator, ( dbArray< db_int8 >const *const &  value  )  [inline]

dbQuery& add ( dbArray< db_int4 > const &  value  )  [inline]

dbQuery& add ( dbArray< db_int4 >const *const &  value  )  [inline]

dbQuery& add ( dbArray< db_int8 > const &  value  )  [inline]

dbQuery& add ( dbArray< db_int8 >const *const &  value  )  [inline]

dbQuery& operator, ( dbReference< T > const &  value  )  [inline]

dbQuery& operator, ( dbArray< dbReference< T > > const &  value  )  [inline]

dbQuery& operator, ( dbArray< dbReference< T > >const *const &  value  )  [inline]

dbQuery& add ( dbReference< T > const &  value  )  [inline]

dbQuery& add ( dbArray< dbReference< T > > const &  value  )  [inline]

dbQuery& add ( dbArray< dbReference< T > >const *const &  value  )  [inline]

dbQuery& operator= ( T const &  value  )  [inline]

dbQueryElement* getElements (  )  const [inline]


Friends And Related Function Documentation

friend class dbCompiler [friend]

friend class dbDatabase [friend]

friend class dbSubSql [friend]

friend class dbCLI [friend]


Member Data Documentation

dbMutex mutex [private]

bool operand [private]

bool mutexLocked [private]

int pos


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild