LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
dbaccess::OQuery Class Reference

#include <query.hxx>

Inheritance diagram for dbaccess::OQuery:
[legend]
Collaboration diagram for dbaccess::OQuery:
[legend]

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
 
- Public Member Functions inherited from dbaccess::OContentHelper
 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 ContentPropertiesgetContentProperties () 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 TContentPtrgetImpl () const
 
- Public Member Functions inherited from dbaccess::OQueryDescriptor_Base
 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
 
- Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
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< OColumncreateColumn (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::XPropertySetcreateColumnDescriptor ()=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
 
- Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
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
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 

Protected Types

enum class  AggregateAction {
  NONE ,
  SettingProperties
}
 

Protected Member Functions

virtual ~OQuery () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual void SAL_CALL disposing () override
 
virtual rtl::Reference< OColumncreateColumn (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::IPropertyArrayHelpergetArrayHelper ()
 
- Protected Member Functions inherited from dbaccess::OContentHelper
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
 
- Protected Member Functions inherited from dbaccess::OQueryDescriptor_Base
virtual ~OQueryDescriptor_Base ()
 
void setColumnsOutOfDate (bool _bOutOfDate=true)
 
sal_Int32 getColumnCount () const
 
void clearColumns ()
 
void implAppendColumn (const OUString &_rName, OColumn *_pColumn)
 
virtual rtl::Reference< OColumncreateColumn (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::XPropertySetcreateColumnDescriptor () 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
 
- Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from dbaccess::OCommandBase
 OCommandBase ()
 
- Protected Member Functions inherited from dbaccess::IColumnFactory
 ~IColumnFactory ()
 
- Protected Member Functions inherited from connectivity::sdbcx::IRefreshableColumns
 ~IRefreshableColumns ()
 
- Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const=0
 
- Protected Member Functions inherited from dbaccess::ODataSettings
 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...
 
- Protected Member Functions inherited from comphelper::OPropertyStateContainer
 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)
 
- 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
 
- Protected Member Functions inherited from dbaccess::ODataSettings_Base
 ODataSettings_Base ()
 
 ODataSettings_Base (const ODataSettings_Base &_rSource)=delete
 
 ~ODataSettings_Base ()
 

Protected Attributes

css::uno::Reference< css::beans::XPropertySetm_xCommandDefinition
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xCommandPropInfo
 
::rtl::Reference< OContainerMediatorm_pColumnMediator
 
::dbtools::WarningsContainerm_pWarnings
 
AggregateAction m_eDoingCurrently
 
- Protected Attributes inherited from dbaccess::OContentHelper
::comphelper::OInterfaceContainerHelper3< css::ucb::XContentEventListener > m_aContentListeners
 
PropertyChangeListenerContainer m_aPropertyChangeListeners
 
css::uno::Reference< css::uno::XInterface > m_xParentContainer
 
const css::uno::Reference< css::uno::XComponentContext > m_aContext
 
const ::connectivity::SQLError m_aErrorHelper
 
TContentPtr m_pImpl
 
sal_uInt32 m_nCommandId
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from dbaccess::OQueryDescriptor_Base
std::unique_ptr< OColumnsm_pColumns
 
OUString m_sElementName
 

Private Member Functions

void registerProperties ()
 

Friends

struct TRelease
 
class OAutoActionReset
 

Additional Inherited Members

- Public Attributes inherited from dbaccess::OCommandBase
css::uno::Sequence< css::beans::PropertyValue > m_aLayoutInformation
 
OUString m_sCommand
 
bool m_bEscapeProcessing
 
OUString m_sUpdateTableName
 
OUString m_sUpdateSchemaName
 
OUString m_sUpdateCatalogName
 
- Public Attributes inherited from dbaccess::ODataSettings_Base
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 Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static std::mutextheMutex ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 50 of file query.hxx.

Member Enumeration Documentation

◆ AggregateAction

enum class dbaccess::OQuery::AggregateAction
strongprotected
Enumerator
NONE 
SettingProperties 

Definition at line 66 of file query.hxx.

Constructor & Destructor Documentation

◆ ~OQuery()

dbaccess::OQuery::~OQuery ( )
overrideprotectedvirtual

Definition at line 100 of file query.cxx.

◆ OQuery()

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 
)

Member Function Documentation

◆ createArrayHelper()

cppu::IPropertyArrayHelper * dbaccess::OQuery::createArrayHelper ( ) const
overrideprotectedvirtual

◆ createColumn()

rtl::Reference< OColumn > dbaccess::OQuery::createColumn ( const OUString &  _rName) const
overrideprotectedvirtual

creates an OColumn object which should represent the column with a given name

Reimplemented from dbaccess::OQueryDescriptor_Base.

Definition at line 336 of file query.cxx.

◆ createDataDescriptor()

Reference< XPropertySet > SAL_CALL dbaccess::OQuery::createDataDescriptor ( )
overridevirtual

Definition at line 279 of file query.cxx.

◆ DECLARE_SERVICE_INFO()

dbaccess::OQuery::DECLARE_SERVICE_INFO ( )

◆ determineContentType()

OUString dbaccess::OQuery::determineContentType ( ) const
overrideprotectedvirtual

Implements dbaccess::OContentHelper.

Definition at line 376 of file query.cxx.

◆ disposing() [1/2]

void SAL_CALL dbaccess::OQuery::disposing ( )
overrideprotectedvirtual

◆ disposing() [2/2]

virtual void SAL_CALL dbaccess::OQuery::disposing ( const css::lang::EventObject &  _rSource)
overridevirtual

◆ getArrayHelper()

::cppu::IPropertyArrayHelper * comphelper::OPropertyArrayUsageHelper< class TYPE >::getArrayHelper ( )
protected

Referenced by getInfoHelper(), and propertyChange().

◆ getImplementationId()

css::uno::Sequence< sal_Int8 > dbaccess::OQuery::getImplementationId ( )
overridevirtual

Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.

Definition at line 104 of file query.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & dbaccess::OQuery::getInfoHelper ( )
override

Definition at line 323 of file query.cxx.

References getArrayHelper().

Referenced by getPropertySetInfo(), and setFastPropertyValue_NoBroadcast().

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL dbaccess::OQuery::getPropertySetInfo ( )
overridevirtual

Definition at line 318 of file query.cxx.

References getInfoHelper().

◆ getTypes()

css::uno::Sequence< css::uno::Type > dbaccess::OQuery::getTypes ( )
overridevirtual

◆ propertyChange()

void SAL_CALL dbaccess::OQuery::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual

◆ rebuildColumns()

void dbaccess::OQuery::rebuildColumns ( )
overrideprotectedvirtual

◆ registerProperties()

void dbaccess::OQuery::registerProperties ( )
private

◆ rename()

void SAL_CALL dbaccess::OQuery::rename ( const OUString &  newName)
overridevirtual

Reimplemented from dbaccess::OContentHelper.

Definition at line 341 of file query.cxx.

References cppu::BaseMutex::m_aMutex, m_xCommandDefinition, and newName().

◆ setFastPropertyValue_NoBroadcast()

void dbaccess::OQuery::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ setWarningsContainer()

void dbaccess::OQuery::setWarningsContainer ( ::dbtools::WarningsContainer _pWarnings)
inline

Definition at line 126 of file query.hxx.

References m_pWarnings.

Friends And Related Function Documentation

◆ OAutoActionReset

friend class OAutoActionReset
friend

Definition at line 72 of file query.hxx.

◆ TRelease

friend struct TRelease
friend

Definition at line 56 of file query.hxx.

Member Data Documentation

◆ m_eDoingCurrently

AggregateAction dbaccess::OQuery::m_eDoingCurrently
protected

◆ m_pColumnMediator

::rtl::Reference< OContainerMediator > dbaccess::OQuery::m_pColumnMediator
protected

Definition at line 62 of file query.hxx.

◆ m_pWarnings

::dbtools::WarningsContainer* dbaccess::OQuery::m_pWarnings
protected

Definition at line 63 of file query.hxx.

Referenced by disposing(), and setWarningsContainer().

◆ m_xCommandDefinition

css::uno::Reference< css::beans::XPropertySet > dbaccess::OQuery::m_xCommandDefinition
protected

Definition at line 59 of file query.hxx.

Referenced by disposing(), OQuery(), propertyChange(), rename(), and setFastPropertyValue_NoBroadcast().

◆ m_xCommandPropInfo

css::uno::Reference< css::beans::XPropertySetInfo > dbaccess::OQuery::m_xCommandPropInfo
protected

Definition at line 61 of file query.hxx.

Referenced by OQuery(), and setFastPropertyValue_NoBroadcast().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > dbaccess::OQuery::m_xConnection
protected

Definition at line 60 of file query.hxx.

Referenced by OQuery().


The documentation for this class was generated from the following files: