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

RHS String argument to queries on fields like dbChar. More...

#include <oofquery.h>

Inheritance diagram for dbQueryLiteralStr:
Inheritance graph
[legend]
Collaboration diagram for dbQueryLiteralStr:
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 const void * binaryContents () const
 
virtual dbQueryClauseclone () const
 
virtual dbQueryClausecloneReplacingTable (const dbTable *inTable, const dbTable *repTable) const
 
 dbQueryLiteralStr (const char *inStr)
 
virtual void describe (std::ostream &) const
 
virtual void getSearchTables (const dbTable *inSchTable, dbTable *&outDiffFieldTable, dbTable *&outRelatedTable) const
 
bool hasWildcards ()
 
bool isSimpleIndexedSearch () const
 
virtual unsigned short literalLen () 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
 
const char * str () const
 
virtual ~dbQueryLiteralStr ()
 

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

RHS String argument to queries on fields like dbChar.

Definition at line 324 of file oofquery.h.

Constructor & Destructor Documentation

dbQueryLiteralStr::dbQueryLiteralStr ( const char *  inStr)
inline

Definition at line 326 of file oofquery.h.

Referenced by clone().

virtual dbQueryLiteralStr::~dbQueryLiteralStr ( )
inlinevirtual

Definition at line 331 of file oofquery.h.

Member Function Documentation

const void * dbQueryLiteralStr::binaryContents ( ) const
virtual

Reimplemented from dbQueryLiteral.

Definition at line 1126 of file oofquery.cpp.

dbQueryClause * dbQueryLiteralStr::clone ( ) const
virtual

Implements dbQueryClause.

Definition at line 1112 of file oofquery.cpp.

References dbQueryLiteralStr().

dbQueryClause * dbQueryClause::cloneReplacingTable ( const dbTable inTable,
const dbTable repTable 
) const
virtualinherited
void dbQueryLiteralStr::describe ( std::ostream &  ) const
virtual

Implements dbQueryClause.

Definition at line 1133 of file oofquery.cpp.

void dbQueryClause::getSearchTables ( const dbTable inSchTable,
dbTable *&  outDiffFieldTable,
dbTable *&  outRelatedTable 
) const
virtualinherited
bool dbQueryLiteralStr::hasWildcards ( )

Definition at line 1149 of file oofquery.cpp.

References dbQueryClause::wildcardsInString().

Referenced by dbQueryBinary::isSimpleIndexedSearch().

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().

unsigned short dbQueryLiteralStr::literalLen ( ) const
virtual

Reimplemented from dbQueryLiteral.

Definition at line 1140 of file oofquery.cpp.

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.

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

Reimplemented from dbQueryLiteral.

Definition at line 1119 of file oofquery.cpp.

References dbQueryClause::atomicLiteralStr.

const char * dbQueryLiteralStr::str ( ) const
inline
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: