LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pq_sdbc_driver::BaseResultSet Class Referenceabstract

#include <pq_baseresultset.hxx>

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

Public Member Functions

virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &reqType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual sal_Bool SAL_CALL next () override
 
virtual sal_Bool SAL_CALL isBeforeFirst () override
 
virtual sal_Bool SAL_CALL isAfterLast () override
 
virtual sal_Bool SAL_CALL isFirst () override
 
virtual sal_Bool SAL_CALL isLast () override
 
virtual void SAL_CALL beforeFirst () override
 
virtual void SAL_CALL afterLast () override
 
virtual sal_Bool SAL_CALL first () override
 
virtual sal_Bool SAL_CALL last () override
 
virtual sal_Int32 SAL_CALL getRow () override
 
virtual sal_Bool SAL_CALL absolute (sal_Int32 row) override
 
virtual sal_Bool SAL_CALL relative (sal_Int32 rows) override
 
virtual sal_Bool SAL_CALL previous () override
 
virtual void SAL_CALL refreshRow () override
 
virtual sal_Bool SAL_CALL rowUpdated () override
 
virtual sal_Bool SAL_CALL rowInserted () override
 
virtual sal_Bool SAL_CALL rowDeleted () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement () override
 
virtual sal_Bool SAL_CALL wasNull () override
 
virtual OUString SAL_CALL getString (sal_Int32 columnIndex) override
 
virtual sal_Bool SAL_CALL getBoolean (sal_Int32 columnIndex) override
 
virtual sal_Int8 SAL_CALL getByte (sal_Int32 columnIndex) override
 
virtual sal_Int16 SAL_CALL getShort (sal_Int32 columnIndex) override
 
virtual sal_Int32 SAL_CALL getInt (sal_Int32 columnIndex) override
 
virtual sal_Int64 SAL_CALL getLong (sal_Int32 columnIndex) override
 
virtual float SAL_CALL getFloat (sal_Int32 columnIndex) override
 
virtual double SAL_CALL getDouble (sal_Int32 columnIndex) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes (sal_Int32 columnIndex) override
 
virtual css::util::Date SAL_CALL getDate (sal_Int32 columnIndex) override
 
virtual css::util::Time SAL_CALL getTime (sal_Int32 columnIndex) override
 
virtual css::util::DateTime SAL_CALL getTimestamp (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream (sal_Int32 columnIndex) override
 
virtual css::uno::Any SAL_CALL getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray (sal_Int32 columnIndex) override
 
virtual cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from cppu::OPropertySetHelper
 OPropertySetHelper (OBroadcastHelper &rBHelper)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
css::uno::Sequence< css::uno::Type > getTypes ()
 
void SAL_CALL disposing ()
 
virtual void SAL_CALL setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 

Protected Member Functions

virtual void checkClosed ()=0
 mutex should be locked before called More...
 
void checkColumnIndex (sal_Int32 index)
 
void checkRowIndex ()
 
virtual css::uno::Any getValue (sal_Int32 columnIndex)=0
 
css::uno::Any convertTo (const css::uno::Any &str, const css::uno::Type &type)
 
 BaseResultSet (const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, sal_Int32 rowCount, sal_Int32 columnCount, const css::uno::Reference< css::script::XTypeConverter > &tc)
 
virtual ~BaseResultSet () override
 
- Protected Member Functions inherited from cppu::OPropertySetHelper
void SAL_CALL fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable)
 
void SAL_CALL setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
 
virtual IPropertyArrayHelper &SAL_CALL getInfoHelper ()=0
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
void setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value)
 
 ~OPropertySetHelper ()
 

Protected Attributes

css::uno::Any m_props [BASERESULTSET_SIZE]
 
css::uno::Reference< css::uno::XInterface > m_owner
 
css::uno::Reference< css::script::XTypeConverter > m_tc
 
::rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
sal_Int32 m_row
 
sal_Int32 m_rowCount
 
sal_Int32 m_fieldCount
 
bool m_wasNull
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 

Detailed Description

