22#include <com/sun/star/sdbc/XRow.hpp>
23#include <com/sun/star/sdbc/XResultSet.hpp>
42 ,
const std::shared_ptr<sdbcx::KeyProperties>& _rProps
55 std::vector< OUString> aVector;
58 aVector =
m_aProps->m_aKeyColumnNames;
59 if ( aVector.empty() )
62 OUString aSchema,aTable;
74 Reference< XRow > xRow(xResult,UNO_QUERY);
75 while( xResult->next() )
77 OUString aForeignKeyColumn = xRow->getString(8);
78 if(xRow->getString(12) ==
m_Name)
79 aVector.push_back(aForeignKeyColumn);
84 if ( aVector.empty() )
91 const Reference< XRow > xRow(xResult,UNO_QUERY);
92 while( xResult->next() )
93 aVector.push_back(xRow->getString(4));
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > getMetaData() const override
OTableKeyHelper(OTableHelper *_pTable)
virtual void refreshColumns() override
std::shared_ptr< KeyProperties > m_aProps
virtual void construct() override
std::unique_ptr< OCollection > m_pColumns
mutable::osl::Mutex m_aMutex
#define PROPERTY_ID_CATALOGNAME
#define PROPERTY_ID_SCHEMANAME