OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members

class for building queries of arbitrary complexity with application logic. More...

#include <oofquery.h>

Inheritance diagram for dbQuery:
Inheritance graph
[legend]
Collaboration diagram for dbQuery:
Collaboration graph
[legend]

Public Types

enum  BinaryQueryOps {
  equals, notEquals, lessThan, lessThanOrEqual,
  greaterThan, greaterThanOrEqual, startsWith, hasWord,
  hasAnyWord, hasAllWords, hasWordStartsWith, hasAnyWordStartsWith,
  hasAllWordsStartsWith
}
 
enum  QueryClauseTypes {
  binaryfieldToLiteral, binaryfieldTofield, trinaryFieldToLiterals, entireTable,
  atomicfield, atomicLiteral, atomicLiteralStr, multiLiteralStr,
  binaryCombination, builtQuery
}
 
enum  QueryCombinatorialOps { oofAND, oofOR }
 
enum  TrinaryQueryOps { between, outside }
 

Public Member Functions

virtual dbQueryClauseclone () const
 
virtual dbQueryClausecloneReplacingTable (const dbTable *inTable, const dbTable *repTable) const
 conditionally clone if embedded query requires replacement. More...
 
 dbQuery ()
 
virtual void describe (std::ostream &) const
 
virtual void getSearchTables (const dbTable *inSchTable, dbTable *&outDiffFieldTable, dbTable *&outRelatedTable) const
 
bool isSimpleIndexedSearch () const
 
dbQueryBinaryCombo operator& (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator& (dbQueryClause *adoptRHS)
 
dbQueryBinaryCombo operator&& (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator&& (dbQueryClause *adoptRHS)
 
void operator&= (dbQueryClause *adoptedPortion)
 
dbQueryBinaryCombo operator| (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator| (dbQueryClause *adoptRHS)
 
void operator|= (dbQueryClause *adoptedPortion)
 
dbQueryBinaryCombo operator|| (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator|| (dbQueryClause *adoptRHS)
 
const dbQueryClausequery () const
 
virtual dbQueryClause::QueryClauseTypes queryClauseType () const
 
virtual ~dbQuery ()
 

Static Public Member Functions

static bool isWordSearch (dbQueryClause::BinaryQueryOps)
 
static bool wildcardsInString (const char *)
 

Static Public Attributes

static char sWildcardMultiple = '*'
 
static char sWildcardSingle = '?'
 

Detailed Description

class for building queries of arbitrary complexity with application logic.

Definition at line 101 of file oofquery.h.

Constructor & Destructor Documentation

dbQuery::dbQuery ( )

Definition at line 138 of file oofquery.cpp.

Referenced by clone(), and cloneReplacingTable().

dbQuery::~dbQuery ( )
virtual

Definition at line 143 of file oofquery.cpp.

Member Function Documentation

dbQueryClause * dbQuery::clone ( ) const
virtual

Implements dbQueryClause.

Definition at line 150 of file oofquery.cpp.

References dbQuery().

dbQueryClause * dbQuery::cloneReplacingTable ( const dbTable inTable,
const dbTable repTable 
) const
virtual

conditionally clone if embedded query requires replacement.

Reimplemented from dbQueryClause.

Definition at line 184 of file oofquery.cpp.

References dbQueryClause::cloneReplacingTable(), and dbQuery().

void dbQuery::describe ( std::ostream &  ) const
virtual

Implements dbQueryClause.

Definition at line 157 of file oofquery.cpp.

References dbQueryClause::describe().

void dbQuery::getSearchTables ( const dbTable inSchTable,
dbTable *&  outDiffFieldTable,
dbTable *&  outRelatedTable 
) const
virtual

Reimplemented from dbQueryClause.

Definition at line 172 of file oofquery.cpp.

References dbQueryClause::getSearchTables().

bool dbQueryClause::isSimpleIndexedSearch ( ) const
inherited

Definition at line 65 of file oofquery.cpp.

bool dbQueryClause::isWordSearch ( dbQueryClause::BinaryQueryOps  inOp)
staticinherited

Definition at line 72 of file oofquery.cpp.

Referenced by OOF_ctreeBackend::CanUseIndex().

dbQueryBinaryCombo dbQueryClause::operator& ( const dbQueryClause rhs) const
inherited

Definition at line 80 of file oofquery.cpp.

References dbQueryClause::oofAND.

dbQueryBinaryComboOwner * dbQueryClause::operator& ( dbQueryClause adoptRHS)
inherited

Definition at line 122 of file oofquery.cpp.

References dbQueryClause::oofAND.

dbQueryBinaryCombo dbQueryClause::operator&& ( const dbQueryClause rhs) const
inherited

Definition at line 87 of file oofquery.cpp.

References dbQueryClause::oofAND.

dbQueryBinaryComboOwner * dbQueryClause::operator&& ( dbQueryClause adoptRHS)
inherited

Definition at line 129 of file oofquery.cpp.

References dbQueryClause::oofAND.

void dbQuery::operator&= ( dbQueryClause adoptedPortion)

Definition at line 209 of file oofquery.cpp.

dbQueryBinaryCombo dbQueryClause::operator| ( const dbQueryClause rhs) const
inherited

Definition at line 94 of file oofquery.cpp.

References dbQueryClause::oofOR.

dbQueryBinaryComboOwner * dbQueryClause::operator| ( dbQueryClause adoptRHS)
inherited

Definition at line 108 of file oofquery.cpp.

References dbQueryClause::oofOR.

void dbQuery::operator|= ( dbQueryClause adoptedPortion)

Definition at line 197 of file oofquery.cpp.

dbQueryBinaryCombo dbQueryClause::operator|| ( const dbQueryClause rhs) const
inherited

Definition at line 101 of file oofquery.cpp.

References dbQueryClause::oofOR.

dbQueryBinaryComboOwner * dbQueryClause::operator|| ( dbQueryClause adoptRHS)
inherited

Definition at line 115 of file oofquery.cpp.

References dbQueryClause::oofOR.

const dbQueryClause * dbQuery::query ( ) const
inline

Definition at line 600 of file oofquery.h.

dbQueryClause::QueryClauseTypes dbQuery::queryClauseType ( ) const
virtual

Implements dbQueryClause.

Definition at line 165 of file oofquery.cpp.

References dbQueryClause::builtQuery.

bool dbQueryClause::wildcardsInString ( const char *  schStr)
staticinherited

Member Data Documentation

char dbQueryClause::sWildcardMultiple = '*'
staticinherited
char dbQueryClause::sWildcardSingle = '?'
staticinherited

The documentation for this class was generated from the following files: