13#include <com/sun/star/sdbc/XRow.hpp>
17View::View(
const css::uno::Reference<css::sdbc::XConnection>& _rxConnection,
bool _bCaseSensitive,
18 const OUString& _rSchemaName,
const OUString& _rName)
19 :
View_Base(_bCaseSensitive, _rName, _rxConnection->getMetaData(), OUString(), _rSchemaName,
32 if (!aReturn.hasValue())
44 return css::uno::Sequence<sal_Int8>();
49 OUString
aCommand =
"ALTER VIEW \"" +
m_Name +
"\" AS " + _rNewCommand;
68 OUString
aCommand(
"SELECT RDB$VIEW_SOURCE FROM RDB$RELATIONS WHERE RDB$RELATION_NAME = '"
70 css::uno::Reference<css::sdbc::XStatement> statement =
m_xConnection->createStatement();
71 css::uno::Reference<css::sdbc::XResultSet> xResult = statement->executeQuery(
aCommand);
73 css::uno::Reference<css::sdbc::XRow> xRow(xResult, css::uno::UNO_QUERY_THROW);
81 return xRow->getString(1);
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
View(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, bool _bCaseSensitive, const OUString &_rSchemaName, const OUString &_rName)
virtual void SAL_CALL alterCommand(const OUString &NewCommand) override
css::uno::Reference< css::sdbc::XConnection > m_xConnection
OUString impl_getCommand() const
retrieves the current command of the View
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL acquire() noexcept override
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) SAL_OVERRIDE
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
Reference< XConnection > m_xConnection
#define PROPERTY_ID_COMMAND