Definition at line 67 of file pq_baseresultset.hxx.

Constructor & Destructor Documentation

◆ BaseResultSet()

pq_sdbc_driver::BaseResultSet::BaseResultSet ( const ::rtl::Reference< comphelper::RefCountedMutex > &  mutex,
const css::uno::Reference< css::uno::XInterface > &  owner,
sal_Int32  rowCount,
sal_Int32  columnCount,
const css::uno::Reference< css::script::XTypeConverter > &  tc 
)
protected

Definition at line 101 of file pq_baseresultset.cxx.

◆ ~BaseResultSet()

pq_sdbc_driver::BaseResultSet::~BaseResultSet ( )
overrideprotectedvirtual

Definition at line 122 of file pq_baseresultset.cxx.

Member Function Documentation

◆ absolute()

sal_Bool pq_sdbc_driver::BaseResultSet::absolute ( sal_Int32  row)
overridevirtual

Definition at line 246 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ acquire()

virtual void SAL_CALL pq_sdbc_driver::BaseResultSet::acquire ( )
inlineoverridevirtualnoexcept

◆ afterLast()

void pq_sdbc_driver::BaseResultSet::afterLast ( )
overridevirtual

Definition at line 212 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ beforeFirst()

void pq_sdbc_driver::BaseResultSet::beforeFirst ( )
overridevirtual

Definition at line 205 of file pq_baseresultset.cxx.

References checkClosed(), m_row, and m_xMutex.

◆ checkClosed()

virtual void pq_sdbc_driver::BaseResultSet::checkClosed ( )
protectedpure virtual

◆ checkColumnIndex()

void pq_sdbc_driver::BaseResultSet::checkColumnIndex ( sal_Int32  index)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 586 of file pq_baseresultset.cxx.

References Any, index, and m_fieldCount.

Referenced by pq_sdbc_driver::UpdateableResultSet::checkUpdate(), getBoolean(), getByte(), getBytes(), getDouble(), getFloat(), getInt(), getLong(), getShort(), and getString().

◆ checkRowIndex()

void pq_sdbc_driver::BaseResultSet::checkRowIndex ( )
protected

Definition at line 600 of file pq_baseresultset.cxx.

References Any, m_row, and m_rowCount.

Referenced by getBoolean(), getByte(), getBytes(), getFloat(), getInt(), getLong(), getShort(), and getString().

◆ convertFastPropertyValue()

sal_Bool pq_sdbc_driver::BaseResultSet::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ convertTo()

Any pq_sdbc_driver::BaseResultSet::convertTo ( const css::uno::Any &  str,
const css::uno::Type &  type 
)
protected

Definition at line 323 of file pq_baseresultset.cxx.

References Any, m_tc, and type.

Referenced by getByte(), getDouble(), getFloat(), getInt(), getLong(), getShort(), and getString().

◆ disposing()

void pq_sdbc_driver::BaseResultSet::disposing ( )
overridevirtual

Definition at line 581 of file pq_baseresultset.cxx.

References close.

◆ first()

sal_Bool pq_sdbc_driver::BaseResultSet::first ( )
overridevirtual

Definition at line 219 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ getArray()

Reference< css::sdbc::XArray > pq_sdbc_driver::BaseResultSet::getArray ( sal_Int32  columnIndex)
overridevirtual

Definition at line 513 of file pq_baseresultset.cxx.

References getString(), m_tc, m_xMutex, and pq_sdbc_driver::parseArray().

◆ getBinaryStream()

Reference< css::io::XInputStream > pq_sdbc_driver::BaseResultSet::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 481 of file pq_baseresultset.cxx.

◆ getBlob()

Reference< css::sdbc::XBlob > pq_sdbc_driver::BaseResultSet::getBlob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 503 of file pq_baseresultset.cxx.

◆ getBoolean()

sal_Bool pq_sdbc_driver::BaseResultSet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

◆ getByte()

sal_Int8 pq_sdbc_driver::BaseResultSet::getByte ( sal_Int32  columnIndex)
overridevirtual

