38 ::osl::Mutex& _rMutex,
39 const ::std::vector< OUString> &_rVector,
40 css::uno::Reference< css::sdbc::XConnection > _xConnection,
42 : sdbcx::
OCollection(_rParent, true, _rMutex, _rVector)
67 OUString aQuote =
m_xConnection->getMetaData()->getIdentifierQuoteString( );
70 OUString aSql =
"GRANT USAGE ON * TO " +
72 if ( !sPassword.isEmpty() )
74 aSql +=
" IDENTIFIED BY '" + sPassword +
"'";
77 Reference< XStatement > xStmt =
m_xConnection->createStatement( );
80 ::comphelper::disposeComponent(xStmt);
88 OUString aSql(
"REVOKE ALL ON * FROM " );
89 OUString aQuote =
m_xConnection->getMetaData()->getIdentifierQuoteString( );
92 Reference< XStatement > xStmt =
m_xConnection->createStatement( );
95 ::comphelper::disposeComponent(xStmt);
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
connectivity::sdbcx::IRefreshableUsers * m_pParent
virtual sdbcx::ObjectType appendObject(const OUString &_rForName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
appends an object described by a descriptor, under a given name
css::uno::Reference< css::sdbc::XConnection > m_xConnection
virtual void dropObject(sal_Int32 _nPos, const OUString &_sElementName) override
virtual sdbcx::ObjectType createObject(const OUString &_rName) override
virtual void impl_refresh() override
virtual void refreshUsers()=0
css::uno::Reference< css::beans::XPropertySet > ObjectType
Reference< XConnection > m_xConnection
#define PROPERTY_ID_PASSWORD