LibreOffice Module connectivity (master) 1
|
#include <fcomp.hxx>
Public Member Functions | |
OPredicateCompiler (OSQLAnalyzer *pAnalyzer) | |
virtual | ~OPredicateCompiler () override |
void | dispose () |
void | start (connectivity::OSQLParseNode const *pSQLParseNode) |
OOperand * | execute (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) |
OOperand * | execute_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 |
OSQLAnalyzer * | m_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 |
OPredicateCompiler::OPredicateCompiler | ( | OSQLAnalyzer * | pAnalyzer | ) |
|
overridevirtual |
void OPredicateCompiler::Clean | ( | ) |
Definition at line 50 of file FNoException.cxx.
References m_aCodeList.
Referenced by dispose(), and ~OPredicateCompiler().
void OPredicateCompiler::dispose | ( | void | ) |
Definition at line 56 of file fcomp.cxx.
References Clean(), and m_orgColumns.
OOperand * OPredicateCompiler::execute | ( | connectivity::OSQLParseNode const * | pPredicateNode | ) |
Definition at line 133 of file fcomp.cxx.
References AND, connectivity::OSQLParseNode::count(), execute(), execute_BETWEEN(), execute_COMPARE(), execute_ISNULL(), execute_LIKE(), execute_Operand(), connectivity::OSQLParseNode::getChild(), m_aCodeList, OR, SQL_ISPUNCTUATION, SQL_ISRULE, and SQL_ISTOKEN.
Referenced by execute(), execute_BETWEEN(), execute_COMPARE(), execute_Fold(), execute_ISNULL(), execute_LIKE(), executeFunction(), and start().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 312 of file fcomp.cxx.
References connectivity::OSQLParseNode::count(), DBG_ASSERT, execute(), connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), connectivity::ORowSetValue::getDate(), connectivity::ORowSetValue::getDateTime(), connectivity::file::OOperand::getDBType(), connectivity::ORowSetValue::getDouble(), connectivity::ORowSetValue::getFloat(), connectivity::OSQLParseNode::getNodeType(), connectivity::ORowSetValue::getString(), connectivity::ORowSetValue::getTime(), connectivity::file::OOperand::getValue(), m_aCodeList, m_pAnalyzer, NOT, connectivity::file::OOperand::setValue(), SQL_ISRULE, SQL_ISTOKEN, connectivity::String, and connectivity::OMetaConnection::throwGenericSQLException().
Referenced by execute().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 218 of file fcomp.cxx.
References connectivity::ApproxNum, connectivity::OSQLParseNode::count(), DBG_ASSERT, connectivity::Equal, execute(), FALSE, connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), connectivity::OSQLParseNode::getNodeType(), connectivity::Great, connectivity::GreatEq, connectivity::IntNum, connectivity::Less, connectivity::LessEq, m_aCodeList, m_pAnalyzer, connectivity::NotEqual, SQL_ISRULE, SQL_ISTOKEN, connectivity::String, connectivity::OMetaConnection::throwGenericSQLException(), and TRUE.
Referenced by execute().
|
private |
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().
|
private |
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().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 264 of file fcomp.cxx.
References connectivity::OSQLParseNode::count(), DBG_ASSERT, execute(), connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), connectivity::OSQLParseNode::getNodeType(), connectivity::OSQLParseNode::getTokenValue(), connectivity::OSQLParseNode::isToken(), m_aCodeList, m_pAnalyzer, SQL_ISRULE, connectivity::String, and connectivity::OMetaConnection::throwGenericSQLException().
Referenced by execute().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 407 of file fcomp.cxx.
References connectivity::ApproxNum, connectivity::OSQLParseNode::count(), connectivity::file::OSQLAnalyzer::createOperandAttr(), D, Exception, execute_Fold(), executeFunction(), FALSE, connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), connectivity::OSQLParseNode::getNodeType(), connectivity::OMetaConnection::getResources(), connectivity::SharedResources::getResourceStringWithSubstitution(), connectivity::OSQLParseNode::getTokenValue(), connectivity::IntNum, connectivity::Keyword, m_aCodeList, m_nParamCounter, m_orgColumns, m_pAnalyzer, connectivity::Name, connectivity::file::OOperand::setValue(), SQL_ISPUNCTUATION, SQL_ISRULE, SQL_ISTOKEN, connectivity::String, dbtools::throwGenericSQLException(), connectivity::OMetaConnection::throwGenericSQLException(), dbtools::DBTypeConversion::toDate(), dbtools::DBTypeConversion::toDateTime(), toDouble(), TOOLS_WARN_EXCEPTION, dbtools::DBTypeConversion::toTime(), TRUE, and TS.
Referenced by execute().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 598 of file fcomp.cxx.
References connectivity::OSQLParseNode::count(), execute(), connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), connectivity::OSQLParseNode::getTokenID(), i, connectivity::OSQLParseNode::isToken(), m_aCodeList, m_pAnalyzer, and connectivity::OMetaConnection::throwGenericSQLException().
Referenced by execute_Operand().
|
inline |
Definition at line 57 of file fcomp.hxx.
References m_orgColumns.
|
inline |
|
inline |
|
inline |
Definition at line 56 of file fcomp.hxx.
References m_orgColumns.
void OPredicateCompiler::start | ( | connectivity::OSQLParseNode const * | pSQLParseNode | ) |
Definition at line 62 of file fcomp.cxx.
References connectivity::OSQLParseNode::count(), DBG_ASSERT, execute(), connectivity::OSQLParseNode::getChild(), connectivity::file::OSQLAnalyzer::getConnection(), i, m_nParamCounter, m_pAnalyzer, ORDER_BY_CHILD_POS, SQL_ISRULE, TABLE_EXPRESSION_CHILD_COUNT, and connectivity::OMetaConnection::throwGenericSQLException().
|
friend |
|
friend |
|
private |
Definition at line 39 of file fcomp.hxx.
Referenced by Clean(), execute(), execute_BETWEEN(), execute_COMPARE(), execute_Fold(), execute_ISNULL(), execute_LIKE(), execute_Operand(), executeFunction(), and isClean().
|
private |
Definition at line 42 of file fcomp.hxx.
Referenced by execute_Operand(), and start().
|
private |
Definition at line 40 of file fcomp.hxx.
Referenced by dispose(), execute_Operand(), getOrigColumns(), and setOrigColumns().
|
private |
Definition at line 41 of file fcomp.hxx.
Referenced by execute_BETWEEN(), execute_COMPARE(), execute_LIKE(), execute_Operand(), executeFunction(), and start().