46using com::sun::star::container::XNameAccess;
50using com::sun::star::uno::Any;
51using com::sun::star::uno::Type;
58Key::Key( const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
60 ConnectionSettings *pSettings,
70 m_schemaName(
std::move( schemaName )),
77 m_xMutex,
m_conn, m_pSettings );
78 pKeyDescriptor->copyValuesFrom(
this );
86 if( !m_keyColumns.is() )
92 m_keyColumns = KeyColumns::create(
93 m_xMutex,
m_conn, m_pSettings, m_schemaName,
94 m_tableName, columnNames, foreignColumnNames );
103 ReflectionBase::getTypes());
110 return css::uno::Sequence<sal_Int8>();
113Any Key::queryInterface(
const Type & reqType )
115 Any ret = ReflectionBase::queryInterface( reqType );
116 if( ! ret.hasValue() )
117 ret = ::cppu::queryInterface(
119 static_cast< css::sdbcx::XColumnsSupplier *
> (
this ) );
124KeyDescriptor::KeyDescriptor( const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
141 pKeyDescriptor->copyValuesFrom(
this );
167 return css::uno::Sequence<sal_Int8>();
173 if( ! ret.hasValue() )
174 ret = ::cppu::queryInterface(
176 static_cast< css::sdbcx::XColumnsSupplier *
> (
this ) );
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
css::uno::Reference< css::container::XNameAccess > m_keyColumns
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &reqType) override
KeyDescriptor(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &connection, ConnectionSettings *pSettings)
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
Key(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
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
rtl::Reference< Connection > m_conn