LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pq_sdbc_driver::Array Class Reference

#include <pq_array.hxx>

Inheritance diagram for pq_sdbc_driver::Array:
[legend]
Collaboration diagram for pq_sdbc_driver::Array:
[legend]

Public Member Functions

 Array (rtl::Reference< comphelper::RefCountedMutex > mutex, std::vector< css::uno::Any > &&data, css::uno::Reference< css::uno::XInterface > owner, css::uno::Reference< css::script::XTypeConverter > tc)
 
virtual OUString SAL_CALL getBaseTypeName () override
 
virtual sal_Int32 SAL_CALL getBaseType () override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getArray (const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getArrayAtIndex (sal_Int32 index, sal_Int32 count, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet (const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSetAtIndex (sal_Int32 index, sal_Int32 count, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 

Private Member Functions

void checkRange (sal_Int32 index, sal_Int32 count)
 

Private Attributes

std::vector< css::uno::Any > m_data
 
css::uno::Reference< css::uno::XInterface > m_owner
 
css::uno::Reference< css::script::XTypeConverter > m_tc
 
rtl::Reference< comphelper::RefCountedMutexm_xMutex
 

Detailed Description

Definition at line 48 of file pq_array.hxx.

Constructor & Destructor Documentation

◆ Array()

pq_sdbc_driver::Array::Array ( rtl::Reference< comphelper::RefCountedMutex mutex,
std::vector< css::uno::Any > &&  data,
css::uno::Reference< css::uno::XInterface >  owner,
css::uno::Reference< css::script::XTypeConverter >  tc 
)
inline

Definition at line 56 of file pq_array.hxx.

References mutex.

Member Function Documentation

◆ checkRange()

void pq_sdbc_driver::Array::checkRange ( sal_Int32  index,
sal_Int32  count 
)
private

Definition at line 107 of file pq_array.cxx.

References Any, count, index, and m_data.

Referenced by getArrayAtIndex(), and getResultSetAtIndex().

◆ getArray()

css::uno::Sequence< css::uno::Any > pq_sdbc_driver::Array::getArray ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
overridevirtual

Definition at line 65 of file pq_array.cxx.

References comphelper::containerToSequence(), and m_data.

◆ getArrayAtIndex()

css::uno::Sequence< css::uno::Any > pq_sdbc_driver::Array::getArrayAtIndex ( sal_Int32  index,
sal_Int32  count,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Definition at line 71 of file pq_array.cxx.

References checkRange(), count, index, and m_data.

◆ getBaseType()

sal_Int32 pq_sdbc_driver::Array::getBaseType ( )
overridevirtual

Definition at line 60 of file pq_array.cxx.

◆ getBaseTypeName()

OUString pq_sdbc_driver::Array::getBaseTypeName ( )
overridevirtual

Definition at line 55 of file pq_array.cxx.

◆ getResultSet()

css::uno::Reference< css::sdbc::XResultSet > pq_sdbc_driver::Array::getResultSet ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
overridevirtual

Definition at line 80 of file pq_array.cxx.

References getResultSetAtIndex(), and m_data.

◆ getResultSetAtIndex()

css::uno::Reference< css::sdbc::XResultSet > pq_sdbc_driver::Array::getResultSetAtIndex ( sal_Int32  index,
sal_Int32  count,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Definition at line 86 of file pq_array.cxx.

References checkRange(), count, pq_sdbc_driver::getStatics(), i, index, m_data, m_owner, m_tc, and m_xMutex.

Referenced by getResultSet().

Member Data Documentation

◆ m_data

std::vector< css::uno::Any > pq_sdbc_driver::Array::m_data
private

Definition at line 50 of file pq_array.hxx.

Referenced by checkRange(), getArray(), getArrayAtIndex(), getResultSet(), and getResultSetAtIndex().

◆ m_owner

css::uno::Reference< css::uno::XInterface > pq_sdbc_driver::Array::m_owner
private

Definition at line 51 of file pq_array.hxx.

Referenced by getResultSetAtIndex().

◆ m_tc

css::uno::Reference< css::script::XTypeConverter > pq_sdbc_driver::Array::m_tc
private

Definition at line 52 of file pq_array.hxx.

Referenced by getResultSetAtIndex().

◆ m_xMutex

rtl::Reference< comphelper::RefCountedMutex > pq_sdbc_driver::Array::m_xMutex
private

Definition at line 53 of file pq_array.hxx.

Referenced by getResultSetAtIndex().


The documentation for this class was generated from the following files: