LibreOffice Module connectivity (master) 1
Public Types | Public Member Functions | Protected Member Functions | List of all members
connectivity::IParseContext Class Referenceabstract

#include <IParseContext.hxx>

Inheritance diagram for connectivity::IParseContext:
[legend]

Public Types

enum class  ErrorCode {
  General ,
  ValueNoLike ,
  FieldNoLike ,
  InvalidCompare ,
  InvalidIntCompare ,
  InvalidDateCompare ,
  InvalidRealCompare ,
  InvalidTableNosuch ,
  InvalidTableOrQuery ,
  InvalidColumn ,
  InvalidTableExist ,
  InvalidQueryExist
}
 
enum class  InternationalKeyCode {
  None = 0 ,
  Like ,
  Not ,
  Null ,
  True ,
  False ,
  Is ,
  Between ,
  Or ,
  And ,
  Avg ,
  Count ,
  Max ,
  Min ,
  Sum ,
  Every ,
  Any ,
  Some ,
  StdDevPop ,
  StdDevSamp ,
  VarSamp ,
  VarPop ,
  Collect ,
  Fusion ,
  Intersection
}
 

Public Member Functions

virtual OUString getErrorMessage (ErrorCode _eCodes) const =0
 
virtual OString getIntlKeywordAscii (InternationalKeyCode _eKey) const =0
 
virtual InternationalKeyCode getIntlKeyCode (const OString &rToken) const =0
 
virtual css::lang::Locale getPreferredLocale () const =0
 gets a locale instance which should be used when parsing in the context specified by this instance More...
 

Protected Member Functions

 ~IParseContext ()
 

Detailed Description

Definition at line 30 of file IParseContext.hxx.

Member Enumeration Documentation

◆ ErrorCode

Enumerator
General 
ValueNoLike 
FieldNoLike 
InvalidCompare 
InvalidIntCompare 
InvalidDateCompare 
InvalidRealCompare 
InvalidTableNosuch 
InvalidTableOrQuery 
InvalidColumn 
InvalidTableExist 
InvalidQueryExist 

Definition at line 33 of file IParseContext.hxx.

◆ InternationalKeyCode

Enumerator
None 
Like 
Not 
Null 
True 
False 
Is 
Between 
Or 
And 
Avg 
Count 
Max 
Min 
Sum 
Every 
Any 
Some 
StdDevPop 
StdDevSamp 
VarSamp 
VarPop 
Collect 
Fusion 
Intersection 

Definition at line 50 of file IParseContext.hxx.

Constructor & Destructor Documentation

◆ ~IParseContext()

connectivity::IParseContext::~IParseContext ( )
inlineprotected

Definition at line 95 of file IParseContext.hxx.

Member Function Documentation

◆ getErrorMessage()

virtual OUString connectivity::IParseContext::getErrorMessage ( ErrorCode  _eCodes) const
pure virtual

◆ getIntlKeyCode()

virtual InternationalKeyCode connectivity::IParseContext::getIntlKeyCode ( const OString &  rToken) const
pure virtual

◆ getIntlKeywordAscii()

virtual OString connectivity::IParseContext::getIntlKeywordAscii ( InternationalKeyCode  _eKey) const
pure virtual

Implemented in connectivity::OParseContext.

◆ getPreferredLocale()

virtual css::lang::Locale connectivity::IParseContext::getPreferredLocale ( ) const
pure virtual

gets a locale instance which should be used when parsing in the context specified by this instance

if this is not overridden by derived classes, it returns the static default locale.

Implemented in connectivity::OParseContext.

Referenced by dbtools::OPredicateInputController::implPredicateTree(), dbtools::OPredicateInputController::normalizePredicateString(), connectivity::OSQLParser::OSQLParser(), and connectivity::OSQLParser::predicateTree().


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