23#include <com/sun/star/sdbc/XRow.hpp>
25#include <com/sun/star/beans/PropertyAttribute.hpp>
44 m_xMetaData = _xConnection->getMetaData();
46 catch(
const Exception&)
48 OSL_FAIL(
"No Metadata available!");
69 OCatalog_BASE::disposing();
83 catch(
const RuntimeException& )
107 catch(
const RuntimeException& )
131 catch(
const RuntimeException& )
155 catch(
const RuntimeException& )
170 OUString
sCatalog = _xRow->getString(1);
171 if ( _xRow->wasNull() )
173 OUString
sSchema = _xRow->getString(2);
174 if ( _xRow->wasNull() )
176 OUString sTable = _xRow->getString(3);
177 if ( _xRow->wasNull() )
190 Reference< XRow > xRow(_xResult,UNO_QUERY);
191 while ( _xResult->next() )
196 ::comphelper::disposeComponent(_xResult);
202 sal_Int32 nAttrib =
isNew() ? 0 : css::beans::PropertyAttribute::READONLY;
OptionalString sComposedName
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
virtual void refreshGroups()=0
virtual void refreshUsers()=0
void fillNames(css::uno::Reference< css::sdbc::XResultSet > &_xResult,::std::vector< OUString > &_rNames)
fills a vector with the necessary names which can be used in combination with the collections.
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
std::unique_ptr< OCollection > m_pTables
std::unique_ptr< OCollection > m_pGroups
virtual void SAL_CALL disposing() override
virtual void refreshTables()=0
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getUsers() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTables() override
std::unique_ptr< OCollection > m_pViews
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getGroups() override
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getViews() override
virtual void refreshViews()=0
std::unique_ptr< OCollection > m_pUsers
virtual OUString buildName(const css::uno::Reference< css::sdbc::XRow > &_xRow)
builds the name which should be used to access the object later on in the collection.
virtual ~ODescriptor() override
::cppu::WeakComponentImplHelper< css::sdbcx::XTablesSupplier, css::sdbcx::XViewsSupplier, css::sdbcx::XUsersSupplier, css::sdbcx::XGroupsSupplier, css::lang::XServiceInfo > OCatalog_BASE
void checkDisposed(bool _bThrow)