◆ getBytes()

Sequence< sal_Int8 > pq_sdbc_driver::BaseResultSet::getBytes ( sal_Int32  columnIndex)
overridevirtual

◆ getCharacterStream()

Reference< css::io::XInputStream > pq_sdbc_driver::BaseResultSet::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 486 of file pq_baseresultset.cxx.

◆ getClob()

Reference< css::sdbc::XClob > pq_sdbc_driver::BaseResultSet::getClob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 508 of file pq_baseresultset.cxx.

◆ getDate()

css::util::Date pq_sdbc_driver::BaseResultSet::getDate ( sal_Int32  columnIndex)
overridevirtual

Definition at line 465 of file pq_baseresultset.cxx.

References getString(), and dbtools::DBTypeConversion::toDate().

◆ getDouble()

double pq_sdbc_driver::BaseResultSet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Definition at line 429 of file pq_baseresultset.cxx.

References checkClosed(), checkColumnIndex(), convertTo(), d, getValue(), and m_xMutex.

◆ getFastPropertyValue()

void pq_sdbc_driver::BaseResultSet::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overridevirtual

Implements cppu::OPropertySetHelper.

Definition at line 571 of file pq_baseresultset.cxx.

References m_props, and nHandle.

◆ getFloat()

float pq_sdbc_driver::BaseResultSet::getFloat ( sal_Int32  columnIndex)
overridevirtual

◆ getImplementationId()

Sequence< sal_Int8 > pq_sdbc_driver::BaseResultSet::getImplementationId ( )
overridevirtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper & pq_sdbc_driver::BaseResultSet::getInfoHelper ( )
overridevirtual

◆ getInt()

sal_Int32 pq_sdbc_driver::BaseResultSet::getInt ( sal_Int32  columnIndex)
overridevirtual

◆ getLong()

sal_Int64 pq_sdbc_driver::BaseResultSet::getLong ( sal_Int32  columnIndex)
overridevirtual

◆ getObject()

Any pq_sdbc_driver::BaseResultSet::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Definition at line 491 of file pq_baseresultset.cxx.

References Any.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > pq_sdbc_driver::BaseResultSet::getPropertySetInfo ( )
override

◆ getRef()

Reference< css::sdbc::XRef > pq_sdbc_driver::BaseResultSet::getRef ( sal_Int32  columnIndex)
overridevirtual

Definition at line 498 of file pq_baseresultset.cxx.

◆ getRow()

sal_Int32 pq_sdbc_driver::BaseResultSet::getRow ( )
overridevirtual

Definition at line 239 of file pq_baseresultset.cxx.

References checkClosed(), m_row, and m_xMutex.

◆ getShort()

sal_Int16 pq_sdbc_driver::BaseResultSet::getShort ( sal_Int32  columnIndex)
overridevirtual

◆ getStatement()

Reference< XInterface > pq_sdbc_driver::BaseResultSet::getStatement ( )
overridevirtual

Definition at line 308 of file pq_baseresultset.cxx.

References checkClosed(), m_owner, and m_xMutex.

◆ getString()

OUString pq_sdbc_driver::BaseResultSet::getString ( sal_Int32  columnIndex)
overridevirtual

◆ getTime()

css::util::Time pq_sdbc_driver::BaseResultSet::getTime ( sal_Int32  columnIndex)
overridevirtual

Definition at line 470 of file pq_baseresultset.cxx.

References getString(), and dbtools::DBTypeConversion::toTime().

◆ getTimestamp()

css::util::DateTime pq_sdbc_driver::BaseResultSet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Definition at line 475 of file pq_baseresultset.cxx.

References getString(), and dbtools::DBTypeConversion::toDateTime().

◆ getTypes()

Sequence< Type > pq_sdbc_driver::BaseResultSet::getTypes ( )
overridevirtual

◆ getValue()

virtual css::uno::Any pq_sdbc_driver::BaseResultSet::getValue ( sal_Int32  columnIndex)
protectedpure virtual

◆ isAfterLast()

