LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
connectivity::odbc::OResultSet Class Reference

#include <OResultSet.hxx>

Inheritance diagram for connectivity::odbc::OResultSet:
[legend]
Collaboration diagram for connectivity::odbc::OResultSet:
[legend]

Public Member Functions

 DECLARE_SERVICE_INFO ()
 
 OResultSet (SQLHANDLE _pStatementHandle, OStatement_Base *pStmt)
 
virtual ~OResultSet () override
 
void construct ()
 
oslGenericFunction getOdbcFunction (ODBC3SQLFunctionId _nIndex) const
 
css::uno::Reference< css::uno::XInterface > operator* ()
 
void setMetaData (const css::uno::Reference< css::sdbc::XResultSetMetaData > &_xMetaData)
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () 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 css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual void SAL_CALL cancel () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual void SAL_CALL insertRow () override
 
virtual void SAL_CALL updateRow () override
 
virtual void SAL_CALL deleteRow () override
 
virtual void SAL_CALL cancelRowUpdates () override
 
virtual void SAL_CALL moveToInsertRow () override
 
virtual void SAL_CALL moveToCurrentRow () override
 
virtual void SAL_CALL updateNull (sal_Int32 columnIndex) override
 
virtual void SAL_CALL updateBoolean (sal_Int32 columnIndex, sal_Bool x) override
 
virtual void SAL_CALL updateByte (sal_Int32 columnIndex, sal_Int8 x) override
 
virtual void SAL_CALL updateShort (sal_Int32 columnIndex, sal_Int16 x) override
 
virtual void SAL_CALL updateInt (sal_Int32 columnIndex, sal_Int32 x) override
 
virtual void SAL_CALL updateLong (sal_Int32 columnIndex, sal_Int64 x) override
 
virtual void SAL_CALL updateFloat (sal_Int32 columnIndex, float x) override
 
virtual void SAL_CALL updateDouble (sal_Int32 columnIndex, double x) override
 
virtual void SAL_CALL updateString (sal_Int32 columnIndex, const OUString &x) override
 
