18 const css::uno::Reference<css::sdbc::XConnection>& _rxConnection,
::cppu::OWeakObject& _rParent,
19 ::osl::Mutex& _rMutex, const ::std::vector<OUString>& _rVector)
20 : sdbcx::
OCollection(_rParent, true, _rMutex, _rVector)
22 , m_xMetaData(_rxConnection->getMetaData())
31 ::dbtools::EComposeRule::InDataManipulation);
47 const OUString& _rForName,
const css::uno::Reference<css::beans::XPropertySet>& descriptor)
50 return createObject(_rForName);
59 css::uno::Reference<XInterface> xObject(getObject(
_nPos));
63 OUString aSql(
"DROP VIEW");
65 css::uno::Reference<css::beans::XPropertySet> xProp(xObject, css::uno::UNO_QUERY);
67 ::dbtools::EComposeRule::InTableDefinitions,
true);
69 css::uno::Reference<css::sdbc::XConnection> xConnection = m_xMetaData->getConnection();
70 css::uno::Reference<css::sdbc::XStatement> xStmt = xConnection->createStatement();
72 ::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 dropByNameImpl(const OUString &elementName)
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 void impl_refresh() 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
void createView(const css::uno::Reference< css::beans::XPropertySet > &descriptor)
virtual connectivity::sdbcx::ObjectType createObject(const OUString &_rName) override
virtual void dropObject(sal_Int32 _nPos, const OUString &_sElementName) override
virtual void SAL_CALL dropByName(const OUString &elementName) 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