namespace com::sun::star::sdbc { class XParameters; } namespace com::sun::star::sdb { class XSingleSelectQueryAnalyzer; }
namespace dbtools::param
{
//= ParameterWrapper
/** wraps a parameter column as got from an SQLQueryComposer, so that it has an additional property"Value",whichisforwardedtoanXParametersinterface
*/ class OOO_DLLPUBLIC_DBTOOLS ParameterWrapper final : public ::cppu::OWeakObject
,public css::lang::XTypeProvider
,public ::comphelper::OMutexAndBroadcastHelper
,public ::cppu::OPropertySetHelper
{ private: typedef ::cppu::OWeakObject UnoBase; typedef ::cppu::OPropertySetHelper PropertyBase;
private: /// the most recently set value of the parameter
::connectivity::ORowSetValue m_aValue; /// the positions (in our m_xValueDestination) at which the value should be set (0-based!)
::std::vector< sal_Int32 > m_aIndexes;
/// the "delegator" column to which standard property requests are forwarded
css::uno::Reference< css::beans::XPropertySet > m_xDelegator; /// the property set info for our delegator
css::uno::Reference< css::beans::XPropertySetInfo > m_xDelegatorPSI; /// the component taking the value
css::uno::Reference< css::sdbc::XParameters > m_xValueDestination; /// helper for implementing XPropertySetInfo
::std::unique_ptr< ::cppu::OPropertyArrayHelper > m_pInfoHelper;
/// class for the parameter event @see approveParameter class UNLESS_MERGELIBS_MORE(OOO_DLLPUBLIC_DBTOOLS) ParameterWrapperContainer final : public ParameterWrapperContainer_Base
{ private:
Parameters m_aParameters;
virtual ~ParameterWrapperContainer() override;
public: /** creates an empty container
*/
ParameterWrapperContainer();
/** creates a container from a SingleSelectQuerAnalyzer's parameter columns
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.