24#include <com/sun/star/container/ElementExistException.hpp>
25#include <com/sun/star/beans/PropertyAttribute.hpp>
59 ,
const Reference< XInterface >& _rxContainer
71 ,
const OUString& _rElementName
72 ,
const Reference< XComponentContext >& _xORB
81 return css::uno::Sequence<sal_Int8>();
86 return ::comphelper::concatSequences(
94 Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
103 css::uno::Sequence< css::beans::Property > aProps;
105 return new ::cppu::OPropertyArrayHelper(aProps);
111 return "com.sun.star.comp.dba.OCommandDefinition";
117 "com.sun.star.sdb.QueryDefinition",
118 "com.sun.star.sdb.CommandDefinition",
119 "com.sun.star.ucb.Content"
128 osl::ClearableGuard< osl::Mutex > aGuard(
m_aMutex);
132 fire(&
nHandle, &aNew, &aOld, 1,
true );
135 fire(&
nHandle, &aNew, &aOld, 1,
false );
137 catch(
const PropertyVetoException&)
139 throw ElementExistException(
newName,*
this);
145extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
147 css::uno::Sequence<css::uno::Any>
const &)
150 context,
nullptr, std::make_shared<dbaccess::OCommandDefinition_Impl>() ));
::cppu::IPropertyArrayHelper * getArrayHelper()
void describeProperties(css::uno::Sequence< css::beans::Property > &_rProps) const
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
mutable::osl::Mutex m_aMutex
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() SAL_OVERRIDE
css::uno::Sequence< css::beans::PropertyValue > m_aLayoutInformation
OUString m_sUpdateSchemaName
OUString m_sUpdateTableName
OUString m_sUpdateCatalogName
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~OCommandDefinition() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual cppu::IPropertyArrayHelper * createArrayHelper() const override
void registerProperties()
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL rename(const OUString &newName) override
OCommandDefinition(const css::uno::Reference< css::uno::XComponentContext > &, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl)
virtual OUString SAL_CALL getImplementationName() override
virtual cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_dba_OCommandDefinition(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
std::shared_ptr< OContentHelper_Impl > TContentPtr
OUString newName(std::u16string_view aNewPrefix, std::u16string_view aOldPrefix, std::u16string_view old_Name)
IMPLEMENT_FORWARD_XINTERFACE2(OStatement, OStatementBase, OStatement_IFACE)
#define PROPERTY_ID_ESCAPE_PROCESSING
#define PROPERTY_ID_UPDATE_CATALOGNAME
#define PROPERTY_ID_UPDATE_SCHEMANAME
#define PROPERTY_ID_COMMAND
#define PROPERTY_ID_UPDATE_TABLENAME
#define PROPERTY_ID_LAYOUTINFORMATION
constexpr OUStringLiteral PROPERTY_COMMAND(u"Command")
constexpr OUStringLiteral PROPERTY_UPDATE_TABLENAME(u"UpdateTableName")
constexpr OUStringLiteral PROPERTY_UPDATE_SCHEMANAME(u"UpdateSchemaName")
constexpr OUStringLiteral PROPERTY_ESCAPE_PROCESSING(u"EscapeProcessing")
constexpr OUStringLiteral PROPERTY_UPDATE_CATALOGNAME(u"UpdateCatalogName")
constexpr OUStringLiteral PROPERTY_LAYOUTINFORMATION(u"LayoutInformation")