21#include <com/sun/star/beans/PropertyAttribute.hpp>
22#include <com/sun/star/sdbc/KeyRule.hpp>
39OUString SAL_CALL OKey::getImplementationName( )
42 return "com.sun.star.sdbcx.VKeyDescriptor";
43 return "com.sun.star.sdbcx.VKey";
46css::uno::Sequence< OUString > SAL_CALL OKey::getSupportedServiceNames( )
48 return {
isNew()?OUString(
"com.sun.star.sdbcx.KeyDescriptor"):OUString(
"com.sun.star.sdbcx.Key") };
51sal_Bool SAL_CALL OKey::supportsService(
const OUString& _rServiceName )
62OKey::OKey(
const OUString& Name,std::shared_ptr<KeyProperties> _xProps,
bool _bCase)
91 Any aRet = ODescriptor::queryInterface( rType);
97 aRet = ODescriptor_BASE::queryInterface( rType);
115 sal_Int32 nAttrib =
isNew() ? 0 : PropertyAttribute::READONLY;
132 ODescriptor_BASE::disposing();
155 catch(
const RuntimeException& )
179 return ::cppu::OPropertySetHelper::createPropertySetInfo(
getInfoHelper());
194 ODescriptor_BASE::acquire();
199 ODescriptor_BASE::release();
::cppu::IPropertyArrayHelper * getArrayHelper(sal_Int32 nId)
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
void disposing(std::unique_lock< std::mutex > &rGuard)
virtual void refreshColumns()=0
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
::cppu::IPropertyArrayHelper * doCreateArrayHelper() const
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
std::shared_ptr< KeyProperties > m_aProps
virtual void SAL_CALL setName(const OUString &aName) override
virtual void construct() override
virtual void SAL_CALL disposing() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual OUString SAL_CALL getName() override
std::unique_ptr< OCollection > m_pColumns
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
mutable::osl::Mutex m_aMutex
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
cppu::WeakComponentImplHelper< css::sdbcx::XColumnsSupplier, css::container::XNamed, css::lang::XServiceInfo > ODescriptor_BASE
void checkDisposed(bool _bThrow)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
std::shared_ptr< T > make_shared(Args &&... args)
#define PROPERTY_ID_REFERENCEDTABLE
#define PROPERTY_ID_DELETERULE
#define PROPERTY_ID_UPDATERULE
uno::Sequence< beans::Property > m_aProps