OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
dbQueryClause Class Referenceabstract

Highest level used to assemble queries. More...

#include <oofquery.h>

Inheritance diagram for dbQueryClause:
Inheritance 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 =0
 
virtual dbQueryClausecloneReplacingTable (const dbTable *inTable, const dbTable *repTable) const
 
virtual void describe (std::ostream &) const =0
 
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)
 
dbQueryBinaryCombo operator| (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator| (dbQueryClause *adoptRHS)
 
dbQueryBinaryCombo operator|| (const dbQueryClause &) const
 
dbQueryBinaryComboOwneroperator|| (dbQueryClause *adoptRHS)
 
virtual dbQueryClause::QueryClauseTypes queryClauseType () const =0
 
virtual ~dbQueryClause ()
 

Static Public Member Functions

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

Static Public Attributes

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

Protected Member Functions

 dbQueryClause ()
 

Detailed Description

Highest level used to assemble queries.

Definition at line 46 of file oofquery.h.

Constructor & Destructor Documentation

virtual dbQueryClause::~dbQueryClause ( )
inlinevirtual

Definition at line 55 of file oofquery.h.

dbQueryClause::dbQueryClause ( )
inlineprotected

Definition at line 79 of file oofquery.h.

Member Function Documentation

virtual dbQueryClause* dbQueryClause::clone ( ) const
pure virtual
dbQueryClause * dbQueryClause::cloneReplacingTable ( const dbTable inTable,
const dbTable repTable 
) const
virtual
virtual void dbQueryClause::describe ( std::ostream &  ) const
pure virtual
void dbQueryClause::getSearchTables ( const dbTable inSchTable,
dbTable *&  outDiffFieldTable,
dbTable *&  outRelatedTable 
) const
virtual
bool dbQueryClause::isSimpleIndexedSearch ( ) const

Definition at line 65 of file oofquery.cpp.

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

Definition at line 72 of file oofquery.cpp.

Referenced by OOF_ctreeBackend::CanUseIndex().

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

Definition at line 80 of file oofquery.cpp.

References oofAND.

dbQueryBinaryComboOwner * dbQueryClause::operator& ( dbQueryClause adoptRHS)

Definition at line 122 of file oofquery.cpp.

References oofAND.

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

Definition at line 87 of file oofquery.cpp.

References oofAND.

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

Definition at line 129 of file oofquery.cpp.

References oofAND.

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

Definition at line 94 of file oofquery.cpp.

References oofOR.

dbQueryBinaryComboOwner * dbQueryClause::operator| ( dbQueryClause adoptRHS)

Definition at line 108 of file oofquery.cpp.

References oofOR.

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

Definition at line 101 of file oofquery.cpp.

References oofOR.

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

Definition at line 115 of file oofquery.cpp.

References oofOR.

virtual dbQueryClause::QueryClauseTypes dbQueryClause::queryClauseType ( ) const
pure virtual
bool dbQueryClause::wildcardsInString ( const char *  schStr)
static

Member Data Documentation

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

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