Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dbQueryBinaryComboOwner Class Reference
[OOFILE Database Query]

#include <oofquery.h>

Inheritance diagram for dbQueryBinaryComboOwner:

Inheritance graph
[legend]
Collaboration diagram for dbQueryBinaryComboOwner:

Collaboration graph
[legend]
List of all members.

Detailed Description

Builder class used to combine sub-queries when constructing runtime queries.

It can delete heap objects unlike the normal combinatorial dbQueryBinaryCombo which is used by C++ operator overloads.

See also:
dbQuery


Public Types

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

Public Member Functions

 dbQueryBinaryComboOwner (dbQueryClause *, QueryCombinatorialOps, dbQueryClause *)
virtual ~dbQueryBinaryComboOwner ()
virtual dbQueryClauseclone () const
virtual void describe (std::ostream &) const
virtual dbQueryClause::QueryClauseTypes queryClauseType () const
dbQueryClause::QueryCombinatorialOps binaryOperator () const
const dbQueryClauseitem (unsigned int) const
unsigned long pairFieldsIfCouldUseCompoundIndex () const
dbQueryClausemakeCompoundSearch (const dbCompoundField *)
virtual dbQueryClausecloneReplacingTable (const dbTable *inTable, const dbTable *repTable) const
 conditionally clone if LHS or RHS clause requires replacement.

bool isSimpleIndexedSearch () const
virtual void getSearchTables (const dbTable *inSchTable, dbTable *&outDiffFieldTable, dbTable *&outRelatedTable) 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)

Static Public Member Functions

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

Static Public Attributes

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

Protected Attributes

const dbQueryClausemLhs
const dbQueryClausemRhs
QueryCombinatorialOps mComboOp
char * mTempKeyStoreToDispose
char * mTempKeyStoreToDispose2


Member Enumeration Documentation

enum dbQueryClause::BinaryQueryOps [inherited]
 

Enumeration values:
equals 
notEquals 
lessThan 
lessThanOrEqual 
greaterThan 
greaterThanOrEqual 
startsWith 
hasWord 
hasAnyWord 
hasAllWords 
hasWordStartsWith 
hasAnyWordStartsWith 
hasAllWordsStartsWith 

enum dbQueryClause::QueryClauseTypes [inherited]
 

Enumeration values:
binaryfieldToLiteral 
binaryfieldTofield 
trinaryFieldToLiterals 
entireTable 
atomicfield 
atomicLiteral 
atomicLiteralStr 
multiLiteralStr 
binaryCombination 
builtQuery 

enum dbQueryClause::QueryCombinatorialOps [inherited]
 

Enumeration values:
oofAND 
oofOR 

enum dbQueryClause::TrinaryQueryOps [inherited]
 

Enumeration values:
between 
outside 


Constructor & Destructor Documentation

dbQueryBinaryComboOwner::dbQueryBinaryComboOwner dbQueryClause ,
QueryCombinatorialOps  ,
dbQueryClause
 

dbQueryBinaryComboOwner::~dbQueryBinaryComboOwner  )  [virtual]
 


Member Function Documentation

dbQueryClause::QueryCombinatorialOps dbQueryBinaryCombo::binaryOperator  )  const [inline, inherited]
 

dbQueryClause * dbQueryBinaryComboOwner::clone  )  const [virtual]
 

Reimplemented from dbQueryBinaryCombo.

dbQueryClause * dbQueryBinaryCombo::cloneReplacingTable const dbTable inTable,
const dbTable repTable
const [virtual, inherited]
 

conditionally clone if LHS or RHS clause requires replacement.

Reimplemented from dbQueryClause.

void dbQueryBinaryComboOwner::describe std::ostream &   )  const [virtual]
 

Reimplemented from dbQueryBinaryCombo.

void dbQueryClause::getSearchTables const dbTable inSchTable,
dbTable *&  outDiffFieldTable,
dbTable *&  outRelatedTable
const [virtual, inherited]
 

Reimplemented in dbQuery, dbQueryBinary, dbQueryTrinary, and dbQueryField.

bool dbQueryClause::isSimpleIndexedSearch  )  const [inherited]
 

Reimplemented in dbQueryBinary.

bool dbQueryClause::isWordSearch dbQueryClause::BinaryQueryOps   )  [static, inherited]
 

const dbQueryClause * dbQueryBinaryCombo::item unsigned  int  )  const [inherited]
 

dbQueryClause * dbQueryBinaryCombo::makeCompoundSearch const dbCompoundField  )  [inherited]
 

dbQueryBinaryComboOwner * dbQueryClause::operator & dbQueryClause adoptRHS  )  [inherited]
 

dbQueryBinaryCombo dbQueryClause::operator & const dbQueryClause  )  const [inherited]
 

dbQueryBinaryComboOwner * dbQueryClause::operator && dbQueryClause adoptRHS  )  [inherited]
 

dbQueryBinaryCombo dbQueryClause::operator && const dbQueryClause  )  const [inherited]
 

dbQueryBinaryComboOwner * dbQueryClause::operator| dbQueryClause adoptRHS  )  [inherited]
 

dbQueryBinaryCombo dbQueryClause::operator| const dbQueryClause  )  const [inherited]
 

dbQueryBinaryComboOwner * dbQueryClause::operator|| dbQueryClause adoptRHS  )  [inherited]
 

dbQueryBinaryCombo dbQueryClause::operator|| const dbQueryClause  )  const [inherited]
 

unsigned long dbQueryBinaryCombo::pairFieldsIfCouldUseCompoundIndex  )  const [inherited]
 

dbQueryClause::QueryClauseTypes dbQueryBinaryCombo::queryClauseType  )  const [virtual, inherited]
 

Implements dbQueryClause.

bool dbQueryClause::wildcardsInString const char *   )  [static, inherited]
 


Member Data Documentation

QueryCombinatorialOps dbQueryBinaryCombo::mComboOp [protected, inherited]
 

const dbQueryClause* dbQueryBinaryCombo::mLhs [protected, inherited]
 

const dbQueryClause * dbQueryBinaryCombo::mRhs [protected, inherited]
 

char* dbQueryBinaryCombo::mTempKeyStoreToDispose [protected, inherited]
 

char * dbQueryBinaryCombo::mTempKeyStoreToDispose2 [protected, inherited]
 

char dbQueryClause::sWildcardMultiple = '*' [static, inherited]
 

char dbQueryClause::sWildcardSingle = '?' [static, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:43:04 2004 for OOFILE by doxygen 1.3.5