LibreOffice Module connectivity (master) 1
|
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>
Public Member Functions | |
const ::connectivity::ORowSetValue & | Value () const |
::connectivity::ORowSetValue & | Value () |
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::OBroadcastHelper & | GetBroadcastHelper () |
const ::cppu::OBroadcastHelper & | GetBroadcastHelper () 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::XPropertySet > | m_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::OPropertyArrayHelper > | m_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 | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
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.
Definition at line 59 of file paramwrapper.hxx.
|
private |
Definition at line 58 of file paramwrapper.hxx.
dbtools::param::ParameterWrapper::ParameterWrapper | ( | const css::uno::Reference< css::beans::XPropertySet > & | _rxColumn | ) |
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.
|
overrideprivatevirtual |
Definition at line 94 of file paramwrapper.cxx.
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 180 of file paramwrapper.cxx.
References m_aValue, connectivity::ORowSetValue::makeAny(), nHandle, and PROPERTY_ID_VALUE.
void dbtools::param::ParameterWrapper::dispose | ( | void | ) |
Definition at line 247 of file paramwrapper.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, comphelper::OMutexAndBroadcastHelper::m_aBHelper, m_aIndexes, comphelper::OMutexAndBroadcastHelper::m_aMutex, m_aValue, m_xDelegator, m_xDelegatorPSI, m_xValueDestination, and connectivity::ORowSetValue::setNull().
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 233 of file paramwrapper.cxx.
References aName, impl_getPseudoAggregatePropertyName(), m_aValue, m_xDelegator, connectivity::ORowSetValue::makeAny(), nHandle, and PROPERTY_ID_VALUE.
|
overridevirtual |
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 152 of file paramwrapper.cxx.
References aProperties, DBG_UNHANDLED_EXCEPTION, Exception, m_pInfoHelper, m_xDelegatorPSI, nProperties, Property, and PROPERTY_ID_VALUE.
Referenced by getPropertySetInfo().
|
overridevirtual |
Definition at line 146 of file paramwrapper.cxx.
References cppu::OPropertySetHelper::createPropertySetInfo(), and getInfoHelper().
|
overridevirtual |
Definition at line 116 of file paramwrapper.cxx.
References cppu::UnoType< typename T >::get().
|
private |
Definition at line 131 of file paramwrapper.cxx.
References aProperties, and Property.
Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 191 of file paramwrapper.cxx.
References aName, impl_getPseudoAggregatePropertyName(), m_aIndexes, m_aValue, m_xDelegator, m_xDelegatorPSI, m_xValueDestination, nHandle, and PROPERTY_ID_VALUE.
|
inline |
Definition at line 79 of file paramwrapper.hxx.
|
inline |
Definition at line 78 of file paramwrapper.hxx.
|
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().
|
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().
|
private |
helper for implementing XPropertySetInfo
Definition at line 74 of file paramwrapper.hxx.
Referenced by getInfoHelper().
|
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().
|
private |
the property set info for our delegator
Definition at line 70 of file paramwrapper.hxx.
Referenced by dispose(), getInfoHelper(), and setFastPropertyValue_NoBroadcast().
|
private |
the component taking the value
Definition at line 72 of file paramwrapper.hxx.
Referenced by dispose(), and setFastPropertyValue_NoBroadcast().