19#ifndef INCLUDED_CONNECTIVITY_COMMONTOOLS_HXX
20#define INCLUDED_CONNECTIVITY_COMMONTOOLS_HXX
23#include <config_java.h>
29#include <rtl/ustring.hxx>
33#include <com/sun/star/beans/XPropertySet.hpp>
34#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
42namespace jvmaccess {
class VirtualMachine; }
48 inline bool match(
const OUString &rWild,
const OUString &rStr,
const sal_Unicode cEscape)
50 return match(rWild.getStr(), rStr.getStr(), cEscape);
54 typedef css::uno::Reference< css::sdbcx::XColumnsSupplier>
OSQLTable;
56 typedef std::map<OUString,OSQLTable,comphelper::UStringMixLess>
OSQLTables;
60 public std::vector< VectorVal >
65 typedef std::vector< VectorVal >
Vector;
71 ,
std::vector< VectorVal >(rOther)
78 std::vector< VectorVal >::operator=(_rRH);
100 OSQLColumns::const_iterator
find(
const OSQLColumns::const_iterator& first,
101 const OSQLColumns::const_iterator& last,
102 std::u16string_view _rVal,
103 const ::comphelper::UStringMixEqual& _rCase);
108 OSQLColumns::const_iterator
findRealName(
const OSQLColumns::const_iterator& first,
109 const OSQLColumns::const_iterator& last,
110 std::u16string_view _rVal,
111 const ::comphelper::UStringMixEqual& _rCase);
117 OSQLColumns::const_iterator
find( OSQLColumns::const_iterator first,
118 const OSQLColumns::const_iterator& last,
119 const OUString& _rProp,
120 std::u16string_view _rVal,
121 const ::comphelper::UStringMixEqual& _rCase);
133 OOO_DLLPUBLIC_DBTOOLS ::rtl::Reference< jvmaccess::VirtualMachine > getJavaVM(
const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
141 OOO_DLLPUBLIC_DBTOOLS bool existsJavaClassByName( const ::rtl::Reference< jvmaccess::VirtualMachine >& _pJVM,std::u16string_view _sClassName );
145#define DECLARE_SERVICE_INFO() \
146 virtual OUString SAL_CALL getImplementationName( ) override; \
147 virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) override; \
148 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override \
150#define IMPLEMENT_SERVICE_INFO(classname, implasciiname, serviceasciiname) \
151 OUString SAL_CALL classname::getImplementationName( ) \
153 return implasciiname; \
155 css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
157 css::uno::Sequence< OUString > aSupported { serviceasciiname }; \
160 sal_Bool SAL_CALL classname::supportsService( const OUString& rServiceName ) \
162 return cppu::supportsService(this, rServiceName); \
virtual ~ORefVector() override
ORefVector & operator=(const ORefVector &_rRH)
std::vector< VectorVal > Vector
ORefVector(const ORefVector &rOther)
std::map< OUString, OSQLTable, comphelper::UStringMixLess > OSQLTables
ORefVector< css::uno::Reference< css::beans::XPropertySet > > OSQLColumns
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
bool match(const sal_Unicode *pWild, const sal_Unicode *pStr, const sal_Unicode cEscape)
std::vector< css::uno::WeakReferenceHelper > OWeakRefArray
css::uno::Reference< css::sdbcx::XColumnsSupplier > OSQLTable
void checkDisposed(bool _bThrow)
OSQLColumns::const_iterator findRealName(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)