25#include <osl/diagnose.h>
40 using namespace ::
cppu;
41 using namespace ::
osl;
46 ::osl::Mutex& _rMutex,
47 const std::vector< OUString> &_rVector,
49 ) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector,_bUseAsIndex)
50 ,m_aColumns(
std::move(_xColumns))
57 std::vector< OUString > aNames; aNames.reserve( _rColumns->size() );
60 for (
auto const& column : *_rColumns)
62 Reference< XPropertySet >
xColumn(column, UNO_SET_THROW);
64 aNames.push_back( sColumName );
66 return std::unique_ptr<OPrivateColumns>(
new OPrivateColumns( _rColumns, _bCase, _rParent, _rMutex, aNames,
false ));
89 OSL_FAIL(
"Column not found in collection!");
98 OSQLTables::iterator aIter =
m_aTables.find(_rName);
99 OSL_ENSURE(aIter !=
m_aTables.end(),
"Table not found!");
100 OSL_ENSURE(aIter->second.is(),
"Table is null!");
bool isCaseSensitive() const
OPrivateColumns(::rtl::Reference< ::connectivity::OSQLColumns > _xColumns, bool _bCase, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const std::vector< OUString > &_rVector, bool _bUseAsIndex=false)
virtual connectivity::sdbcx::ObjectType createObject(const OUString &_rName) override
virtual void disposing() override
static std::unique_ptr< OPrivateColumns > createWithIntrinsicNames(const ::rtl::Reference< ::connectivity::OSQLColumns > &_rColumns, bool _bCase, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex)
creates a columns instance as above, but taking the names from the columns itself
::rtl::Reference< ::connectivity::OSQLColumns > m_aColumns
virtual connectivity::sdbcx::ObjectType createObject(const OUString &_rName) override
css::uno::Reference< css::beans::XPropertySet > ObjectType
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
OSQLColumns::const_iterator findRealName(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
constexpr OUStringLiteral PROPERTY_NAME(u"Name")