30 const ::std::vector<OUString>& _rVector)
31 : sdbcx::
OCollection(_rParent, true, _rMutex, _rVector)
33 , m_xMetaData(_rxConnection->getMetaData())
41 ::dbtools::EComposeRule::InDataManipulation);
57 const OUString& _rForName,
const css::uno::Reference<css::beans::XPropertySet>& descriptor)
60 return createObject(_rForName);
66 css::uno::Reference<XInterface> xObject(getObject(
_nPos));
70 OUString aSql(
"DROP VIEW");
72 css::uno::Reference<css::beans::XPropertySet> xProp(xObject, css::uno::UNO_QUERY);
74 ::dbtools::EComposeRule::InTableDefinitions,
true);
76 css::uno::Reference<css::sdbc::XConnection> xConnection = m_xMetaData->getConnection();
77 css::uno::Reference<css::sdbc::XStatement> xStmt = xConnection->createStatement();
79 ::comphelper::disposeComponent(xStmt);
84 const css::uno::Reference<css::beans::XPropertySet>& descriptor)
86 css::uno::Reference<css::sdbc::XConnection> xConnection = m_xMetaData->getConnection();
92 OUString aSql =
"CREATE VIEW "
94 ::dbtools::EComposeRule::InTableDefinitions,
true)
97 css::uno::Reference<css::sdbc::XStatement> xStmt = xConnection->createStatement();
100 xStmt->execute(aSql);
101 ::comphelper::disposeComponent(xStmt);
108 m_xMetaData, descriptor, ::dbtools::EComposeRule::InDataManipulation,
false);
This implements com.sun.star.sdbcx.Container, which seems to be also known by the name of Tables and ...
void appendNew(const OUString &_rsNewTable)
void createView(const css::uno::Reference< css::beans::XPropertySet > &descriptor)
Views(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector)
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
virtual connectivity::sdbcx::ObjectType createObject(const OUString &_rName) override
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
virtual void dropObject(sal_Int32 _nPos, const OUString &_sElementName) override
virtual void impl_refresh() override
css::uno::Reference< css::beans::XPropertySet > ObjectType
css::uno::Reference< css::beans::XPropertySet > createView(const OUString &_sName, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::beans::XPropertySet > &_xSourceObject)
Reference< XConnection > m_xConnection
#define PROPERTY_ID_COMMAND