38 const ::std::vector<OUString>& _rVector,
39 css::uno::Reference<css::sdbc::XConnection> _xConnection,
41 : sdbcx::
OCollection(_rParent, true, _rMutex, _rVector)
58 const Reference<XPropertySet>& descriptor)
60 OUString aSql(
"GRANT USAGE ON * TO ");
61 OUString aQuote =
m_xConnection->getMetaData()->getIdentifierQuoteString();
66 if (!sPassword.isEmpty())
68 aSql +=
" IDENTIFIED BY '" + sPassword +
"'";
71 Reference<XStatement> xStmt =
m_xConnection->createStatement();
74 ::comphelper::disposeComponent(xStmt);
82 OUString aSql(
"DROP USER ");
83 OUString aQuote =
m_xConnection->getMetaData()->getIdentifierQuoteString();
86 Reference<XStatement> xStmt =
m_xConnection->createStatement();
89 ::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