31using namespace ::
cppu;
34using namespace css::uno;
35using namespace css::beans;
36using namespace css::sdbcx;
37using namespace css::sdbc;
38using namespace css::container;
39using namespace css::lang;
44HViews::HViews(
const Reference< XConnection >& _rxConnection,
::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex,
45 const ::std::vector< OUString> &_rVector )
46 :sdbcx::
OCollection( _rParent, true, _rMutex, _rVector )
48 ,m_xMetaData( _rxConnection->getMetaData() )
62 ::dbtools::EComposeRule::InDataManipulation);
101 OUString aSql(
"DROP VIEW" );
103 Reference<XPropertySet> xProp(xObject,UNO_QUERY);
107 Reference< XStatement > xStmt = xConnection->createStatement( );
108 xStmt->execute(aSql);
109 ::comphelper::disposeComponent(xStmt);
127 OUString aSql =
"CREATE VIEW " +
131 Reference< XStatement > xStmt = xConnection->createStatement( );
134 xStmt->execute(aSql);
135 ::comphelper::disposeComponent(xStmt);
connectivity::sdbcx::OCollection OCollection_TYPE
virtual void impl_refresh() override
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
css::uno::Reference< css::sdbc::XConnection > m_xConnection
virtual void disposing() override
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
virtual 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
void createView(const css::uno::Reference< css::beans::XPropertySet > &descriptor)
void dropByNameImpl(const OUString &elementName)
void appendNew(const OUString &_rsNewTable)
virtual void SAL_CALL dropByName(const OUString &elementName) override
bool isCaseSensitive() const
ObjectType getObject(sal_Int32 _nIndex)
return the object, if not existent it creates it.
::cppu::OWeakObject & m_rParent
css::uno::Reference< css::beans::XPropertySet > ObjectType
Reference< XConnection > m_xConnection
#define PROPERTY_ID_COMMAND