21#include <com/sun/star/beans/PropertyAttribute.hpp>
33using namespace ::
cppu;
42OUString SAL_CALL OIndex::getImplementationName( )
45 return "com.sun.star.sdbcx.VIndexDescriptor";
46 return "com.sun.star.sdbcx.VIndex";
49css::uno::Sequence< OUString > SAL_CALL OIndex::getSupportedServiceNames( )
51 return { isNew()?OUString(
"com.sun.star.sdbcx.IndexDescriptor"):OUString(
"com.sun.star.sdbcx.Index") };
54sal_Bool SAL_CALL OIndex::supportsService(
const OUString& _rServiceName )
62 ,m_IsPrimaryKeyIndex(false)
70 bool _isPrimaryKeyIndex,
74 ,m_Catalog(
std::move(Catalog))
75 ,m_IsUnique(_isUnique)
76 ,m_IsPrimaryKeyIndex(_isPrimaryKeyIndex)
77 ,m_IsClustered(_isClustered)
98 Any aRet = ODescriptor::queryInterface( rType);
104 aRet = ODescriptor_BASE::queryInterface( rType);
120 sal_Int32 nAttrib =
isNew() ? 0 : PropertyAttribute::READONLY;
172 return ::cppu::OPropertySetHelper::createPropertySetInfo(
getInfoHelper());
187 ODescriptor_BASE::acquire();
192 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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
::cppu::IPropertyArrayHelper * doCreateArrayHelper() const
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL release() noexcept override
virtual ~OIndex() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void refreshColumns() override
std::unique_ptr< OCollection > m_pColumns
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL disposing() override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper(sal_Int32 _nId) const override
virtual void construct() override
virtual void SAL_CALL setName(const OUString &aName) 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
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
#define TOOLS_WARN_EXCEPTION(area, stream)
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)
#define PROPERTY_ID_CATALOG
#define PROPERTY_ID_ISUNIQUE
#define PROPERTY_ID_ISPRIMARYKEYINDEX
#define PROPERTY_ID_ISCLUSTERED