OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
dbQueryBinaryCombo Class Reference

Binary query combining two sub-queries. More...

#include <oofquery.h>

Inheritance diagram for dbQueryBinaryCombo:
Inheritance graph
[legend]
Collaboration diagram for dbQueryBinaryCombo:
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

dbQueryClause::QueryCombinatorialOps binaryOperator () const
 
virtual dbQueryClauseclone () const
 
virtual dbQueryClausecloneReplacingTable (const dbTable *inTable, const dbTable *repTable) const
 conditionally clone if LHS or RHS clause requires replacement. More...
 
 dbQueryBinaryCombo (const dbQueryClause *, QueryCombinatorialOps, const dbQueryClause *)
 
 dbQueryBinaryCombo (const dbQueryBinaryCombo &)
 
virtual void describe (std::ostream &) const
 
virtual void getSearchTables (const dbTable *inSchTable, dbTable *&outDiffFieldTable, dbTable *&outRelatedTable) const
 
bool isSimpleIndexedSearch () const
 
const dbQueryClauseitem (unsigned int) const
 
dbQueryClausemakeCompoundSearch (const dbCompoundField *)
 
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)
 
unsigned long pairFieldsIfCouldUseCompoundIndex () const
 
virtual dbQueryClause::QueryClauseTypes queryClauseType () const
 
virtual ~dbQueryBinaryCombo ()
 

Static Public Member Functions

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

Static Public Attributes

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

Protected Attributes

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

Detailed Description

Binary query combining two sub-queries.

Simple class returned by C++ overloads like dbQueryClause::operator&&

Definition at line 203 of file oofquery.h.

Constructor & Destructor Documentation

dbQueryBinaryCombo::dbQueryBinaryCombo ( const dbQueryClause lhs,
QueryCombinatorialOps  op,
const dbQueryClause rhs 
)

Definition at line 421 of file oofquery.cpp.

Referenced by clone(), and cloneReplacingTable().

dbQueryBinaryCombo::dbQueryBinaryCombo ( const dbQueryBinaryCombo rhs)

Definition at line 444 of file oofquery.cpp.

dbQueryBinaryCombo::~dbQueryBinaryCombo ( )
virtual

Definition at line 430 of file oofquery.cpp.

References mTempKeyStoreToDispose, and mTempKeyStoreToDispose2.

Member Function Documentation

dbQueryClause::QueryCombinatorialOps dbQueryBinaryCombo::binaryOperator ( ) const
inline

Definition at line 630 of file oofquery.h.

References mComboOp.

Referenced by OOF_simpleRecordBackend::SearchCombineSubclauses().

dbQueryClause * dbQueryBinaryCombo::clone ( ) const
virtual

Implements dbQueryClause.

Reimplemented in dbQueryBinaryComboOwner.

Definition at line 438 of file oofquery.cpp.

References dbQueryBinaryCombo().

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

conditionally clone if LHS or RHS clause requires replacement.

Reimplemented from dbQueryClause.

Definition at line 457 of file oofquery.cpp.

References dbQueryClause::clone(), dbQueryClause::cloneReplacingTable(), dbQueryBinaryCombo(), mComboOp, mLhs, and mRhs.

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

Implements dbQueryClause.

Reimplemented in dbQueryBinaryComboOwner.

Definition at line 481 of file oofquery.cpp.

References dbQueryClause::describe(), mComboOp, mLhs, and mRhs.

void dbQueryClause::getSearchTables ( const dbTable inSchTable,
dbTable *&  outDiffFieldTable,
dbTable *&  outRelatedTable 
) const
virtualinherited
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().

const dbQueryClause * dbQueryBinaryCombo::item ( unsigned int  i) const

Definition at line 498 of file oofquery.cpp.

References mLhs, and mRhs.

Referenced by OOF_simpleRecordBackend::SearchCombineSubclauses().

dbQueryClause * dbQueryBinaryCombo::makeCompoundSearch ( const dbCompoundField fld)
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.

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.

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.

unsigned long dbQueryBinaryCombo::pairFieldsIfCouldUseCompoundIndex ( ) const
dbQueryClause::QueryClauseTypes dbQueryBinaryCombo::queryClauseType ( ) const
virtual

Implements dbQueryClause.

Definition at line 491 of file oofquery.cpp.

References dbQueryClause::binaryCombination.

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

Member Data Documentation

QueryCombinatorialOps dbQueryBinaryCombo::mComboOp
protected
const dbQueryClause* dbQueryBinaryCombo::mLhs
protected
const dbQueryClause * dbQueryBinaryCombo::mRhs
protected
char* dbQueryBinaryCombo::mTempKeyStoreToDispose
protected

Definition at line 233 of file oofquery.h.

Referenced by makeCompoundSearch(), and ~dbQueryBinaryCombo().

char * dbQueryBinaryCombo::mTempKeyStoreToDispose2
protected

Definition at line 233 of file oofquery.h.

Referenced by makeCompoundSearch(), and ~dbQueryBinaryCombo().

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

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