LibreOffice Module connectivity (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dbtools::param::ParameterWrapper Class Referencefinal

wraps a parameter column as got from an SQLQueryComposer, so that it has an additional property "Value", which is forwarded to an XParameters interface More...

#include <paramwrapper.hxx>

Inheritance diagram for dbtools::param::ParameterWrapper:
[legend]
Collaboration diagram for dbtools::param::ParameterWrapper:
[legend]

Public Member Functions

const ::connectivity::ORowSetValueValue () const
 
::connectivity::ORowSetValueValue ()
 
 ParameterWrapper (const css::uno::Reference< css::beans::XPropertySet > &_rxColumn)
 
 ParameterWrapper (const css::uno::Reference< css::beans::XPropertySet > &_rxColumn, const css::uno::Reference< css::sdbc::XParameters > &_rxAllParameters, std::vector< sal_Int32 > &&_rIndexes)
 
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
 
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
 
void dispose ()
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 
- Public Member Functions inherited from comphelper::OMutexAndBroadcastHelper
 OMutexAndBroadcastHelper ()
 
::osl::Mutex & GetMutex ()
 
::cppu::OBroadcastHelperGetBroadcastHelper ()
 
const ::cppu::OBroadcastHelperGetBroadcastHelper () 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
 

Private Types

typedef ::cppu::OWeakObject UnoBase
 
typedef ::cppu::OPropertySetHelper PropertyBase
 

Private Member Functions

virtual ~ParameterWrapper () override
 
OUString impl_getPseudoAggregatePropertyName (sal_Int32 _nHandle) const
 

Private Attributes

::connectivity::ORowSetValue m_aValue
 the most recently set value of the parameter More...
 
::std::vector< sal_Int32 > m_aIndexes
 the positions (in our m_xValueDestination) at which the value should be set (0-based!) More...
 
css::uno::Reference< css::beans::XPropertySetm_xDelegator
 the "delegator" column to which standard property requests are forwarded More...
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xDelegatorPSI
 the property set info for our delegator More...
 
css::uno::Reference< css::sdbc::XParameters > m_xValueDestination
 the component taking the value More...
 
::std::unique_ptr< ::cppu::OPropertyArrayHelperm_pInfoHelper
 helper for implementing XPropertySetInfo More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- 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 ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper
::osl::Mutex m_aMutex
 
::cppu::OBroadcastHelper m_aBHelper
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Detailed Description

wraps a parameter column as got from an SQLQueryComposer, so that it has an additional property "Value", which is forwarded to an XParameters interface

Definition at line 52 of file paramwrapper.hxx.

Member Typedef Documentation

◆ PropertyBase

Definition at line 59 of file paramwrapper.hxx.

◆ UnoBase

Definition at line 58 of file paramwrapper.hxx.

Constructor & Destructor Documentation

◆ ParameterWrapper() [1/2]

dbtools::param::ParameterWrapper::ParameterWrapper ( const css::uno::Reference< css::beans::XPropertySet > &  _rxColumn)

◆ ParameterWrapper() [2/2]

dbtools::param::ParameterWrapper::ParameterWrapper ( const css::uno::Reference< css::beans::XPropertySet > &  _rxColumn,
const css::uno::Reference< css::sdbc::XParameters > &  _rxAllParameters,
std::vector< sal_Int32 > &&  _rIndexes 
)

References DECLARE_XINTERFACE.

◆ ~ParameterWrapper()

dbtools::param::ParameterWrapper::~ParameterWrapper ( )
overrideprivatevirtual

Definition at line 94 of file paramwrapper.cxx.

Member Function Documentation

◆ convertFastPropertyValue()

sal_Bool dbtools::param::ParameterWrapper::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ dispose()

void dbtools::param::ParameterWrapper::dispose ( void  )

◆ getFastPropertyValue()

void dbtools::param::ParameterWrapper::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overridevirtual

◆ getImplementationId()

virtual css::uno::Sequence< sal_Int8 > SAL_CALL dbtools::param::ParameterWrapper::getImplementationId ( )
overridevirtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper & dbtools::param::ParameterWrapper::getInfoHelper ( )
overridevirtual

◆ getPropertySetInfo()

Reference< XPropertySetInfo > dbtools::param::ParameterWrapper::getPropertySetInfo ( )
overridevirtual

◆ getTypes()

Sequence< Type > SAL_CALL dbtools::param::ParameterWrapper::getTypes ( )
overridevirtual

Definition at line 116 of file paramwrapper.cxx.

References cppu::UnoType< typename T >::get().

◆ impl_getPseudoAggregatePropertyName()

OUString dbtools::param::ParameterWrapper::impl_getPseudoAggregatePropertyName ( sal_Int32  _nHandle) const
private

Definition at line 131 of file paramwrapper.cxx.

References aProperties, and Property.

Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ setFastPropertyValue_NoBroadcast()

void dbtools::param::ParameterWrapper::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ Value() [1/2]

::connectivity::ORowSetValue & dbtools::param::ParameterWrapper::Value ( )
inline

Definition at line 79 of file paramwrapper.hxx.

◆ Value() [2/2]

const ::connectivity::ORowSetValue & dbtools::param::ParameterWrapper::Value ( ) const
inline

Definition at line 78 of file paramwrapper.hxx.

Member Data Documentation

◆ m_aIndexes

::std::vector< sal_Int32 > dbtools::param::ParameterWrapper::m_aIndexes
private

the positions (in our m_xValueDestination) at which the value should be set (0-based!)

Definition at line 65 of file paramwrapper.hxx.

Referenced by dispose(), and setFastPropertyValue_NoBroadcast().

◆ m_aValue

::connectivity::ORowSetValue dbtools::param::ParameterWrapper::m_aValue
private

the most recently set value of the parameter

Definition at line 63 of file paramwrapper.hxx.

Referenced by convertFastPropertyValue(), dispose(), getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ m_pInfoHelper

::std::unique_ptr< ::cppu::OPropertyArrayHelper > dbtools::param::ParameterWrapper::m_pInfoHelper
private

helper for implementing XPropertySetInfo

Definition at line 74 of file paramwrapper.hxx.

Referenced by getInfoHelper().

◆ m_xDelegator

css::uno::Reference< css::beans::XPropertySet > dbtools::param::ParameterWrapper::m_xDelegator
private

the "delegator" column to which standard property requests are forwarded

Definition at line 68 of file paramwrapper.hxx.

Referenced by dispose(), getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ m_xDelegatorPSI

css::uno::Reference< css::beans::XPropertySetInfo > dbtools::param::ParameterWrapper::m_xDelegatorPSI
private

the property set info for our delegator

Definition at line 70 of file paramwrapper.hxx.

Referenced by dispose(), getInfoHelper(), and setFastPropertyValue_NoBroadcast().

◆ m_xValueDestination

css::uno::Reference< css::sdbc::XParameters > dbtools::param::ParameterWrapper::m_xValueDestination
private

the component taking the value

Definition at line 72 of file paramwrapper.hxx.

Referenced by dispose(), and setFastPropertyValue_NoBroadcast().


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