sal_Bool pq_sdbc_driver::BaseResultSet::isAfterLast ( )
overridevirtual

Definition at line 184 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ isBeforeFirst()

sal_Bool pq_sdbc_driver::BaseResultSet::isBeforeFirst ( )
overridevirtual

Definition at line 177 of file pq_baseresultset.cxx.

References checkClosed(), m_row, and m_xMutex.

◆ isFirst()

sal_Bool pq_sdbc_driver::BaseResultSet::isFirst ( )
overridevirtual

Definition at line 191 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ isLast()

sal_Bool pq_sdbc_driver::BaseResultSet::isLast ( )
overridevirtual

Definition at line 198 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ last()

sal_Bool pq_sdbc_driver::BaseResultSet::last ( )
overridevirtual

Definition at line 229 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ next()

sal_Bool pq_sdbc_driver::BaseResultSet::next ( )
overridevirtual

Definition at line 169 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ previous()

sal_Bool pq_sdbc_driver::BaseResultSet::previous ( )
overridevirtual

Definition at line 278 of file pq_baseresultset.cxx.

References checkClosed(), m_row, and m_xMutex.

◆ queryInterface()

Any pq_sdbc_driver::BaseResultSet::queryInterface ( const css::uno::Type &  reqType)
overridevirtual

◆ refreshRow()

void pq_sdbc_driver::BaseResultSet::refreshRow ( )
overridevirtual

Definition at line 288 of file pq_baseresultset.cxx.

◆ relative()

sal_Bool pq_sdbc_driver::BaseResultSet::relative ( sal_Int32  rows)
overridevirtual

Definition at line 265 of file pq_baseresultset.cxx.

References checkClosed(), m_row, m_rowCount, and m_xMutex.

◆ release()

virtual void SAL_CALL pq_sdbc_driver::BaseResultSet::release ( )
inlineoverridevirtualnoexcept

◆ rowDeleted()

sal_Bool pq_sdbc_driver::BaseResultSet::rowDeleted ( )
overridevirtual

Definition at line 303 of file pq_baseresultset.cxx.

◆ rowInserted()

sal_Bool pq_sdbc_driver::BaseResultSet::rowInserted ( )
overridevirtual

Definition at line 298 of file pq_baseresultset.cxx.

◆ rowUpdated()

sal_Bool pq_sdbc_driver::BaseResultSet::rowUpdated ( )
overridevirtual

Definition at line 293 of file pq_baseresultset.cxx.

◆ setFastPropertyValue_NoBroadcast()

void pq_sdbc_driver::BaseResultSet::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

Implements cppu::OPropertySetHelper.

Definition at line 565 of file pq_baseresultset.cxx.

References m_props, and nHandle.

◆ wasNull()

sal_Bool pq_sdbc_driver::BaseResultSet::wasNull ( )
overridevirtual

Definition at line 318 of file pq_baseresultset.cxx.

References m_wasNull.

Member Data Documentation

◆ m_fieldCount

sal_Int32 pq_sdbc_driver::BaseResultSet::m_fieldCount
protected

◆ m_owner

css::uno::Reference< css::uno::XInterface > pq_sdbc_driver::BaseResultSet::m_owner
protected

◆ m_props

css::uno::Any pq_sdbc_driver::BaseResultSet::m_props[BASERESULTSET_SIZE]
protected

◆ m_row

sal_Int32 pq_sdbc_driver::BaseResultSet::m_row
protected

◆ m_rowCount

sal_Int32 pq_sdbc_driver::BaseResultSet::m_rowCount
protected

◆ m_tc

css::uno::Reference< css::script::XTypeConverter > pq_sdbc_driver::BaseResultSet::m_tc
protected

Definition at line 73 of file pq_baseresultset.hxx.

Referenced by convertTo(), and getArray().

◆ m_wasNull

bool pq_sdbc_driver::BaseResultSet::m_wasNull
protected

◆ m_xMutex

::rtl::Reference< comphelper::RefCountedMutex > pq_sdbc_driver::BaseResultSet::m_xMutex
protected

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