LibreOffice Module dbaccess (master) 1
|
#include <query.hxx>
Classes | |
class | OAutoActionReset |
Public Member Functions | |
OQuery (const css::uno::Reference< css::beans::XPropertySet > &_rxCommandDefinition, const css::uno::Reference< css::sdbc::XConnection > &_rxConn, const css::uno::Reference< css::uno::XComponentContext > &_xORB) | |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
DECLARE_SERVICE_INFO () | |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | createDataDescriptor () override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &_rSource) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
void | setWarningsContainer (::dbtools::WarningsContainer *_pWarnings) |
virtual void SAL_CALL | rename (const OUString &newName) override |
![]() | |
OContentHelper (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, TContentPtr _pImpl) | |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | getIdentifier () override |
virtual OUString SAL_CALL | getContentType () override |
virtual void SAL_CALL | addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual void SAL_CALL | removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual sal_Int32 SAL_CALL | createCommandIdentifier () override |
virtual css::uno::Any SAL_CALL | execute (const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override |
virtual void SAL_CALL | abort (sal_Int32 CommandId) override |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
virtual void SAL_CALL | rename (const OUString &newName) override |
const ContentProperties & | getContentProperties () const |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties) |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
const TContentPtr & | getImpl () const |
![]() | |
OQueryDescriptor_Base (::osl::Mutex &_rMutex,::cppu::OWeakObject &_rMySelf) | |
OQueryDescriptor_Base (const OQueryDescriptor_Base &_rSource,::cppu::OWeakObject &_rMySelf) | |
constructs the object with a UNO QueryDescriptor. More... | |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getColumns () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
![]() | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
virtual rtl::Reference< OColumn > | createColumn (const OUString &_rName) const =0 |
creates an OColumn object which should represent the column with a given name More... | |
virtual css::uno::Reference< css::beans::XPropertySet > | createColumnDescriptor ()=0 |
creates a column descriptor object. More... | |
virtual void | columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor)=0 |
notifies that a column, created from a column descriptor, has been appended More... | |
virtual void | columnDropped (const OUString &_sName)=0 |
notifies that a column with a given name has been dropped More... | |
virtual void | refreshColumns ()=0 |
![]() | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
![]() | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
![]() | |
virtual | ~OPropertyContainer () |
Protected Types | |
enum class | AggregateAction { NONE , SettingProperties } |
Protected Member Functions | |
virtual | ~OQuery () override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual void SAL_CALL | disposing () override |
virtual rtl::Reference< OColumn > | createColumn (const OUString &_rName) const override |
creates an OColumn object which should represent the column with a given name More... | |
virtual void | rebuildColumns () override |
rebuild our columns set More... | |
virtual OUString | determineContentType () const override |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
![]() | |
virtual void SAL_CALL | disposing () override |
void | notifyDataSourceModified () |
void | notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const |
This method can be used to propagate changes of property values. More... | |
OUString | impl_getHierarchicalName (bool _includingRootContainer) const |
virtual OUString | determineContentType () const =0 |
![]() | |
virtual | ~OQueryDescriptor_Base () |
void | setColumnsOutOfDate (bool _bOutOfDate=true) |
sal_Int32 | getColumnCount () const |
void | clearColumns () |
void | implAppendColumn (const OUString &_rName, OColumn *_pColumn) |
virtual rtl::Reference< OColumn > | createColumn (const OUString &_rName) const override |
creates an OColumn object which should represent the column with a given name More... | |
virtual css::uno::Reference< css::beans::XPropertySet > | createColumnDescriptor () override |
creates a column descriptor object. More... | |
virtual void | columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor) override |
notifies that a column, created from a column descriptor, has been appended More... | |
virtual void | columnDropped (const OUString &_sName) override |
notifies that a column with a given name has been dropped More... | |
virtual void | rebuildColumns () |
rebuild our columns set More... | |
void | disposeColumns () |
virtual void | refreshColumns () override |
![]() | |
~ImplHelper2 () SAL_NOEXCEPT | |
![]() | |
OCommandBase () | |
![]() | |
~IColumnFactory () | |
![]() | |
~IRefreshableColumns () | |
![]() | |
~ImplHelper3 () SAL_NOEXCEPT | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const=0 |
![]() | |
ODataSettings (::cppu::OBroadcastHelper &_rBHelper, bool _bQuery=false) | |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override |
void | registerPropertiesFor (ODataSettings_Base *_pItem) |
register the properties from the param given. More... | |
![]() | |
OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 _nHandle) const |
void | setPropertyToDefaultByHandle (sal_Int32 _nHandle) |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const=0 |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
sal_Int32 | getHandleForName (const OUString &_rPropertyName) |
![]() | |
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 |
![]() | |
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 |
![]() | |
ODataSettings_Base () | |
ODataSettings_Base (const ODataSettings_Base &_rSource)=delete | |
~ODataSettings_Base () | |
Private Member Functions | |
void | registerProperties () |
Friends | |
struct | TRelease |
class | OAutoActionReset |
Additional Inherited Members | |
![]() | |
css::uno::Sequence< css::beans::PropertyValue > | m_aLayoutInformation |
OUString | m_sCommand |
bool | m_bEscapeProcessing |
OUString | m_sUpdateTableName |
OUString | m_sUpdateSchemaName |
OUString | m_sUpdateCatalogName |
![]() | |
OUString | m_sFilter |
OUString | m_sHavingClause |
OUString | m_sGroupBy |
OUString | m_sOrder |
bool | m_bApplyFilter |
bool | m_bAutoGrow |
css::awt::FontDescriptor | m_aFont |
css::uno::Any | m_aRowHeight |
css::uno::Any | m_aTextColor |
css::uno::Any | m_aTextLineColor |
sal_Int16 | m_nFontEmphasis |
sal_Int16 | m_nFontRelief |
![]() | |
static std::mutex & | theMutex () |
![]() | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
![]() | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
|
strongprotected |
dbaccess::OQuery::OQuery | ( | const css::uno::Reference< css::beans::XPropertySet > & | _rxCommandDefinition, |
const css::uno::Reference< css::sdbc::XConnection > & | _rxConn, | ||
const css::uno::Reference< css::uno::XComponentContext > & | _xORB | ||
) |
Definition at line 65 of file query.cxx.
References Exception, m_aMutex, m_refCount, m_xCommandDefinition, m_xCommandPropInfo, m_xConnection, make_shared(), NONE, registerProperties(), dbaccess::ODataSettings::registerPropertiesFor(), and TOOLS_WARN_EXCEPTION.
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< class TYPE >.
Definition at line 328 of file query.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
overrideprotectedvirtual |
creates an OColumn object which should represent the column with a given name
Reimplemented from dbaccess::OQueryDescriptor_Base.
|
overridevirtual |
dbaccess::OQuery::DECLARE_SERVICE_INFO | ( | ) |
|
overrideprotectedvirtual |
Implements dbaccess::OContentHelper.
|
overrideprotectedvirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 285 of file query.cxx.
References dbaccess::OQueryDescriptor_Base::disposeColumns(), cppu::BaseMutex::m_aMutex, m_pWarnings, and m_xCommandDefinition.
|
overridevirtual |
|
protected |
Referenced by getInfoHelper(), and propertyChange().
|
overridevirtual |
Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.
|
override |
Definition at line 323 of file query.cxx.
References getArrayHelper().
Referenced by getPropertySetInfo(), and setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 318 of file query.cxx.
References getInfoHelper().
|
overridevirtual |
Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.
Definition at line 109 of file query.cxx.
References cppu::ImplHelper2< class Ifc1, class Ifc2 >::getTypes().
|
overridevirtual |
Definition at line 235 of file query.cxx.
References getArrayHelper(), cppu::IPropertyArrayHelper::getPropertyByName(), cppu::BaseMutex::m_aMutex, m_eDoingCurrently, m_xCommandDefinition, Property, comphelper::OPropertyContainer::setFastPropertyValue_NoBroadcast(), and SettingProperties.
|
overrideprotectedvirtual |
rebuild our columns set
clearColumns has already been called before, do NOT call it, again
Reimplemented from dbaccess::OQueryDescriptor_Base.
Definition at line 120 of file query.cxx.
References aColNames, connectivity::parse::OParseColumn::createColumnsForResultSet(), dbaccess::OPrivateColumns::createWithIntrinsicNames(), DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, m_aMutex, m_xConnection, PROPERTY_LABEL(), SERVICE_NAME_SINGLESELECTQUERYCOMPOSER, and xFactory.
|
private |
Definition at line 350 of file query.cxx.
References dbaccess::OCommandBase::m_aLayoutInformation, dbaccess::OCommandBase::m_bEscapeProcessing, dbaccess::OCommandBase::m_sCommand, dbaccess::OQueryDescriptor_Base::m_sElementName, dbaccess::OCommandBase::m_sUpdateCatalogName, dbaccess::OCommandBase::m_sUpdateSchemaName, dbaccess::OCommandBase::m_sUpdateTableName, PROPERTY_COMMAND(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_ID_COMMAND, PROPERTY_ID_ESCAPE_PROCESSING, PROPERTY_ID_LAYOUTINFORMATION, PROPERTY_ID_NAME, PROPERTY_ID_UPDATE_CATALOGNAME, PROPERTY_ID_UPDATE_SCHEMANAME, PROPERTY_ID_UPDATE_TABLENAME, PROPERTY_LAYOUTINFORMATION(), PROPERTY_NAME(), PROPERTY_UPDATE_CATALOGNAME(), PROPERTY_UPDATE_SCHEMANAME(), PROPERTY_UPDATE_TABLENAME(), and comphelper::OPropertyContainerHelper::registerProperty().
Referenced by OQuery().
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 341 of file query.cxx.
References cppu::BaseMutex::m_aMutex, m_xCommandDefinition, and newName().
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 298 of file query.cxx.
References getInfoHelper(), m_eDoingCurrently, m_xCommandDefinition, m_xCommandPropInfo, PROPERTY_ID_COMMAND, dbaccess::OQueryDescriptor_Base::setColumnsOutOfDate(), comphelper::OPropertyContainer::setFastPropertyValue_NoBroadcast(), and SettingProperties.
|
inline |
Definition at line 126 of file query.hxx.
References m_pWarnings.
|
friend |
|
protected |
Definition at line 67 of file query.hxx.
Referenced by propertyChange(), setFastPropertyValue_NoBroadcast(), and dbaccess::OQuery::OAutoActionReset::~OAutoActionReset().
|
protected |
|
protected |
Definition at line 63 of file query.hxx.
Referenced by disposing(), and setWarningsContainer().
|
protected |
Definition at line 59 of file query.hxx.
Referenced by disposing(), OQuery(), propertyChange(), rename(), and setFastPropertyValue_NoBroadcast().
|
protected |
Definition at line 61 of file query.hxx.
Referenced by OQuery(), and setFastPropertyValue_NoBroadcast().
|
protected |