LibreOffice Module connectivity (master) 1
|
#include <NStatement.hxx>
Public Member Functions | |
OEvoabConnection * | getOwnConnection () const |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
void | disposeResultSet () |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual | ~OCommonStatement () override |
void | parseSql (const OUString &sql, QueryData &_out_rQueryData) |
EBookQuery * | whereAnalysis (const OSQLParseNode *parseTree) |
void | orderByAnalysis (const OSQLParseNode *_pOrderByClause, SortDescriptor &_out_rSort) |
OUString | getTableName () const |
OCommonStatement (OEvoabConnection *_pConnection) | |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | acquire () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual void SAL_CALL | close () override |
QueryData | impl_getEBookQuery_throw (const OUString &_rSql) |
will return the EBookQuery representing the statement WHERE condition, or throw More... | |
css::uno::Reference< css::sdbc::XResultSet > | impl_executeQuery_throw (const OUString &_rSql) |
css::uno::Reference< css::sdbc::XResultSet > | impl_executeQuery_throw (const QueryData &_rData) |
css::uno::Reference< css::sdbc::XConnection > | impl_getConnection () |
OUString | impl_getColumnRefColumnName_throw (const ::connectivity::OSQLParseNode &_rColumnRef) |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Private Attributes | |
css::uno::WeakReference< css::sdbc::XResultSet > | m_xResultSet |
rtl::Reference< OEvoabConnection > | m_xConnection |
connectivity::OSQLParser | m_aParser |
connectivity::OSQLParseTreeIterator | m_aSQLIterator |
connectivity::OSQLParseNode * | m_pParseTree |
OUString | m_aCursorName |
sal_Int32 | m_nMaxFieldSize |
sal_Int32 | m_nMaxRows |
sal_Int32 | m_nQueryTimeOut |
sal_Int32 | m_nFetchSize |
sal_Int32 | m_nResultSetType |
sal_Int32 | m_nFetchDirection |
sal_Int32 | m_nResultSetConcurrency |
bool | m_bEscapeProcessing |
Additional Inherited Members | |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 146 of file NStatement.hxx.
|
overrideprotectedvirtual |
Definition at line 157 of file NStatement.cxx.
|
explicitprotected |
Definition at line 75 of file NStatement.cxx.
References getComponentContext(), connectivity::OMetaConnection::getPropMap(), m_aCursorName, m_aMutex, m_bEscapeProcessing, m_nFetchDirection, m_nFetchSize, m_nMaxFieldSize, m_nMaxRows, m_nQueryTimeOut, m_nResultSetConcurrency, m_nResultSetType, m_xConnection, PROPERTY_ID_CURSORNAME, PROPERTY_ID_ESCAPEPROCESSING, PROPERTY_ID_FETCHDIRECTION, PROPERTY_ID_FETCHSIZE, PROPERTY_ID_MAXFIELDSIZE, PROPERTY_ID_MAXROWS, PROPERTY_ID_QUERYTIMEOUT, PROPERTY_ID_RESULTSETCONCURRENCY, PROPERTY_ID_RESULTSETTYPE, and comphelper::OPropertyContainerHelper::registerProperty().
|
overrideprotectedvirtualnoexcept |
Reimplemented in connectivity::evoab::OEvoabPreparedStatement, and connectivity::evoab::OStatement.
Definition at line 576 of file NStatement.cxx.
Referenced by connectivity::evoab::OEvoabPreparedStatement::acquire().
|
overrideprotectedvirtual |
Definition at line 556 of file NStatement.cxx.
References connectivity::checkDisposed(), and cppu::BaseMutex::m_aMutex.
Referenced by connectivity::evoab::OEvoabPreparedStatement::close().
|
overrideprotectedvirtual |
Reimplemented in connectivity::evoab::OEvoabPreparedStatement.
Definition at line 207 of file NStatement.cxx.
References connectivity::checkDisposed(), dispose(), and cppu::BaseMutex::m_aMutex.
Referenced by connectivity::evoab::OEvoabPreparedStatement::close().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< OCommonStatement >.
Definition at line 563 of file NStatement.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
protected |
|
overrideprotectedvirtual |
Definition at line 170 of file NStatement.cxx.
References disposeResultSet(), cppu::BaseMutex::m_aMutex, and m_xConnection.
|
overrideprotected |
Definition at line 570 of file NStatement.cxx.
References comphelper::OPropertyArrayUsageHelper< OCommonStatement >::getArrayHelper().
Referenced by getPropertySetInfo().
|
inline |
Definition at line 190 of file NStatement.hxx.
References m_xConnection.
Referenced by connectivity::evoab::OEvoabPreparedStatement::setObject().
|
overrideprotectedvirtual |
Definition at line 635 of file NStatement.cxx.
References getInfoHelper().
|
protected |
Definition at line 453 of file NStatement.cxx.
References Any, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getParseTree(), connectivity::OSQLParseTreeIterator::getStatementType(), connectivity::OSQLParseNode::getTableComponents(), connectivity::OSQLParseNode::getTableRange(), connectivity::OSQLParseTreeIterator::isTableNode(), m_aSQLIterator, m_pParseTree, connectivity::Select, and SQL_ISRULE.
Referenced by parseSql().
|
overrideprotectedvirtual |
Reimplemented in connectivity::evoab::OEvoabPreparedStatement.
Definition at line 189 of file NStatement.cxx.
References aTypes.
Referenced by connectivity::evoab::OEvoabPreparedStatement::getTypes().
|
overrideprotectedvirtual |
Definition at line 546 of file NStatement.cxx.
References Any, connectivity::checkDisposed(), and cppu::BaseMutex::m_aMutex.
|
protected |
Definition at line 622 of file NStatement.cxx.
References impl_executeQuery_throw(), impl_getEBookQuery_throw(), pq_sdbc_driver::OUStringToOString(), and SAL_INFO.
Referenced by connectivity::evoab::OEvoabPreparedStatement::execute(), connectivity::evoab::OEvoabPreparedStatement::executeQuery(), connectivity::evoab::OStatement::executeQuery(), and impl_executeQuery_throw().
|
protected |
Definition at line 610 of file NStatement.cxx.
References m_xConnection, and m_xResultSet.
|
protected |
Definition at line 217 of file NStatement.cxx.
References connectivity::OSQLParseNode::count(), ENSURE_OR_THROW, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseNode::getTokenValue(), m_xConnection, SQL_ISPUNCTUATION, and SQL_ISRULE.
Referenced by orderByAnalysis(), and whereAnalysis().
|
inlineprotected |
Definition at line 232 of file NStatement.hxx.
References m_xConnection.
Referenced by connectivity::evoab::OEvoabPreparedStatement::getConnection(), and connectivity::evoab::OStatement::getConnection().
|
protected |
will return the EBookQuery representing the statement WHERE condition, or throw
Also, all statement dependent members (such as the parser/iterator) will be inited afterwards.
Definition at line 587 of file NStatement.cxx.
References aData, e_book_query_to_string, connectivity::OSQLParseTreeIterator::getSelectColumns(), m_aSQLIterator, m_xConnection, and parseSql().
Referenced by connectivity::evoab::OEvoabPreparedStatement::construct(), and impl_executeQuery_throw().
|
protected |
Definition at line 251 of file NStatement.cxx.
References connectivity::ASC, connectivity::OSQLParseNode::count(), connectivity::DESC, ENSURE_OR_THROW, connectivity::evoab::findEvoabField(), connectivity::OSQLParseNode::getByRule(), connectivity::OSQLParseNode::getChild(), i, impl_getColumnRefColumnName_throw(), connectivity::OSQLParseNode::isLeaf(), m_xConnection, connectivity::OSQLParseNode::ordering_spec_commalist, SQL_ISRULE, and SQL_ISTOKEN.
Referenced by parseSql().
|
protected |
Definition at line 486 of file NStatement.cxx.
References connectivity::evoab::QueryData::aSortOrder, connectivity::evoab::eFilterAlwaysFalse, connectivity::evoab::eFilterNone, connectivity::evoab::eFilterOther, connectivity::evoab::QueryData::eFilterType, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getOrderTree(), getTableName(), connectivity::OSQLParseTreeIterator::getWhereTree(), m_aParser, m_aSQLIterator, m_pParseTree, orderByAnalysis(), connectivity::OSQLParser::parseTree(), SAL_INFO, connectivity::OSQLParseTreeIterator::setParseTree(), connectivity::evoab::QueryData::setQuery(), connectivity::OSQLParseNode::showParseTree(), SQL_ISRULE, connectivity::evoab::QueryData::sTable, connectivity::OSQLParseTreeIterator::traverseAll(), and whereAnalysis().
Referenced by impl_getEBookQuery_throw().
|
overrideprotectedvirtual |
Reimplemented in connectivity::evoab::OEvoabPreparedStatement, and connectivity::evoab::OStatement.
Referenced by connectivity::evoab::OEvoabPreparedStatement::queryInterface().
|
overrideprotectedvirtualnoexcept |
Reimplemented in connectivity::evoab::OEvoabPreparedStatement, and connectivity::evoab::OStatement.
Definition at line 581 of file NStatement.cxx.
Referenced by connectivity::evoab::OEvoabPreparedStatement::release().
|
protected |
Definition at line 291 of file NStatement.cxx.
References AND, connectivity::ApproxNum, connectivity::OSQLParseNode::count(), e_book_query_and, E_BOOK_QUERY_BEGINS_WITH, E_BOOK_QUERY_CONTAINS, E_BOOK_QUERY_ENDS_WITH, E_BOOK_QUERY_IS, e_book_query_not, e_book_query_or, ENSURE_OR_THROW, connectivity::Equal, FALSE, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseNode::getNodeType(), connectivity::OSQLParseNode::getTokenValue(), impl_getColumnRefColumnName_throw(), connectivity::IntNum, connectivity::OSQLParseNode::isToken(), m_xConnection, connectivity::Name, connectivity::NotEqual, OR, SAL_INFO, SQL_ISPUNCTUATION, SQL_ISRULE, SQL_ISTOKEN, connectivity::String, TRUE, u, whereAnalysis(), and WILDCARD.
Referenced by parseSql(), and whereAnalysis().
|
private |
Definition at line 159 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 154 of file NStatement.hxx.
Referenced by parseSql().
|
private |
Definition at line 155 of file NStatement.hxx.
Referenced by getTableName(), impl_getEBookQuery_throw(), and parseSql().
|
private |
Definition at line 167 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 165 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 163 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 160 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 161 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 162 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 166 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 164 of file NStatement.hxx.
Referenced by OCommonStatement().
|
private |
Definition at line 156 of file NStatement.hxx.
Referenced by getTableName(), and parseSql().
|
private |
Definition at line 153 of file NStatement.hxx.
Referenced by disposing(), getOwnConnection(), impl_executeQuery_throw(), impl_getColumnRefColumnName_throw(), impl_getConnection(), impl_getEBookQuery_throw(), orderByAnalysis(), and whereAnalysis().
|
private |
Definition at line 152 of file NStatement.hxx.
Referenced by disposeResultSet(), and impl_executeQuery_throw().