43#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
44#include <com/sun/star/sdbc/SQLException.hpp>
45#include <com/sun/star/sdbc/XRow.hpp>
59using com::sun::star::uno::Any;
60using com::sun::star::uno::UNO_QUERY;
64using com::sun::star::sdbc::XRow;
65using com::sun::star::sdbc::XResultSet;
66using com::sun::star::sdbc::XDatabaseMetaData;
67using com::sun::star::sdbc::SQLException;
73 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
74 const css::uno::Reference< css::sdbc::XConnection > & origin,
79 const css::uno::Sequence< OUString > &columns )
80 :
Container( refMutex, origin, pSettings,
"INDEX_COLUMN" ),
81 m_schemaName(
std::move( schemaName )),
83 m_indexName(
std::move( indexName )),
95 if( str == seq[
index] )
105 SAL_INFO(
"connectivity.postgresql",
"sdbcx.IndexColumns get refreshed for index " <<
m_indexName);
107 osl::MutexGuard guard(
m_xMutex->GetMutex() );
133 pIndexColumn->setPropertyValue_NoBroadcast_public(
140 catch ( css::sdbc::SQLException & e )
143 throw css::lang::WrappedTargetRuntimeException( e.Message,
152 const css::uno::Reference< css::beans::XPropertySet >& )
154 throw css::sdbc::SQLException(
155 "SDBC-POSTGRESQL: IndexesColumns.appendByDescriptor not yet implemented",
156 *
this, OUString(), 1,
Any() );
168 throw css::sdbc::SQLException(
169 "SDBC-POSTGRESQL: IndexesColumns.dropByName not yet implemented",
170 *
this, OUString(), 1,
Any() );
190 throw css::sdbc::SQLException(
191 "SDBC-POSTGRESQL: IndexesColumns.dropByIndex not yet implemented",
192 *
this, OUString(), 1,
Any() );
230 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
231 const css::uno::Reference< css::sdbc::XConnection > & origin,
233 const OUString &schemaName,
235 const OUString &indexName,
239 refMutex, origin, pSettings, schemaName,
tableName, indexName, columns );
240 pIndexColumns->refresh();
242 return pIndexColumns;
247 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
248 const css::uno::Reference< css::sdbc::XConnection > & origin,
254 const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
255 const css::uno::Reference< css::sdbc::XConnection > & origin,
ConnectionSettings * m_pSettings
void fire(const EventBroadcastHelper &helper)
css::uno::Reference< css::sdbc::XConnection > m_origin
::rtl::Reference< comphelper::RefCountedMutex > m_xMutex
String2IntMap m_name2index
std::vector< css::uno::Any > m_values
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
IndexColumnDescriptors(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &origin, ConnectionSettings *pSettings)
static css::uno::Reference< css::container::XNameAccess > create(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &origin, ConnectionSettings *pSettings)
virtual void SAL_CALL dropByName(const OUString &elementName) override
IndexColumns(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &origin, ConnectionSettings *pSettings, OUString schemaName, OUString tableName, OUString indexName, const css::uno::Sequence< OUString > &columns)
virtual void SAL_CALL dropByIndex(sal_Int32 index) override
virtual ~IndexColumns() override
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor() override
virtual void SAL_CALL refresh() override
virtual void SAL_CALL appendByDescriptor(const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
css::uno::Sequence< OUString > m_columns
static css::uno::Reference< css::container::XNameAccess > create(const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &origin, ConnectionSettings *pSettings, const OUString &schemaName, const OUString &tableName, const OUString &indexName, const css::uno::Sequence< OUString > &columns)
#define SAL_INFO(area, stream)
class SAL_NO_VTABLE XPropertySet
Any SAL_CALL getCaughtException()
OUString columnMetaData2SDBCX(ReflectionBase *pBase, const css::uno::Reference< css::sdbc::XRow > &xRow)
static sal_Int32 findInSequence(const Sequence< OUString > &seq, std::u16string_view str)