virtual void SAL_CALL updateBytes (sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override
 
virtual void SAL_CALL updateDate (sal_Int32 columnIndex, const css::util::Date &x) override
 
virtual void SAL_CALL updateTime (sal_Int32 columnIndex, const css::util::Time &x) override
 
virtual void SAL_CALL updateTimestamp (sal_Int32 columnIndex, const css::util::DateTime &x) override
 
virtual void SAL_CALL updateBinaryStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateCharacterStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateObject (sal_Int32 columnIndex, const css::uno::Any &x) override
 
virtual void SAL_CALL updateNumericObject (sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override
 
virtual sal_Int32 SAL_CALL findColumn (const OUString &columnName) override
 
virtual css::uno::Any SAL_CALL getBookmark () override
 
virtual sal_Bool SAL_CALL moveToBookmark (const css::uno::Any &bookmark) override
 
virtual sal_Bool SAL_CALL moveRelativeToBookmark (const css::uno::Any &bookmark, sal_Int32 rows) override
 
virtual sal_Int32 SAL_CALL compareBookmarks (const css::uno::Any &first, const css::uno::Any &second) override
 
virtual sal_Bool SAL_CALL hasOrderedBookmarks () override
 
virtual sal_Int32 SAL_CALL hashBookmark (const css::uno::Any &bookmark) override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows (const css::uno::Sequence< css::uno::Any > &rows) override
 
virtual bool move (IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData) override
 
virtual sal_Int32 getDriverPos () const override
 
virtual bool isRowDeleted () const override
 
virtual bool move (Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)=0
 
virtual sal_Int32 getDriverPos () const =0
 
virtual bool isRowDeleted () const =0
 
- 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
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Types

typedef std::vector< ORowSetValueTDataRow
 

Protected Member Functions

bool isBookmarkable () const
 
sal_Int32 getResultSetConcurrency () const
 
sal_Int32 getResultSetType () const
 
sal_Int32 getFetchSize () const
 
OUString getCursorName () const
 
template<typename T , SQLINTEGER BufferLength>
getStmtOption (SQLINTEGER fOption) const
 
void setFetchDirection (sal_Int32 _par0)
 
void setFetchSize (sal_Int32 _par0)
 
template<typename T , SQLINTEGER BufferLength>
SQLRETURN setStmtOption (SQLINTEGER fOption, T value) const
 
void ensureCacheForColumn (sal_Int32 columnIndex)
 
void invalidateCache ()
 
void fillColumn (sal_Int32 _nToColumn)
 
void allocBuffer ()
 
void releaseBuffer ()
 
void updateValue (sal_Int32 columnIndex, SQLSMALLINT _nType, void const *_pValue)
 
void fillNeededData (SQLRETURN _nRet)
 
bool moveImpl (IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset)
 
TVoidPtr allocBindColumn (sal_Int32 _nType, sal_Int32 _nColumnIndex)
 
SQLRETURN unbind (bool _bUnbindHandle=true)
 
SWORD impl_getColumnType_nothrow (sal_Int32 columnIndex)
 
template<typename T >
getValue (sal_Int32 columnIndex)
 
template<typename T >
impl_getValue (const sal_Int32 _nColumnIndex, SQLSMALLINT nType)
 
bool impl_getBoolean (sal_Int32 columnIndex)
 
css::uno::Sequence< sal_Int8impl_getBytes (sal_Int32 columnIndex)
 
css::util::Date impl_getDate (sal_Int32 columnIndex)
 
css::util::Time impl_getTime (sal_Int32 columnIndex)
 
css::util::DateTime impl_getTimestamp (sal_Int32 columnIndex)
 
sal_Int64 impl_getLong (sal_Int32 columnIndex)
 
OUString impl_getString (sal_Int32 columnIndex)
 
css::uno::Sequence< sal_Int8impl_getBookmark ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const 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
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
- Protected Member Functions inherited from connectivity::IResultSetHelper
 ~IResultSetHelper ()
 
- 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 ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 

Static Protected Member Functions

static sal_Int32 getFetchDirection ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
static std::mutextheMutex ()
 

Protected Attributes

TBookmarkPosMap m_aPosToBookmarks
 
TVoidVector m_aBindVector
 
std::vector< SQLLEN > m_aLengthVector
 
std::map< sal_Int32, SWORD > m_aODBCColumnTypes
 
TDataRow m_aRow
 
bool m_bFetchDataInOrder
 
SQLHANDLE m_aStatementHandle
 
SQLHANDLE m_aConnectionHandle
 
OStatement_Basem_pStatement
 
std::unique_ptr< OSkipDeletedSetm_pSkipDeletedSet
 
css::uno::Reference< css::uno::XInterface > m_xStatement
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
 
std::unique_ptr< SQLUSMALLINT[]> m_pRowStatusArray
 
rtl_TextEncoding m_nTextEncoding
 
sal_Int32 m_nRowPos
 
sal_uInt32 m_nUseBookmarks
 
SQLRETURN m_nCurrentFetchState
 
bool m_bWasNull
 
bool m_bEOF
 
bool m_bRowInserted
 
bool m_bRowDeleted
 
bool m_bUseFetchScroll
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Additional Inherited Members

- Public Types inherited from connectivity::IResultSetHelper
enum  Movement {
  NEXT = 0 ,
  PRIOR ,
  FIRST ,
  LAST ,
  RELATIVE1 ,
  ABSOLUTE1 ,
  BOOKMARK
}
 
- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 105 of file OResultSet.hxx.

Member Typedef Documentation

◆ TDataRow

Definition at line 115 of file OResultSet.hxx.

Constructor & Destructor Documentation

◆ OResultSet()

OResultSet::OResultSet ( SQLHANDLE  _pStatementHandle,
OStatement_Base pStmt 
)

◆ ~OResultSet()

OResultSet::~OResultSet ( )
overridevirtual

Definition at line 159 of file OResultSet.cxx.

Member Function Documentation

◆ absolute()

sal_Bool SAL_CALL OResultSet::absolute ( sal_Int32  row)
overridevirtual

Definition at line 748 of file OResultSet.cxx.

References connectivity::IResultSetHelper::ABSOLUTE1, and moveImpl().

◆ acquire()

void SAL_CALL OResultSet::acquire ( )
overridevirtualnoexcept

Definition at line 1646 of file OResultSet.cxx.

◆ afterLast()

void SAL_CALL OResultSet::afterLast ( )
overridevirtual

◆ allocBindColumn()

TVoidPtr OResultSet::allocBindColumn ( sal_Int32  _nType,
sal_Int32  _nColumnIndex 
)
protected

Definition at line 251 of file OResultSet.cxx.

References getLength(), m_aRow, and SAL_WARN.

Referenced by updateNull(), and updateValue().

◆ allocBuffer()

void OResultSet::allocBuffer ( )
protected

Definition at line 312 of file OResultSet.cxx.

References getMetaData(), i, m_aBindVector, m_aLengthVector, m_aRow, and nType.

Referenced by construct().

◆ beforeFirst()

void SAL_CALL OResultSet::beforeFirst ( )
overridevirtual

◆ cancel()

void SAL_CALL OResultSet::cancel ( )
overridevirtual

◆ cancelRowUpdates()

void SAL_CALL OResultSet::cancelRowUpdates ( )
overridevirtual

Definition at line 984 of file OResultSet.cxx.

◆ clearWarnings()

void SAL_CALL OResultSet::clearWarnings ( )
overridevirtual

Definition at line 827 of file OResultSet.cxx.

◆ close()

void SAL_CALL OResultSet::close ( )
overridevirtual

◆ compareBookmarks()

virtual sal_Int32 SAL_CALL connectivity::odbc::OResultSet::compareBookmarks ( const css::uno::Any &  first,
const css::uno::Any &  second 
)
overridevirtual

◆ construct()

void OResultSet::construct ( )

Definition at line 163 of file OResultSet.cxx.

References allocBuffer(), and m_refCount.

◆ convertFastPropertyValue()

virtual sal_Bool SAL_CALL connectivity::odbc::OResultSet::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ createArrayHelper()

IPropertyArrayHelper * OResultSet::createArrayHelper ( ) const
overrideprotectedvirtual

◆ DECLARE_SERVICE_INFO()

connectivity::odbc::OResultSet::DECLARE_SERVICE_INFO ( )

◆ deleteRow()

void SAL_CALL OResultSet::deleteRow ( )
overridevirtual

◆ deleteRows()

virtual css::uno::Sequence< sal_Int32 > SAL_CALL connectivity::odbc::OResultSet::deleteRows ( const css::uno::Sequence< css::uno::Any > &  rows)
overridevirtual

◆ disposing()

void OResultSet::disposing ( )
overridevirtual

◆ ensureCacheForColumn()

void OResultSet::ensureCacheForColumn ( sal_Int32  columnIndex)
protected

Definition at line 376 of file OResultSet.cxx.

References end, i, m_aRow, and SAL_INFO.

Referenced by fillColumn(), and move().

◆ fillColumn()

void OResultSet::fillColumn ( sal_Int32  _nToColumn)
protected

◆ fillNeededData()

void OResultSet::fillNeededData ( SQLRETURN  _nRet)
protected

◆ findColumn()

sal_Int32 SAL_CALL OResultSet::findColumn ( const OUString &  columnName)
overridevirtual

◆ first()

sal_Bool SAL_CALL OResultSet::first ( )
overridevirtual

Definition at line 737 of file OResultSet.cxx.

References connectivity::IResultSetHelper::FIRST, and moveImpl().

Referenced by beforeFirst().

◆ getArray()

Reference< XArray > SAL_CALL OResultSet::getArray ( sal_Int32  columnIndex)
overridevirtual

Definition at line 598 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ getBinaryStream()

Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

◆ getBlob()

Reference< XBlob > SAL_CALL OResultSet::getBlob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 611 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ getBookmark()

Any SAL_CALL OResultSet::getBookmark ( )
overridevirtual

Definition at line 1157 of file OResultSet.cxx.

References Any, fillColumn(), and m_aRow.

Referenced by updateRow().

◆ getBoolean()

sal_Bool SAL_CALL OResultSet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Definition at line 473 of file OResultSet.cxx.

◆ getByte()

sal_Int8 SAL_CALL OResultSet::getByte ( sal_Int32  columnIndex)
overridevirtual

Definition at line 478 of file OResultSet.cxx.

◆ getBytes()

Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes ( sal_Int32  columnIndex)
overridevirtual

◆ getCharacterStream()

Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

◆ getClob()

Reference< XClob > SAL_CALL OResultSet::getClob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 605 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ getCursorName()

OUString OResultSet::getCursorName ( ) const
protected

Definition at line 1335 of file OResultSet.cxx.

References m_aStatementHandle, N3SQLGetCursorName, and pName.

◆ getDate()

Date SAL_CALL OResultSet::getDate ( sal_Int32  columnIndex)
overridevirtual

Definition at line 536 of file OResultSet.cxx.

◆ getDouble()

double SAL_CALL OResultSet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Definition at line 542 of file OResultSet.cxx.

◆ getDriverPos()

sal_Int32 OResultSet::getDriverPos ( ) const
overridevirtual

Implements connectivity::IResultSetHelper.

Definition at line 1766 of file OResultSet.cxx.

References m_nRowPos, nValue, and SAL_INFO.

Referenced by deleteRow(), getRow(), and insertRow().

◆ getFastPropertyValue() [1/3]

virtual void SAL_CALL connectivity::odbc::OResultSet::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprotectedvirtual

◆ getFastPropertyValue() [2/3]

virtual css::uno::Any SAL_CALL comphelper::OPropertySetHelper::getFastPropertyValue ( sal_Int32  nHandle)
protectedvirtual

Reimplemented from cppu::OPropertySetHelper.

◆ getFastPropertyValue() [3/3]

virtual void comphelper::OPropertySetHelper::getFastPropertyValue ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
protected

◆ getFetchDirection()

static sal_Int32 connectivity::odbc::OResultSet::getFetchDirection ( )
inlinestaticprotected

Definition at line 152 of file OResultSet.hxx.

◆ getFetchSize()

sal_Int32 OResultSet::getFetchSize ( ) const
protected

Definition at line 1330 of file OResultSet.cxx.

◆ getFloat()

float SAL_CALL OResultSet::getFloat ( sal_Int32  columnIndex)
overridevirtual

Definition at line 548 of file OResultSet.cxx.

◆ getInfoHelper()

IPropertyArrayHelper & OResultSet::getInfoHelper ( )
overrideprotectedvirtual

◆ getInt()

sal_Int32 SAL_CALL OResultSet::getInt ( sal_Int32  columnIndex)
overridevirtual

Definition at line 558 of file OResultSet.cxx.

◆ getLong()

sal_Int64 SAL_CALL OResultSet::getLong ( sal_Int32  columnIndex)
overridevirtual

Definition at line 563 of file OResultSet.cxx.

◆ getMetaData()

Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData ( )
overridevirtual

◆ getObject()

virtual css::uno::Any SAL_CALL connectivity::odbc::OResultSet::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

◆ getOdbcFunction()

oslGenericFunction connectivity::odbc::OResultSet::getOdbcFunction ( ODBC3SQLFunctionId  _nIndex) const
inline

◆ getPropertySetInfo()

css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo ( )
overridevirtual

Definition at line 1656 of file OResultSet.cxx.

References getInfoHelper().

◆ getRef()

Reference< XRef > SAL_CALL OResultSet::getRef ( sal_Int32  columnIndex)
overridevirtual

Definition at line 618 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ getResultSetConcurrency()

sal_Int32 OResultSet::getResultSetConcurrency ( ) const
protected

Definition at line 1297 of file OResultSet.cxx.

References nValue.

◆ getResultSetType()

sal_Int32 OResultSet::getResultSetType ( ) const
protected

Definition at line 1308 of file OResultSet.cxx.

References nValue.

◆ getRow()

sal_Int32 SAL_CALL OResultSet::getRow ( )
overridevirtual

◆ getShort()

sal_Int16 SAL_CALL OResultSet::getShort ( sal_Int32  columnIndex)
overridevirtual

Definition at line 553 of file OResultSet.cxx.

◆ getStatement()

Reference< XInterface > SAL_CALL OResultSet::getStatement ( )
overridevirtual

◆ getStmtOption()

template<typename T , SQLINTEGER BufferLength>
T OResultSet::getStmtOption ( SQLINTEGER  fOption) const
protected

Definition at line 1283 of file OResultSet.cxx.

References m_aStatementHandle, N3SQLGetStmtAttr, and result.

◆ getString()

OUString OResultSet::getString ( sal_Int32  columnIndex)
overridevirtual

Definition at line 636 of file OResultSet.cxx.

Referenced by impl_getLong().

◆ getTime()

Time SAL_CALL OResultSet::getTime ( sal_Int32  columnIndex)
overridevirtual

Definition at line 648 of file OResultSet.cxx.

References Time.

◆ getTimestamp()

DateTime SAL_CALL OResultSet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Definition at line 667 of file OResultSet.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL OResultSet::getTypes ( )
overridevirtual

Definition at line 344 of file OResultSet.cxx.

References aTypes.

◆ getValue()

template<typename T >
T OResultSet::getValue ( sal_Int32  columnIndex)
protected

◆ getWarnings()

Any SAL_CALL OResultSet::getWarnings ( )
overridevirtual

Definition at line 831 of file OResultSet.cxx.

References Any.

◆ hashBookmark()

virtual sal_Int32 SAL_CALL connectivity::odbc::OResultSet::hashBookmark ( const css::uno::Any &  bookmark)
overridevirtual

◆ hasOrderedBookmarks()

sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks ( )
overridevirtual

Definition at line 1245 of file OResultSet.cxx.

◆ impl_getBookmark()

Sequence< sal_Int8 > OResultSet::impl_getBookmark ( )
protected

◆ impl_getBoolean()

bool OResultSet::impl_getBoolean ( sal_Int32  columnIndex)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 435 of file OResultSet.cxx.

Referenced by fillColumn().

◆ impl_getBytes()

Sequence< sal_Int8 > OResultSet::impl_getBytes ( sal_Int32  columnIndex)
protected

◆ impl_getColumnType_nothrow()

SWORD OResultSet::impl_getColumnType_nothrow ( sal_Int32  columnIndex)
protected

◆ impl_getDate()

Date OResultSet::impl_getDate ( sal_Int32  columnIndex)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 528 of file OResultSet.cxx.

References connectivity::odbc::OStatement_Base::getOwnConnection(), m_pStatement, and connectivity::odbc::OConnection::useOldDateFormat().

Referenced by fillColumn().

◆ impl_getLong()

sal_Int64 OResultSet::impl_getLong ( sal_Int32  columnIndex)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 567 of file OResultSet.cxx.

References getString().

Referenced by fillColumn().

◆ impl_getString()

OUString OResultSet::impl_getString ( sal_Int32  columnIndex)
protected

◆ impl_getTime()

Time OResultSet::impl_getTime ( sal_Int32  columnIndex)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 641 of file OResultSet.cxx.

References connectivity::odbc::OStatement_Base::getOwnConnection(), m_pStatement, Time, and connectivity::odbc::OConnection::useOldDateFormat().

Referenced by fillColumn().

◆ impl_getTimestamp()

DateTime OResultSet::impl_getTimestamp ( sal_Int32  columnIndex)
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 653 of file OResultSet.cxx.

References connectivity::odbc::OStatement_Base::getOwnConnection(), m_pStatement, and connectivity::odbc::OConnection::useOldDateFormat().

Referenced by fillColumn().

◆ impl_getValue()

template<typename T >
T OResultSet::impl_getValue ( const sal_Int32  _nColumnIndex,
SQLSMALLINT  nType 
)
protected

◆ insertRow()

void SAL_CALL OResultSet::insertRow ( )
overridevirtual

◆ invalidateCache()

void OResultSet::invalidateCache ( )
protected

Definition at line 397 of file OResultSet.cxx.

References m_aRow.

Referenced by move(), moveToCurrentRow(), moveToInsertRow(), and updateRow().

◆ isAfterLast()

sal_Bool SAL_CALL OResultSet::isAfterLast ( )
overridevirtual

◆ isBeforeFirst()

sal_Bool SAL_CALL OResultSet::isBeforeFirst ( )
overridevirtual

Definition at line 672 of file OResultSet.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_nRowPos.

Referenced by insertRow().

◆ isBookmarkable()

bool OResultSet::isBookmarkable ( ) const
protected

◆ isFirst()

sal_Bool SAL_CALL OResultSet::isFirst ( )
overridevirtual

◆ isLast()

sal_Bool SAL_CALL OResultSet::isLast ( )
overridevirtual

◆ isRowDeleted()

bool OResultSet::isRowDeleted ( ) const
overridevirtual

Implements connectivity::IResultSetHelper.

Definition at line 1775 of file OResultSet.cxx.

References m_pRowStatusArray.

◆ last()

sal_Bool SAL_CALL OResultSet::last ( )
overridevirtual

Definition at line 743 of file OResultSet.cxx.

References connectivity::IResultSetHelper::LAST, and moveImpl().

Referenced by afterLast().

◆ move()

bool OResultSet::move ( IResultSetHelper::Movement  _eCursorPosition,
sal_Int32  _nOffset,
bool  _bRetrieveData 
)
overridevirtual

◆ moveImpl()

bool OResultSet::moveImpl ( IResultSetHelper::Movement  _eCursorPosition,
sal_Int32  _nOffset 
)
protected

◆ moveRelativeToBookmark()

virtual sal_Bool SAL_CALL connectivity::odbc::OResultSet::moveRelativeToBookmark ( const css::uno::Any &  bookmark,
sal_Int32  rows 
)
overridevirtual

◆ moveToBookmark()

virtual sal_Bool SAL_CALL connectivity::odbc::OResultSet::moveToBookmark ( const css::uno::Any &  bookmark)
overridevirtual

Referenced by insertRow(), and move().

◆ moveToCurrentRow()

void SAL_CALL OResultSet::moveToCurrentRow ( )
overridevirtual

Definition at line 1002 of file OResultSet.cxx.

References invalidateCache().

◆ moveToInsertRow()

void SAL_CALL OResultSet::moveToInsertRow ( )
overridevirtual

◆ next()

sal_Bool SAL_CALL OResultSet::next ( )
overridevirtual

Definition at line 803 of file OResultSet.cxx.

References moveImpl(), and connectivity::IResultSetHelper::NEXT.

Referenced by afterLast(), and insertRow().

◆ operator*()

css::uno::Reference< css::uno::XInterface > connectivity::odbc::OResultSet::operator* ( void  )
inline

Definition at line 239 of file OResultSet.hxx.

◆ previous()

sal_Bool SAL_CALL OResultSet::previous ( )
overridevirtual

Definition at line 758 of file OResultSet.cxx.

References moveImpl(), and connectivity::IResultSetHelper::PRIOR.

Referenced by beforeFirst().

◆ queryInterface()

virtual css::uno::Any SAL_CALL connectivity::odbc::OResultSet::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OPropertySetHelper.

◆ refreshRow()

void SAL_CALL OResultSet::refreshRow ( )
overridevirtual

◆ relative()

sal_Bool SAL_CALL OResultSet::relative ( sal_Int32  rows)
overridevirtual

Definition at line 753 of file OResultSet.cxx.

References moveImpl(), and connectivity::IResultSetHelper::RELATIVE1.

◆ release()

void SAL_CALL OResultSet::release ( )
overridevirtualnoexcept

Definition at line 1651 of file OResultSet.cxx.

◆ releaseBuffer()

void OResultSet::releaseBuffer ( )
protected

Definition at line 332 of file OResultSet.cxx.

References m_aLengthVector, and unbind().

Referenced by disposing().

◆ rowDeleted()

sal_Bool SAL_CALL OResultSet::rowDeleted ( )
overridevirtual

◆ rowInserted()

sal_Bool SAL_CALL OResultSet::rowInserted ( )
overridevirtual

◆ rowUpdated()

sal_Bool SAL_CALL OResultSet::rowUpdated ( )
overridevirtual

◆ setFastPropertyValue_NoBroadcast()

virtual void SAL_CALL connectivity::odbc::OResultSet::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ setFetchDirection()

void OResultSet::setFetchDirection ( sal_Int32  _par0)
protected

Definition at line 1381 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ setFetchSize()

void OResultSet::setFetchSize ( sal_Int32  _par0)
protected

Definition at line 1392 of file OResultSet.cxx.

References m_pRowStatusArray.

◆ setMetaData()

void connectivity::odbc::OResultSet::setMetaData ( const css::uno::Reference< css::sdbc::XResultSetMetaData > &  _xMetaData)
inline

Definition at line 244 of file OResultSet.hxx.

◆ setStmtOption()

template<typename T , SQLINTEGER BufferLength>
SQLRETURN OResultSet::setStmtOption ( SQLINTEGER  fOption,
value 
) const
protected

Definition at line 1290 of file OResultSet.cxx.

References m_aStatementHandle, N3SQLSetStmtAttr, and value.

◆ unbind()

SQLRETURN OResultSet::unbind ( bool  _bUnbindHandle = true)
protected

Definition at line 183 of file OResultSet.cxx.

References m_aBindVector, m_aStatementHandle, and N3SQLFreeStmt.

Referenced by insertRow(), moveToInsertRow(), releaseBuffer(), and updateRow().

◆ updateBinaryStream()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateBinaryStream ( sal_Int32  columnIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

◆ updateBoolean()

void SAL_CALL OResultSet::updateBoolean ( sal_Int32  columnIndex,
sal_Bool  x 
)
overridevirtual

Definition at line 1039 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateByte()

void SAL_CALL OResultSet::updateByte ( sal_Int32  columnIndex,
sal_Int8  x 
)
overridevirtual

Definition at line 1044 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateBytes()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateBytes ( sal_Int32  columnIndex,
const css::uno::Sequence< sal_Int8 > &  x 
)
overridevirtual

◆ updateCharacterStream()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateCharacterStream ( sal_Int32  columnIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

◆ updateDate()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateDate ( sal_Int32  columnIndex,
const css::util::Date &  x 
)
overridevirtual

◆ updateDouble()

void SAL_CALL OResultSet::updateDouble ( sal_Int32  columnIndex,
double  x 
)
overridevirtual

Definition at line 1071 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateFloat()

void SAL_CALL OResultSet::updateFloat ( sal_Int32  columnIndex,
float  x 
)
overridevirtual

Definition at line 1065 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateInt()

void SAL_CALL OResultSet::updateInt ( sal_Int32  columnIndex,
sal_Int32  x 
)
overridevirtual

Definition at line 1055 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateLong()

void SAL_CALL OResultSet::updateLong ( sal_Int32  columnIndex,
sal_Int64  x 
)
overridevirtual

Definition at line 1060 of file OResultSet.cxx.

References dbtools::throwFunctionNotSupportedSQLException().

◆ updateNull()

void SAL_CALL OResultSet::updateNull ( sal_Int32  columnIndex)
overridevirtual

◆ updateNumericObject()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateNumericObject ( sal_Int32  columnIndex,
const css::uno::Any &  x,
sal_Int32  scale 
)
overridevirtual

◆ updateObject()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateObject ( sal_Int32  columnIndex,
const css::uno::Any &  x 
)
overridevirtual

◆ updateRow()

void SAL_CALL OResultSet::updateRow ( )
overridevirtual

◆ updateShort()

void SAL_CALL OResultSet::updateShort ( sal_Int32  columnIndex,
sal_Int16  x 
)
overridevirtual

Definition at line 1050 of file OResultSet.cxx.

References updateValue(), and x.

◆ updateString()

void SAL_CALL OResultSet::updateString ( sal_Int32  columnIndex,
const OUString &  x 
)
overridevirtual

◆ updateTime()

void SAL_CALL OResultSet::updateTime ( sal_Int32  columnIndex,
const css::util::Time &  x 
)
overridevirtual

Definition at line 1103 of file OResultSet.cxx.

References connectivity::odbc::OTools::TimeToOdbcTime(), updateValue(), and x.

◆ updateTimestamp()

virtual void SAL_CALL connectivity::odbc::OResultSet::updateTimestamp ( sal_Int32  columnIndex,
const css::util::DateTime &  x 
)
overridevirtual

◆ updateValue()

void OResultSet::updateValue ( sal_Int32  columnIndex,
SQLSMALLINT  _nType,
void const *  _pValue 
)
protected

◆ wasNull()

sal_Bool SAL_CALL OResultSet::wasNull ( )
overridevirtual

Member Data Documentation

◆ m_aBindVector

TVoidVector connectivity::odbc::OResultSet::m_aBindVector
protected

Definition at line 117 of file OResultSet.hxx.

Referenced by allocBuffer(), unbind(), updateNull(), and updateValue().

◆ m_aConnectionHandle

SQLHANDLE connectivity::odbc::OResultSet::m_aConnectionHandle
protected

Definition at line 133 of file OResultSet.hxx.

Referenced by isBookmarkable(), and OResultSet().

◆ m_aLengthVector

std::vector<SQLLEN> connectivity::odbc::OResultSet::m_aLengthVector
protected

Definition at line 118 of file OResultSet.hxx.

Referenced by allocBuffer(), releaseBuffer(), updateNull(), and updateValue().

◆ m_aODBCColumnTypes

std::map<sal_Int32,SWORD> connectivity::odbc::OResultSet::m_aODBCColumnTypes
protected

Definition at line 119 of file OResultSet.hxx.

Referenced by impl_getColumnType_nothrow().

◆ m_aPosToBookmarks

TBookmarkPosMap connectivity::odbc::OResultSet::m_aPosToBookmarks
protected

Definition at line 113 of file OResultSet.hxx.

Referenced by deleteRow(), impl_getBookmark(), insertRow(), and move().

◆ m_aRow

TDataRow connectivity::odbc::OResultSet::m_aRow
protected

◆ m_aStatementHandle

SQLHANDLE connectivity::odbc::OResultSet::m_aStatementHandle
protected

◆ m_bEOF

bool connectivity::odbc::OResultSet::m_bEOF
protected

Definition at line 144 of file OResultSet.hxx.

Referenced by afterLast(), isLast(), and move().

◆ m_bFetchDataInOrder

bool connectivity::odbc::OResultSet::m_bFetchDataInOrder
protected

Definition at line 131 of file OResultSet.hxx.

Referenced by fillColumn(), and OResultSet().

◆ m_bRowDeleted

bool connectivity::odbc::OResultSet::m_bRowDeleted
protected

Definition at line 146 of file OResultSet.hxx.

Referenced by deleteRow(), and rowDeleted().

◆ m_bRowInserted

bool connectivity::odbc::OResultSet::m_bRowInserted
protected

Definition at line 145 of file OResultSet.hxx.

Referenced by insertRow(), and rowInserted().

◆ m_bUseFetchScroll

bool connectivity::odbc::OResultSet::m_bUseFetchScroll
protected

Definition at line 147 of file OResultSet.hxx.

Referenced by move(), and OResultSet().

◆ m_bWasNull

bool connectivity::odbc::OResultSet::m_bWasNull
protected

◆ m_nCurrentFetchState

SQLRETURN connectivity::odbc::OResultSet::m_nCurrentFetchState
protected

Definition at line 142 of file OResultSet.hxx.

Referenced by beforeFirst(), isAfterLast(), isLast(), move(), and refreshRow().

◆ m_nRowPos

sal_Int32 connectivity::odbc::OResultSet::m_nRowPos
protected

◆ m_nTextEncoding

rtl_TextEncoding connectivity::odbc::OResultSet::m_nTextEncoding
protected

◆ m_nUseBookmarks

sal_uInt32 connectivity::odbc::OResultSet::m_nUseBookmarks
mutableprotected

Definition at line 141 of file OResultSet.hxx.

Referenced by impl_getBookmark(), isBookmarkable(), and move().

◆ m_pRowStatusArray

std::unique_ptr<SQLUSMALLINT[]> connectivity::odbc::OResultSet::m_pRowStatusArray
protected

Definition at line 138 of file OResultSet.hxx.

Referenced by deleteRow(), isRowDeleted(), OResultSet(), rowUpdated(), and setFetchSize().

◆ m_pSkipDeletedSet

std::unique_ptr<OSkipDeletedSet> connectivity::odbc::OResultSet::m_pSkipDeletedSet
protected

Definition at line 135 of file OResultSet.hxx.

Referenced by deleteRow(), getRow(), insertRow(), moveImpl(), and OResultSet().

◆ m_pStatement

OStatement_Base* connectivity::odbc::OResultSet::m_pStatement
protected

◆ m_xMetaData

css::uno::Reference< css::sdbc::XResultSetMetaData> connectivity::odbc::OResultSet::m_xMetaData
protected

Definition at line 137 of file OResultSet.hxx.

Referenced by disposing(), and getMetaData().

◆ m_xStatement

css::uno::Reference< css::uno::XInterface> connectivity::odbc::OResultSet::m_xStatement
protected

Definition at line 136 of file OResultSet.hxx.

Referenced by disposing(), and getStatement().


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