47using com::sun::star::container::XNameAccess;
51using com::sun::star::uno::Any;
52using com::sun::star::uno::Type;
59Index::Index( const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
61 ConnectionSettings *pSettings,
71 m_schemaName(
std::move( schemaName )),
78 m_xMutex,
m_conn, m_pSettings );
79 pIndex->copyValuesFrom(
this );
86 if( ! m_indexColumns.is() )
91 m_indexColumns = IndexColumns::create(
92 m_xMutex,
m_conn, m_pSettings, m_schemaName,
93 m_tableName, indexName, columnNames );
95 return m_indexColumns;
102 ReflectionBase::getTypes());
109 return css::uno::Sequence<sal_Int8>();
112Any Index::queryInterface(
const Type & reqType )
114 Any ret = ReflectionBase::queryInterface( reqType );
115 if( ! ret.hasValue() )
116 ret = ::cppu::queryInterface(
118 static_cast< css::sdbcx::XColumnsSupplier *
> (
this ) );
123IndexDescriptor::IndexDescriptor(
124 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
129 getStatics().refl.indexDescriptor.serviceNames,
140 pIndex->copyValuesFrom(
this );
171 return css::uno::Sequence<sal_Int8>();
177 if( ! ret.hasValue() )
178 ret = ::cppu::queryInterface(
180 static_cast< css::sdbcx::XColumnsSupplier *
> (
this ) );
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
static css::uno::Reference< css::container::XNameAccess > create(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &origin, ConnectionSettings *pSettings)
IndexDescriptor(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &connection, ConnectionSettings *pSettings)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &reqType) override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
css::uno::Reference< css::container::XNameAccess > m_indexColumns
Index(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &connection, ConnectionSettings *pSettings, OUString schemaName, OUString tableName)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &reqType) override
css::uno::Reference< css::sdbc::XConnection > m_conn
::rtl::Reference< comphelper::RefCountedMutex > m_xMutex
ConnectionSettings * m_pSettings
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
class SAL_NO_VTABLE XPropertySet
OUString extractStringProperty(const Reference< XPropertySet > &descriptor, const OUString &name)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
rtl::Reference< Connection > m_conn