LibreOffice Module connectivity (master) 1
|
#include <MacabStatement.hxx>
Public Member Functions | |
MacabCommonStatement (MacabConnection *_pConnection) | |
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::Reference< css::sdbc::XResultSet > SAL_CALL | executeQuery (const OUString &sql) override |
virtual sal_Int32 SAL_CALL | executeUpdate (const OUString &sql) override |
virtual sal_Bool SAL_CALL | execute (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL | getConnection () 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 |
MacabConnection * | getOwnConnection () const |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< MacabCommonStatement > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
class MacabCondition * | analyseWhereClause (const OSQLParseNode *pParseNode) const |
class MacabOrder * | analyseOrderByClause (const OSQLParseNode *pParseNode) const |
OUString | getTableName () const |
void | setMacabFields (class MacabResultSet *pResult) const |
void | selectRecords (MacabResultSet *pResult) const |
void | sortRecords (MacabResultSet *pResult) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
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 void | resetParameters () const |
virtual void | getNextParameter (OUString &rParameter) const |
virtual | ~MacabCommonStatement () override |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Attributes | |
connectivity::OSQLParser | m_aParser |
connectivity::OSQLParseTreeIterator | m_aSQLIterator |
connectivity::OSQLParseNode * | m_pParseTree |
MacabConnection * | m_pConnection |
MacabHeader * | m_pHeader |
css::uno::WeakReference< css::sdbc::XResultSet > | m_xResultSet |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Private Attributes | |
css::sdbc::SQLWarning | m_aLastWarning |
Additional Inherited Members | |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< MacabCommonStatement > | |
static std::mutex & | theMutex () |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< MacabCommonStatement > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 45 of file MacabStatement.hxx.
|
overrideprotectedvirtual |
Definition at line 71 of file MacabStatement.cxx.
|
explicit |
Definition at line 60 of file MacabStatement.cxx.
References getComponentContext(), m_aMutex, and m_pConnection.
|
overridevirtualnoexcept |
Definition at line 611 of file MacabStatement.cxx.
|
protected |
css::sdbc::SQLException |
Definition at line 229 of file MacabStatement.cxx.
References connectivity::macab::MacabComplexOrder::addOrder(), analyseOrderByClause(), connectivity::OSQLParseNode::count(), connectivity::DESC, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseNode::getTokenValue(), i, connectivity::macab::impl_throwError(), m_pHeader, n, SQL_ISRULE, and SQL_ISTOKEN.
Referenced by analyseOrderByClause(), and sortRecords().
|
protected |
css::sdbc::SQLException |
Definition at line 84 of file MacabStatement.cxx.
References analyseWhereClause(), connectivity::OSQLParseNode::count(), connectivity::Equal, connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getColumnRange(), connectivity::OSQLParseNode::getTokenValue(), connectivity::OSQLParseNode::isToken(), m_aSQLIterator, connectivity::NotEqual, SQL_ISPUNCTUATION, and SQL_ISRULE.
Referenced by analyseWhereClause(), and selectRecords().
|
overridevirtual |
Definition at line 366 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
|
overridevirtual |
Definition at line 478 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), m_aLastWarning, cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
|
overridevirtual |
Definition at line 374 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), dispose(), cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
Referenced by connectivity::macab::MacabPreparedStatement::close().
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 562 of file MacabStatement.cxx.
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< MacabCommonStatement >.
Definition at line 486 of file MacabStatement.cxx.
References cppu::UnoType< typename T >::get(), dbtools::OPropertyMap::getNameByIndex(), connectivity::OMetaConnection::getPropMap(), 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 PROPERTY_ID_USEBOOKMARKS.
|
overridevirtual |
Definition at line 384 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), executeQuery(), cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
|
overridevirtual |
Definition at line 395 of file MacabStatement.cxx.
References Any, cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), connectivity::macab::MacabConnection::getAddressBook(), connectivity::macab::MacabRecords::getHeader(), connectivity::macab::MacabAddressBook::getMacabRecords(), connectivity::OSQLParseTreeIterator::getStatementType(), getTableName(), connectivity::macab::impl_throwError(), cppu::BaseMutex::m_aMutex, m_aParser, m_aSQLIterator, m_pConnection, m_pHeader, m_pParseTree, m_xResultSet, connectivity::OSQLParser::parseTree(), cppu::OPropertySetHelper::rBHelper, connectivity::Select, selectRecords(), setMacabFields(), connectivity::OSQLParseTreeIterator::setParseTree(), sortRecords(), and connectivity::OSQLParseTreeIterator::traverseAll().
Referenced by connectivity::macab::MacabPreparedStatement::execute(), execute(), and connectivity::macab::MacabPreparedStatement::executeQuery().
|
overridevirtual |
Definition at line 461 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
|
overridevirtual |
Definition at line 452 of file MacabStatement.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, m_pConnection, and cppu::OPropertySetHelper::rBHelper.
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 592 of file MacabStatement.cxx.
References nHandle, 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 PROPERTY_ID_USEBOOKMARKS.
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 557 of file MacabStatement.cxx.
References comphelper::OPropertyArrayUsageHelper< MacabCommonStatement >::getArrayHelper().
Referenced by getPropertySetInfo().
|
protectedvirtual |
css::sdbc::SQLException |
Definition at line 79 of file MacabStatement.cxx.
References connectivity::macab::impl_throwError().
|
inline |
Definition at line 149 of file MacabStatement.hxx.
References m_pConnection.
|
overridevirtual |
Definition at line 621 of file MacabStatement.cxx.
References getInfoHelper().
|
protected |
Definition at line 275 of file MacabStatement.cxx.
References connectivity::OSQLParseTreeIterator::getTables(), connectivity::OSQLParseTreeIterator::hasErrors(), and m_aSQLIterator.
Referenced by executeQuery().
Definition at line 357 of file MacabStatement.cxx.
References aTypes, and comphelper::concatSequences().
|
overridevirtual |
Definition at line 470 of file MacabStatement.cxx.
References Any, cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, connectivity::checkDisposed(), m_aLastWarning, cppu::BaseMutex::m_aMutex, and cppu::OPropertySetHelper::rBHelper.
|
overridevirtual |
Reimplemented from cppu::OPropertySetHelper.
Definition at line 349 of file MacabStatement.cxx.
References Any, and comphelper::OPropertySetHelper::queryInterface().
|
overridevirtualnoexcept |
Definition at line 616 of file MacabStatement.cxx.
|
protectedvirtual |
css::sdbc::SQLException |
Definition at line 75 of file MacabStatement.cxx.
Referenced by selectRecords().
|
protected |
css::sdbc::SQLException |
Definition at line 307 of file MacabStatement.cxx.
References connectivity::macab::MacabResultSet::allMacabRecords(), analyseWhereClause(), connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getWhereTree(), connectivity::macab::MacabCondition::isAlwaysTrue(), m_aSQLIterator, resetParameters(), connectivity::macab::MacabResultSet::someMacabRecords(), and SQL_ISRULE.
Referenced by executeQuery().
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 572 of file MacabStatement.cxx.
References nHandle, 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 PROPERTY_ID_USEBOOKMARKS.
Referenced by connectivity::macab::MacabPreparedStatement::setFastPropertyValue_NoBroadcast().
|
protected |
css::sdbc::SQLException |
Definition at line 289 of file MacabStatement.cxx.
References connectivity::macab::MacabResultSet::getMetaData(), connectivity::SharedResources::getResourceString(), connectivity::OSQLParseTreeIterator::getSelectColumns(), m_aSQLIterator, and dbtools::throwGenericSQLException().
Referenced by executeQuery().
|
protected |
css::sdbc::SQLException |
Definition at line 332 of file MacabStatement.cxx.
References analyseOrderByClause(), connectivity::OSQLParseNode::getChild(), connectivity::OSQLParseTreeIterator::getOrderTree(), m_aSQLIterator, connectivity::macab::MacabResultSet::sortMacabRecords(), and SQL_ISRULE.
Referenced by executeQuery().
|
private |
Definition at line 51 of file MacabStatement.hxx.
Referenced by clearWarnings(), and getWarnings().
|
protected |
Definition at line 54 of file MacabStatement.hxx.
Referenced by executeQuery().
|
protected |
Definition at line 55 of file MacabStatement.hxx.
Referenced by analyseWhereClause(), executeQuery(), getTableName(), selectRecords(), setMacabFields(), and sortRecords().
|
protected |
Definition at line 57 of file MacabStatement.hxx.
Referenced by executeQuery(), getConnection(), getOwnConnection(), and MacabCommonStatement().
|
protected |
Definition at line 58 of file MacabStatement.hxx.
Referenced by analyseOrderByClause(), and executeQuery().
|
protected |
Definition at line 56 of file MacabStatement.hxx.
Referenced by executeQuery().
|
protected |
Definition at line 59 of file MacabStatement.hxx.
Referenced by executeQuery().