LibreOffice Module connectivity (master) 1
|
#include <FStatement.hxx>
Public Member Functions | |
connectivity::OSQLParseNode * | getParseTree () const |
OStatement_Base (OConnection *_pConnection) | |
OConnection * | getOwnConnection () const |
virtual void | construct (const OUString &sql) |
virtual void SAL_CALL | disposing () 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 | cancel () override |
virtual void SAL_CALL | close () override |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
void | createColumnMapping () |
void | analyzeSQL () |
void | setOrderbyColumn (connectivity::OSQLParseNode const *pColumnRef, connectivity::OSQLParseNode const *pAscendingDescending) |
virtual void | initializeResultSet (OResultSet *_pResult) |
void | closeResultSet () |
void | disposeResultSet () |
void | GetAssignValues () |
void | SetAssignValue (const OUString &aColumnName, const OUString &aValue, bool bSetNull=false, sal_uInt32 nParameter=SQL_NO_PARAMETER) |
void | ParseAssignValues (const std::vector< OUString > &aColumnNameList, connectivity::OSQLParseNode *pRow_Value_Constructor_Elem, sal_Int32 nIndex) |
virtual void | parseParamterElem (const OUString &_sColumnName, OSQLParseNode *pRow_Value_Constructor_Elem) |
virtual rtl::Reference< OResultSet > | createResultSet ()=0 |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual | ~OStatement_Base () override |
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 |
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< OStatement_Base > | |
static std::mutex & | theMutex () |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 51 of file FStatement.hxx.
|
overrideprotectedvirtual |
Definition at line 86 of file FStatement.cxx.
References disposing(), and m_refCount.
connectivity::file::OStatement_Base::OStatement_Base | ( | OConnection * | _pConnection | ) |
Definition at line 55 of file FStatement.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, 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().
|
overridevirtualnoexcept |
Reimplemented in connectivity::file::OPreparedStatement, and connectivity::file::OStatement.
Definition at line 133 of file FStatement.cxx.
Referenced by connectivity::file::OPreparedStatement::acquire(), and connectivity::file::OStatement::acquire().
|
protected |
Definition at line 307 of file FStatement.cxx.
References connectivity::OSQLParseNode::count(), connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getOrderTree(), m, m_aSQLIterator, m_pParseTree, m_pSQLAnalyzer, m_xColNames, setOrderbyColumn(), and SQL_ISRULE.
Referenced by construct().
|
overridevirtual |
Definition at line 159 of file FStatement.cxx.
|
overridevirtual |
Definition at line 200 of file FStatement.cxx.
References connectivity::checkDisposed(), m_aLastWarning, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Reimplemented in connectivity::file::OPreparedStatement.
Definition at line 163 of file FStatement.cxx.
References connectivity::checkDisposed(), dispose(), and cppu::BaseMutex::m_aMutex.
|
protected |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 172 of file FStatement.cxx.
References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, m_xResultSet, and SAL_INFO.
Referenced by connectivity::file::OPreparedStatement::close(), and connectivity::file::OPreparedStatement::makeResultSet().
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in connectivity::file::OPreparedStatement.
Definition at line 368 of file FStatement.cxx.
References analyzeSQL(), Any, createColumnMapping(), connectivity::CreateTable, connectivity::OSQLParseTreeIterator::getParseTree(), connectivity::OSQLParseTreeIterator::getSelectColumns(), connectivity::OSQLParseTreeIterator::getStatementType(), connectivity::OSQLParseTreeIterator::getTables(), connectivity::OSQLParseTreeIterator::hasErrors(), m_aEvaluateRow, m_aParser, m_aRow, m_aSelectRow, m_aSQLIterator, m_pConnection, m_pParseTree, m_pSQLAnalyzer, m_pTable, m_xColNames, connectivity::OdbcCall, connectivity::OSQLParser::parseTree(), connectivity::Select, connectivity::OSQLParseTreeIterator::setParseTree(), SQL_ISRULE, connectivity::OSQLParseTreeIterator::traverseAll(), and connectivity::Unknown.
Referenced by connectivity::file::OPreparedStatement::construct(), connectivity::file::OStatement::executeQuery(), and connectivity::file::OStatement::executeUpdate().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< OStatement_Base >.
Definition at line 208 of file FStatement.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
protected |
Definition at line 439 of file FStatement.cxx.
References connectivity::OSQLParseTreeIterator::getSelectColumns(), i, m_aColMapping, m_aRow, m_aSelectRow, m_aSQLIterator, m_xColNames, m_xDBMetaData, and connectivity::file::OResultSet::setBoundedColumns().
Referenced by construct().
|
protectedpure virtual |
Implemented in connectivity::component::OComponentPreparedStatement, connectivity::component::OComponentStatement, connectivity::dbase::ODbasePreparedStatement, connectivity::dbase::ODbaseStatement, connectivity::file::OPreparedStatement, connectivity::file::OStatement, connectivity::flat::OFlatPreparedStatement, and connectivity::flat::OFlatStatement.
|
protected |
Definition at line 92 of file FStatement.cxx.
References m_xResultSet, and SAL_INFO.
Referenced by connectivity::file::OStatement_BASE2::disposing().
|
overridevirtual |
Reimplemented in connectivity::file::OPreparedStatement, and connectivity::file::OStatement_BASE2.
Definition at line 286 of file FStatement.cxx.
References m_aEvaluateRow.
Referenced by connectivity::file::OStatement_BASE2::disposing(), and ~OStatement_Base().
|
protected |
Definition at line 469 of file FStatement.cxx.
References assignment, connectivity::OSQLParseNode::count(), connectivity::Equal, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseNode::getNodeType(), connectivity::OSQLParseNode::getTokenValue(), i, connectivity::OSQLParseNode::isToken(), m_aAssignValues, m_aParameterIndexes, m_pParseTree, m_xColNames, nCount, nIndex, ParseAssignValues(), SQL_ISRULE, SQL_ISTOKEN, SQL_NO_PARAMETER, and dbtools::throwFunctionSequenceException().
Referenced by initializeResultSet().
|
overrideprotected |
Definition at line 216 of file FStatement.cxx.
References comphelper::OPropertyArrayUsageHelper< OStatement_Base >::getArrayHelper().
Referenced by getPropertySetInfo().
|
inline |
Definition at line 130 of file FStatement.hxx.
Referenced by setOrderbyColumn().
|
inline |
Definition at line 126 of file FStatement.hxx.
|
overridevirtual |
Definition at line 296 of file FStatement.cxx.
References getInfoHelper().
Reimplemented in connectivity::file::OPreparedStatement.
Definition at line 149 of file FStatement.cxx.
References aTypes.
Referenced by connectivity::file::OPreparedStatement::getTypes().
|
overridevirtual |
Definition at line 192 of file FStatement.cxx.
References Any, connectivity::checkDisposed(), m_aLastWarning, and cppu::BaseMutex::m_aMutex.
|
protectedvirtual |
Reimplemented in connectivity::file::OPreparedStatement.
Definition at line 452 of file FStatement.cxx.
References GetAssignValues(), m_aAssignValues, m_aColMapping, m_aEvaluateRow, m_aOrderbyAscending, m_aOrderbyColumnNumber, m_aRow, m_aSelectRow, m_pSQLAnalyzer, connectivity::file::OResultSet::setAssignValues(), connectivity::file::OResultSet::setBindingRow(), connectivity::file::OResultSet::setColumnMapping(), connectivity::file::OResultSet::setEvaluationRow(), connectivity::file::OResultSet::setOrderByAscending(), connectivity::file::OResultSet::setOrderByColumns(), connectivity::file::OResultSet::setSelectRow(), and connectivity::file::OResultSet::setSqlAnalyzer().
Referenced by connectivity::file::OStatement::executeQuery(), connectivity::file::OStatement::executeUpdate(), and connectivity::file::OPreparedStatement::initializeResultSet().
|
protected |
Definition at line 612 of file FStatement.cxx.
References connectivity::ApproxNum, connectivity::OSQLParseNode::getNodeType(), connectivity::OSQLParseNode::getTokenValue(), connectivity::IntNum, o3tl::make_unsigned(), nIndex, NULL, parseParamterElem(), SetAssignValue(), SQL_ISRULE, SQL_ISTOKEN, connectivity::String, and dbtools::throwFunctionSequenceException().
Referenced by GetAssignValues().
|
protectedvirtual |
Reimplemented in connectivity::file::OPreparedStatement.
Definition at line 704 of file FStatement.cxx.
Referenced by ParseAssignValues().
|
overridevirtual |
Reimplemented in connectivity::file::OPreparedStatement, and connectivity::file::OStatement.
|
protected |
Definition at line 639 of file FStatement.cxx.
References dbtools::OPropertyMap::getNameByIndex(), connectivity::OMetaConnection::getPropMap(), m_aAssignValues, m_aParameterIndexes, m_xColNames, nId, PROPERTY_ID_TYPE, SQL_NO_PARAMETER, and dbtools::throwFunctionSequenceException().
Referenced by ParseAssignValues(), and connectivity::file::OPreparedStatement::parseParamterElem().
|
protected |
Definition at line 337 of file FStatement.cxx.
References connectivity::ASC, connectivity::OSQLParseNode::count(), connectivity::DESC, connectivity::OSQLParseNode::getChild(), getOwnConnection(), connectivity::OSQLParseTreeIterator::getSelectColumns(), connectivity::OSQLParseNode::getTokenValue(), m_aOrderbyAscending, m_aOrderbyColumnNumber, m_aSQLIterator, m_xColNames, connectivity::OSQLParseNode::parseNodeToStr(), and SQL_ISTOKEN.
Referenced by analyzeSQL().
|
protected |
Definition at line 81 of file FStatement.hxx.
Referenced by connectivity::file::OPreparedStatement::checkAndResizeParameters(), GetAssignValues(), initializeResultSet(), connectivity::file::OPreparedStatement::initializeResultSet(), SetAssignValue(), connectivity::file::OPreparedStatement::setNull(), and connectivity::file::OPreparedStatement::setParameter().
|
protected |
Definition at line 59 of file FStatement.hxx.
Referenced by connectivity::file::OPreparedStatement::construct(), createColumnMapping(), and initializeResultSet().
|
protected |
Definition at line 84 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 80 of file FStatement.hxx.
Referenced by construct(), connectivity::file::OPreparedStatement::construct(), disposing(), and initializeResultSet().
|
protected |
Definition at line 64 of file FStatement.hxx.
Referenced by clearWarnings(), and getWarnings().
|
protected |
Definition at line 62 of file FStatement.hxx.
Referenced by initializeResultSet(), and setOrderbyColumn().
|
protected |
Definition at line 61 of file FStatement.hxx.
Referenced by initializeResultSet(), and setOrderbyColumn().
|
protected |
Definition at line 60 of file FStatement.hxx.
Referenced by connectivity::file::OPreparedStatement::checkAndResizeParameters(), GetAssignValues(), SetAssignValue(), connectivity::file::OPreparedStatement::setNull(), and connectivity::file::OPreparedStatement::setParameter().
|
protected |
Definition at line 70 of file FStatement.hxx.
Referenced by construct().
|
protected |
Definition at line 79 of file FStatement.hxx.
Referenced by construct(), createColumnMapping(), connectivity::file::OStatement_BASE2::disposing(), and initializeResultSet().
|
protected |
Definition at line 78 of file FStatement.hxx.
Referenced by construct(), createColumnMapping(), and initializeResultSet().
|
protected |
Definition at line 71 of file FStatement.hxx.
Referenced by connectivity::file::OPreparedStatement::AddParameter(), analyzeSQL(), construct(), connectivity::file::OPreparedStatement::construct(), createColumnMapping(), connectivity::component::OComponentPreparedStatement::createResultSet(), connectivity::component::OComponentStatement::createResultSet(), connectivity::dbase::ODbasePreparedStatement::createResultSet(), connectivity::dbase::ODbaseStatement::createResultSet(), connectivity::file::OPreparedStatement::createResultSet(), connectivity::file::OStatement::createResultSet(), connectivity::flat::OFlatPreparedStatement::createResultSet(), connectivity::flat::OFlatStatement::createResultSet(), connectivity::file::OPreparedStatement::describeColumn(), connectivity::file::OPreparedStatement::describeParameter(), connectivity::file::OStatement_BASE2::disposing(), connectivity::file::OPreparedStatement::execute(), connectivity::file::OStatement::execute(), connectivity::file::OPreparedStatement::getMetaData(), and setOrderbyColumn().
|
protected |
Definition at line 92 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 90 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 88 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 85 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 86 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 87 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 91 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
Definition at line 89 of file FStatement.hxx.
Referenced by OStatement_Base().
|
protected |
|
protected |
Definition at line 74 of file FStatement.hxx.
Referenced by analyzeSQL(), construct(), connectivity::file::OPreparedStatement::describeParameter(), connectivity::file::OStatement_BASE2::disposing(), and GetAssignValues().
|
protected |
Definition at line 75 of file FStatement.hxx.
Referenced by analyzeSQL(), construct(), connectivity::file::OStatement_BASE2::disposing(), initializeResultSet(), and connectivity::file::OPreparedStatement::initializeResultSet().
|
protected |
Definition at line 77 of file FStatement.hxx.
Referenced by construct(), connectivity::file::OStatement_BASE2::disposing(), connectivity::file::OPreparedStatement::getMetaData(), and connectivity::file::OPreparedStatement::parseParamterElem().
|
protected |
Definition at line 67 of file FStatement.hxx.
Referenced by analyzeSQL(), construct(), connectivity::file::OPreparedStatement::construct(), createColumnMapping(), GetAssignValues(), connectivity::file::OPreparedStatement::parseParamterElem(), SetAssignValue(), and setOrderbyColumn().
|
protected |
Definition at line 66 of file FStatement.hxx.
Referenced by connectivity::file::OPreparedStatement::construct(), and createColumnMapping().
|
protected |
Definition at line 65 of file FStatement.hxx.
Referenced by closeResultSet(), disposeResultSet(), connectivity::file::OStatement::executeQuery(), and connectivity::file::OPreparedStatement::makeResultSet().