39 uno::Reference< sdbc::XConnection > xConnection;
46 return "org.openoffice.comp.helper.ParameterSubstitution";
56 return {
"com.sun.star.sdb.ParameterSubstitution" };
62 OUString sRet = _sText;
63 uno::Reference< sdbc::XConnection > xConnection =
m_xConnection;
64 if ( xConnection.is() )
69 OUString sErrorMessage;
70 std::unique_ptr<OSQLParseNode> pNode = aParser.
parseTree(sErrorMessage,_sText);
75 pNode->parseNodeToStr( sNewSql, xConnection );
93 throw container::NoSuchElementException();
99extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
101 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const&)
Reference< XComponentContext > m_xContext
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * connectivity_dbtools_ParameterSubstitution_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
TValueType getUnpackedValueOrDefault(const OUString &sKey, const TValueType &aDefault) const
static void substituteParameterNames(OSQLParseNode const *_pNode)
std::unique_ptr< OSQLParseNode > parseTree(OUString &rErrorMessage, const OUString &rStatement, bool bInternational=false)
css::uno::WeakReference< css::sdbc::XConnection > m_xConnection
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL reSubstituteVariables(const OUString &aText) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual OUString SAL_CALL substituteVariables(const OUString &aText, sal_Bool bSubstRequired) override
ParameterSubstitution(const ParameterSubstitution &)=delete
virtual OUString SAL_CALL getSubstituteVariableValue(const OUString &variable) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
Reference< XComponentContext > _xContext