LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
connectivity::file::OPredicateCompiler Class Referencefinal

#include <fcomp.hxx>

Inheritance diagram for connectivity::file::OPredicateCompiler:
[legend]
Collaboration diagram for connectivity::file::OPredicateCompiler:
[legend]

Public Member Functions

 OPredicateCompiler (OSQLAnalyzer *pAnalyzer)
 
virtual ~OPredicateCompiler () override
 
void dispose ()
 
void start (connectivity::OSQLParseNode const *pSQLParseNode)
 
OOperandexecute (connectivity::OSQLParseNode const *pPredicateNode)
 
void Clean ()
 
bool isClean () const
 
bool hasCode () const
 
void setOrigColumns (const css::uno::Reference< css::container::XNameAccess > &rCols)
 
const css::uno::Reference< css::container::XNameAccess > & getOrigColumns () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

void execute_COMPARE (connectivity::OSQLParseNode const *pPredicateNode)
 
void execute_LIKE (connectivity::OSQLParseNode const *pPredicateNode)
 
void execute_BETWEEN (connectivity::OSQLParseNode const *pPredicateNode)
 
void execute_ISNULL (connectivity::OSQLParseNode const *pPredicateNode)
 
OOperandexecute_Operand (connectivity::OSQLParseNode const *pPredicateNode)
 
void execute_Fold (OSQLParseNode const *pPredicateNode)
 
void executeFunction (OSQLParseNode const *pPredicateNode)
 

Private Attributes

OCodeList m_aCodeList
 
css::uno::Reference< css::container::XNameAccess > m_orgColumns
 
OSQLAnalyzerm_pAnalyzer
 
sal_Int32 m_nParamCounter
 

Friends

class OPredicateInterpreter
 
class OSQLAnalyzer
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 34 of file fcomp.hxx.

Constructor & Destructor Documentation

◆ OPredicateCompiler()

OPredicateCompiler::OPredicateCompiler ( OSQLAnalyzer pAnalyzer)

Definition at line 44 of file fcomp.cxx.

◆ ~OPredicateCompiler()

OPredicateCompiler::~OPredicateCompiler ( )
overridevirtual

Definition at line 51 of file fcomp.cxx.

References Clean().

Member Function Documentation

◆ Clean()

void OPredicateCompiler::Clean ( )

Definition at line 50 of file FNoException.cxx.

References m_aCodeList.

Referenced by dispose(), and ~OPredicateCompiler().

◆ dispose()

void OPredicateCompiler::dispose ( void  )

Definition at line 56 of file fcomp.cxx.

References Clean(), and m_orgColumns.

◆ execute()

OOperand * OPredicateCompiler::execute ( connectivity::OSQLParseNode const *  pPredicateNode)

◆ execute_BETWEEN()

void OPredicateCompiler::execute_BETWEEN ( connectivity::OSQLParseNode const *  pPredicateNode)
private

◆ execute_COMPARE()

void OPredicateCompiler::execute_COMPARE ( connectivity::OSQLParseNode const *  pPredicateNode)
private

◆ execute_Fold()

void OPredicateCompiler::execute_Fold ( OSQLParseNode const *  pPredicateNode)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 582 of file fcomp.cxx.

References connectivity::OSQLParseNode::count(), DBG_ASSERT, execute(), connectivity::OSQLParseNode::getChild(), m_aCodeList, and SQL_ISTOKEN.

Referenced by execute_Operand().

◆ execute_ISNULL()

void OPredicateCompiler::execute_ISNULL ( connectivity::OSQLParseNode const *  pPredicateNode)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 389 of file fcomp.cxx.

References connectivity::OSQLParseNode::count(), DBG_ASSERT, execute(), connectivity::OSQLParseNode::getChild(), IS, m_aCodeList, NOT, and SQL_ISTOKEN.

Referenced by execute().

◆ execute_LIKE()

void OPredicateCompiler::execute_LIKE ( connectivity::OSQLParseNode const *  pPredicateNode)
private

◆ execute_Operand()

OOperand * OPredicateCompiler::execute_Operand ( connectivity::OSQLParseNode const *  pPredicateNode)
private

◆ executeFunction()

void OPredicateCompiler::executeFunction ( OSQLParseNode const *  pPredicateNode)
private

◆ getOrigColumns()

const css::uno::Reference< css::container::XNameAccess > & connectivity::file::OPredicateCompiler::getOrigColumns ( ) const
inline

Definition at line 57 of file fcomp.hxx.

References m_orgColumns.

◆ hasCode()

bool connectivity::file::OPredicateCompiler::hasCode ( ) const
inline

Definition at line 55 of file fcomp.hxx.

References isClean().

◆ isClean()

bool connectivity::file::OPredicateCompiler::isClean ( ) const
inline

Definition at line 54 of file fcomp.hxx.

References m_aCodeList.

Referenced by hasCode().

◆ setOrigColumns()

void connectivity::file::OPredicateCompiler::setOrigColumns ( const css::uno::Reference< css::container::XNameAccess > &  rCols)
inline

Definition at line 56 of file fcomp.hxx.

References m_orgColumns.

◆ start()

void OPredicateCompiler::start ( connectivity::OSQLParseNode const *  pSQLParseNode)

Friends And Related Function Documentation

◆ OPredicateInterpreter

friend class OPredicateInterpreter
friend

Definition at line 36 of file fcomp.hxx.

◆ OSQLAnalyzer

friend class OSQLAnalyzer
friend

Definition at line 37 of file fcomp.hxx.

Member Data Documentation

◆ m_aCodeList

OCodeList connectivity::file::OPredicateCompiler::m_aCodeList
private

◆ m_nParamCounter

sal_Int32 connectivity::file::OPredicateCompiler::m_nParamCounter
private

Definition at line 42 of file fcomp.hxx.

Referenced by execute_Operand(), and start().

◆ m_orgColumns

css::uno::Reference< css::container::XNameAccess> connectivity::file::OPredicateCompiler::m_orgColumns
private

Definition at line 40 of file fcomp.hxx.

Referenced by dispose(), execute_Operand(), getOrigColumns(), and setOrigColumns().

◆ m_pAnalyzer

OSQLAnalyzer* connectivity::file::OPredicateCompiler::m_pAnalyzer
private

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