LibreOffice Module connectivity (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
connectivity::mysqlc::OResultSet Class Referencefinal

#include <mysqlc_resultset.hxx>

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

Public Member Functions

virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
 OResultSet (OConnection &rConn, OCommonStatement *pStmt, MYSQL_RES *pResult, rtl_TextEncoding _encoding)
 
void SAL_CALL disposing () override
 
Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
sal_Bool SAL_CALL next () override
 
sal_Bool SAL_CALL isBeforeFirst () override
 
sal_Bool SAL_CALL isAfterLast () override
 
sal_Bool SAL_CALL isFirst () override
 
sal_Bool SAL_CALL isLast () override
 
void SAL_CALL beforeFirst () override
 
void SAL_CALL afterLast () override
 
sal_Bool SAL_CALL first () override
 
sal_Bool SAL_CALL last () override
 
sal_Int32 SAL_CALL getRow () override
 
sal_Bool SAL_CALL absolute (sal_Int32 row) override
 
sal_Bool SAL_CALL relative (sal_Int32 rows) override
 
sal_Bool SAL_CALL previous () override
 
void SAL_CALL refreshRow () override
 
sal_Bool SAL_CALL rowUpdated () override
 
sal_Bool SAL_CALL rowInserted () override
 
sal_Bool SAL_CALL rowDeleted () override
 
css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement () override
 
sal_Bool SAL_CALL wasNull () override
 
OUString SAL_CALL getString (sal_Int32 column) override
 
sal_Bool SAL_CALL getBoolean (sal_Int32 column) override
 
sal_Int8 SAL_CALL getByte (sal_Int32 column) override
 
sal_Int16 SAL_CALL getShort (sal_Int32 column) override
 
sal_Int32 SAL_CALL getInt (sal_Int32 column) override
 
sal_Int64 SAL_CALL getLong (sal_Int32 column) override
 
float SAL_CALL getFloat (sal_Int32 column) override
 
double SAL_CALL getDouble (sal_Int32 column) override
 
css::uno::Sequence< sal_Int8 > SAL_CALL getBytes (sal_Int32 column) override
 
css::util::Date SAL_CALL getDate (sal_Int32 column) override
 
css::util::Time SAL_CALL getTime (sal_Int32 column) override
 
css::util::DateTime SAL_CALL getTimestamp (sal_Int32 column) override
 
css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream (sal_Int32 column) override
 
css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream (sal_Int32 column) override
 
Any SAL_CALL getObject (sal_Int32 column, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef (sal_Int32 column) override
 
css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob (sal_Int32 column) override
 
css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob (sal_Int32 column) override
 
css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray (sal_Int32 column) override
 
css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
void SAL_CALL cancel () override
 
void SAL_CALL close () override
 
Any SAL_CALL getWarnings () override
 
void SAL_CALL clearWarnings () override
 
void SAL_CALL insertRow () override
 
void SAL_CALL updateRow () override
 
void SAL_CALL deleteRow () override
 
void SAL_CALL cancelRowUpdates () override
 
void SAL_CALL moveToInsertRow () override
 
void SAL_CALL moveToCurrentRow () override
 
void SAL_CALL updateNull (sal_Int32 column) override
 
void SAL_CALL updateBoolean (sal_Int32 column, sal_Bool x) override
 
void SAL_CALL updateByte (sal_Int32 column, sal_Int8 x) override
 
void SAL_CALL updateShort (sal_Int32 column, sal_Int16 x) override
 
void SAL_CALL updateInt (sal_Int32 column, sal_Int32 x) override
 
void SAL_CALL updateLong (sal_Int32 column, sal_Int64 x) override
 
void SAL_CALL updateFloat (sal_Int32 column, float x) override
 
void SAL_CALL updateDouble (sal_Int32 column, double x) override
 
void SAL_CALL updateString (sal_Int32 column, const OUString &x) override
 
void SAL_CALL updateBytes (sal_Int32 column, const css::uno::Sequence< sal_Int8 > &x) override
 
void SAL_CALL updateDate (sal_Int32 column, const css::util::Date &x) override
 
void SAL_CALL updateTime (sal_Int32 column, const css::util::Time &x) override
 
void SAL_CALL updateTimestamp (sal_Int32 column, const css::util::DateTime &x) override
 
void SAL_CALL updateBinaryStream (sal_Int32 column, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
void SAL_CALL updateCharacterStream (sal_Int32 column, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
void SAL_CALL updateObject (sal_Int32 column, const Any &x) override
 
void SAL_CALL updateNumericObject (sal_Int32 column, const Any &x, sal_Int32 scale) override
 
sal_Int32 SAL_CALL findColumn (const OUString &columnName) override
 
Any SAL_CALL getBookmark () override
 
sal_Bool SAL_CALL moveToBookmark (const Any &bookmark) override
 
sal_Bool SAL_CALL moveRelativeToBookmark (const Any &bookmark, sal_Int32 rows) override
 
sal_Int32 SAL_CALL compareBookmarks (const Any &first, const Any &second) override
 
sal_Bool SAL_CALL hasOrderedBookmarks () override
 
sal_Int32 SAL_CALL hashBookmark (const Any &bookmark) override
 
css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows (const css::uno::Sequence< Any > &rows) override
 
void checkColumnIndex (sal_Int32 index)
 
void checkRowIndex ()
 
- Public Member Functions inherited from cppu::WeakComponentImplHelper12< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12 >
 WeakComponentImplHelper12 (::osl::Mutex &rMutex) SAL_NOEXCEPT
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_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
 
- Public Member Functions inherited from connectivity::mysqlc::OPropertyArrayUsageHelper< TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 call this in the getInfoHelper method of your derived class. More...
 

Private Types

using DataFields = std::vector< OString >
 

Private Member Functions

sal_Int32 getDataLength (sal_Int32 column)
 
bool checkNull (sal_Int32 column)
 
::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 used to implement the creation of the array helper which is shared amongst all instances of the class. More...
 
::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
sal_Bool SAL_CALL convertFastPropertyValue (Any &rConvertedValue, Any &rOldValue, sal_Int32 nHandle, const Any &rValue) override
 
void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const Any &rValue) override
 
void SAL_CALL getFastPropertyValue (Any &rValue, sal_Int32 nHandle) const override
 
virtual ~OResultSet () override=default
 
void ensureResultFetched ()
 Ensures that the results of the query has already been fetched. More...
 
void ensureFieldInfoFetched ()
 Ensures that meta data of the corresponding result set has been already queried. More...
 
void checkBordersAndEnsureFetched (sal_Int32 index)
 Check the following things: More...
 
void fetchResult ()
 Fetches all the data from the MYSQL_RES object related to the class. More...
 

Private Attributes

std::vector< DataFieldsm_aRows
 
std::vector< OUString > m_aFields
 
MYSQL * m_pMysql = nullptr
 
css::uno::WeakReferenceHelper m_aStatement
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
 
MYSQL_RES * m_pResult
 
rtl_TextEncoding m_encoding
 
bool m_bWasNull = false
 
sal_Int32 m_nRowPosition = -1
 Position of cursor indexed from 0. More...
 
sal_Int32 m_nRowCount = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- 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
 used to implement the creation of the array helper which is shared amongst all instances of the class. More...
 
- 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
 
- Static Protected Attributes inherited from connectivity::mysqlc::OPropertyArrayUsageHelper< TYPE >
static sal_Int32 s_nRefCount = 0
 
::cppu::IPropertyArrayHelpers_pProps = nullptr
 
::osl::Mutex s_aMutex
 

Detailed Description

Definition at line 55 of file mysqlc_resultset.hxx.

Member Typedef Documentation

◆ DataFields

using connectivity::mysqlc::OResultSet::DataFields = std::vector<OString>
private

Definition at line 60 of file mysqlc_resultset.hxx.

Constructor & Destructor Documentation

◆ ~OResultSet()

virtual connectivity::mysqlc::OResultSet::~OResultSet ( )
overrideprivatevirtualdefault

◆ OResultSet()

OResultSet::OResultSet ( OConnection rConn,
OCommonStatement pStmt,
MYSQL_RES *  pResult,
rtl_TextEncoding  _encoding 
)

Definition at line 106 of file mysqlc_resultset.cxx.

References m_aMutex, m_pResult, m_xMetaData, and Reference.

Member Function Documentation

◆ absolute()

sal_Bool SAL_CALL OResultSet::absolute ( sal_Int32  row)
override

◆ acquire()

void SAL_CALL OResultSet::acquire ( )
overridevirtualnoexcept

◆ afterLast()

void SAL_CALL OResultSet::afterLast ( )
override

◆ beforeFirst()

void SAL_CALL OResultSet::beforeFirst ( )
override

◆ cancel()

void SAL_CALL OResultSet::cancel ( )
override

◆ cancelRowUpdates()

void SAL_CALL OResultSet::cancelRowUpdates ( )
override

◆ checkBordersAndEnsureFetched()

void OResultSet::checkBordersAndEnsureFetched ( sal_Int32  index)
private

Check the following things:

  • cursor is out of range. Throws exception if true.
  • column index is out of range. Throws exception if true.
  • result set is fetched. If no, then it fetches the result.

Definition at line 1104 of file mysqlc_resultset.cxx.

References checkColumnIndex(), checkRowIndex(), ensureResultFetched(), and index.

Referenced by getArray(), getBinaryStream(), getBlob(), getBoolean(), getByte(), getBytes(), getCharacterStream(), getClob(), getDate(), getDouble(), getFloat(), getInt(), getLong(), getRef(), getShort(), getString(), getTime(), and getTimestamp().

◆ checkColumnIndex()

void OResultSet::checkColumnIndex ( sal_Int32  index)

◆ checkNull()

bool OResultSet::checkNull ( sal_Int32  column)
private

◆ checkRowIndex()

void OResultSet::checkRowIndex ( )

◆ clearWarnings()

void SAL_CALL OResultSet::clearWarnings ( )
override

Definition at line 733 of file mysqlc_resultset.cxx.

◆ close()

void SAL_CALL OResultSet::close ( )
override

◆ compareBookmarks()

sal_Int32 SAL_CALL OResultSet::compareBookmarks ( const Any &  first,
const Any &  second 
)
override

◆ convertFastPropertyValue()

sal_Bool OResultSet::convertFastPropertyValue ( Any &  rConvertedValue,
Any &  rOldValue,
sal_Int32  nHandle,
const Any &  rValue 
)
overrideprivate

◆ createArrayHelper()

IPropertyArrayHelper * OResultSet::createArrayHelper ( ) const
overrideprivatevirtual

used to implement the creation of the array helper which is shared amongst all instances of the class.

This method needs to be implemented in derived classes.
The method gets called with s_aMutex acquired.

Returns
a pointer to the newly created array helper. Must not be NULL.

Implements connectivity::mysqlc::OPropertyArrayUsageHelper< TYPE >.

Definition at line 1010 of file mysqlc_resultset.cxx.

References cppu::UnoType< typename T >::get(), connectivity::mysqlc::PROPERTY_ID_FETCHDIRECTION, connectivity::mysqlc::PROPERTY_ID_FETCHSIZE, connectivity::mysqlc::PROPERTY_ID_ISBOOKMARKABLE, connectivity::mysqlc::PROPERTY_ID_RESULTSETCONCURRENCY, and connectivity::mysqlc::PROPERTY_ID_RESULTSETTYPE.

◆ deleteRow()

void SAL_CALL OResultSet::deleteRow ( )
override

◆ deleteRows()

css::uno::Sequence< sal_Int32 > SAL_CALL connectivity::mysqlc::OResultSet::deleteRows ( const css::uno::Sequence< Any > &  rows)
override

◆ disposing()

void OResultSet::disposing ( )
override

◆ ensureFieldInfoFetched()

void OResultSet::ensureFieldInfoFetched ( )
private

Ensures that meta data of the corresponding result set has been already queried.

It should be called before freeing the result set, unless the information is lost.

Definition at line 127 of file mysqlc_resultset.cxx.

References i, m_aFields, m_nRowCount, m_pResult, and connectivity::evoab::pFields.

Referenced by absolute(), afterLast(), fetchResult(), findColumn(), isAfterLast(), isFirst(), isLast(), last(), next(), and relative().

◆ ensureResultFetched()

void OResultSet::ensureResultFetched ( )
private

Ensures that the results of the query has already been fetched.

Definition at line 119 of file mysqlc_resultset.cxx.

References fetchResult(), and m_pResult.

Referenced by checkBordersAndEnsureFetched().

◆ fetchResult()

void OResultSet::fetchResult ( )
private

Fetches all the data from the MYSQL_RES object related to the class.

It frees the MYSQL_RES object afterwards, so it cannot be used anymore.

Definition at line 146 of file mysqlc_resultset.cxx.

References col, ensureFieldInfoFetched(), m_aFields, m_aRows, m_encoding, m_nRowCount, m_pMysql, m_pResult, and mysqlc_sdbc_driver::throwSQLExceptionWithMsg().

Referenced by ensureResultFetched().

◆ findColumn()

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

◆ first()

sal_Bool SAL_CALL OResultSet::first ( )
override

◆ getArray()

uno::Reference< XArray > SAL_CALL OResultSet::getArray ( sal_Int32  column)
override

◆ getBinaryStream()

uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream ( sal_Int32  column)
override

◆ getBlob()

uno::Reference< XBlob > SAL_CALL OResultSet::getBlob ( sal_Int32  column)
override

◆ getBookmark()

Any SAL_CALL OResultSet::getBookmark ( )
override

◆ getBoolean()

sal_Bool SAL_CALL OResultSet::getBoolean ( sal_Int32  column)
override

◆ getByte()

sal_Int8 SAL_CALL OResultSet::getByte ( sal_Int32  column)
override

◆ getBytes()

uno::Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes ( sal_Int32  column)
override

◆ getCharacterStream()

uno::Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream ( sal_Int32  column)
override

◆ getClob()

uno::Reference< XClob > SAL_CALL OResultSet::getClob ( sal_Int32  column)
override

◆ getDataLength()

sal_Int32 connectivity::mysqlc::OResultSet::getDataLength ( sal_Int32  column)
inlineprivate

Definition at line 70 of file mysqlc_resultset.hxx.

References m_aRows, and m_nRowPosition.

Referenced by getBinaryStream(), getBytes(), getTime(), and getTimestamp().

◆ getDate()

Date SAL_CALL OResultSet::getDate ( sal_Int32  column)
override

◆ getDouble()

double SAL_CALL OResultSet::getDouble ( sal_Int32  column)
override

◆ getFastPropertyValue()

void OResultSet::getFastPropertyValue ( Any &  rValue,
sal_Int32  nHandle 
) const
overrideprivate

◆ getFloat()

float SAL_CALL OResultSet::getFloat ( sal_Int32  column)
override

◆ getImplementationName()

OUString SAL_CALL OResultSet::getImplementationName ( )
overridevirtual

Definition at line 91 of file mysqlc_resultset.cxx.

◆ getInfoHelper()

IPropertyArrayHelper & OResultSet::getInfoHelper ( )
overrideprivatevirtual

◆ getInt()

sal_Int32 SAL_CALL OResultSet::getInt ( sal_Int32  column)
override

◆ getLong()

sal_Int64 SAL_CALL OResultSet::getLong ( sal_Int32  column)
override

◆ getMetaData()

uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData ( )
override

◆ getObject()

Any SAL_CALL connectivity::mysqlc::OResultSet::getObject ( sal_Int32  column,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
override

◆ getPropertySetInfo()

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

Definition at line 1090 of file mysqlc_resultset.cxx.

References getInfoHelper().

◆ getRef()

uno::Reference< XRef > SAL_CALL OResultSet::getRef ( sal_Int32  column)
override

◆ getRow()

sal_Int32 SAL_CALL OResultSet::getRow ( )
override

◆ getShort()

sal_Int16 SAL_CALL OResultSet::getShort ( sal_Int32  column)
override

◆ getStatement()

uno::Reference< uno::XInterface > SAL_CALL OResultSet::getStatement ( )
override

◆ getString()

OUString SAL_CALL OResultSet::getString ( sal_Int32  column)
override

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames ( )
overridevirtual

Definition at line 96 of file mysqlc_resultset.cxx.

◆ getTime()

Time SAL_CALL OResultSet::getTime ( sal_Int32  column)
override

◆ getTimestamp()

DateTime SAL_CALL OResultSet::getTimestamp ( sal_Int32  column)
override

◆ getTypes()

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

◆ getWarnings()

Any SAL_CALL OResultSet::getWarnings ( )
override

Definition at line 735 of file mysqlc_resultset.cxx.

References Any.

◆ hashBookmark()

sal_Int32 SAL_CALL OResultSet::hashBookmark ( const Any &  bookmark)
override

◆ hasOrderedBookmarks()

sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks ( )
override

Definition at line 992 of file mysqlc_resultset.cxx.

◆ insertRow()

void SAL_CALL OResultSet::insertRow ( )
override

◆ isAfterLast()

sal_Bool SAL_CALL OResultSet::isAfterLast ( )
override

◆ isBeforeFirst()

sal_Bool SAL_CALL OResultSet::isBeforeFirst ( )
override

◆ isFirst()

sal_Bool SAL_CALL OResultSet::isFirst ( )
override

◆ isLast()

sal_Bool SAL_CALL OResultSet::isLast ( )
override

◆ last()

sal_Bool SAL_CALL OResultSet::last ( )
override

◆ moveRelativeToBookmark()

sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark ( const Any &  bookmark,
sal_Int32  rows 
)
override

◆ moveToBookmark()

sal_Bool SAL_CALL OResultSet::moveToBookmark ( const Any &  bookmark)
override

◆ moveToCurrentRow()

void SAL_CALL OResultSet::moveToCurrentRow ( )
override

◆ moveToInsertRow()

void SAL_CALL OResultSet::moveToInsertRow ( )
override

◆ next()

sal_Bool SAL_CALL OResultSet::next ( )
override

◆ previous()

sal_Bool SAL_CALL OResultSet::previous ( )
override

◆ queryInterface()

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

Reimplemented from cppu::OPropertySetHelper.

References Any.

◆ refreshRow()

void SAL_CALL OResultSet::refreshRow ( )
override

◆ relative()

sal_Bool SAL_CALL OResultSet::relative ( sal_Int32  rows)
override

◆ release()

void SAL_CALL OResultSet::release ( )
overridevirtualnoexcept

◆ rowDeleted()

sal_Bool SAL_CALL OResultSet::rowDeleted ( )
override

◆ rowInserted()

sal_Bool SAL_CALL OResultSet::rowInserted ( )
override

◆ rowUpdated()

sal_Bool SAL_CALL OResultSet::rowUpdated ( )
override

◆ setFastPropertyValue_NoBroadcast()

void OResultSet::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const Any &  rValue 
)
overrideprivate

◆ supportsService()

sal_Bool SAL_CALL OResultSet::supportsService ( OUString const &  ServiceName)
overridevirtual

Definition at line 101 of file mysqlc_resultset.cxx.

References cppu::supportsService().

◆ updateBinaryStream()

void SAL_CALL connectivity::mysqlc::OResultSet::updateBinaryStream ( sal_Int32  column,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
override

◆ updateBoolean()

void SAL_CALL OResultSet::updateBoolean ( sal_Int32  column,
sal_Bool  x 
)
override

◆ updateByte()

void SAL_CALL OResultSet::updateByte ( sal_Int32  column,
sal_Int8  x 
)
override

◆ updateBytes()

void SAL_CALL connectivity::mysqlc::OResultSet::updateBytes ( sal_Int32  column,
const css::uno::Sequence< sal_Int8 > &  x 
)
override

◆ updateCharacterStream()

void SAL_CALL connectivity::mysqlc::OResultSet::updateCharacterStream ( sal_Int32  column,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
override

◆ updateDate()

void SAL_CALL connectivity::mysqlc::OResultSet::updateDate ( sal_Int32  column,
const css::util::Date &  x 
)
override

◆ updateDouble()

void SAL_CALL OResultSet::updateDouble ( sal_Int32  column,
double  x 
)
override

◆ updateFloat()

void SAL_CALL OResultSet::updateFloat ( sal_Int32  column,
float  x 
)
override

◆ updateInt()

void SAL_CALL OResultSet::updateInt ( sal_Int32  column,
sal_Int32  x 
)
override

◆ updateLong()

void SAL_CALL OResultSet::updateLong ( sal_Int32  column,
sal_Int64  x 
)
override

◆ updateNull()

void SAL_CALL OResultSet::updateNull ( sal_Int32  column)
override

◆ updateNumericObject()

void SAL_CALL OResultSet::updateNumericObject ( sal_Int32  column,
const Any &  x,
sal_Int32  scale 
)
override

◆ updateObject()

void SAL_CALL OResultSet::updateObject ( sal_Int32  column,
const Any &  x 
)
override

◆ updateRow()

void SAL_CALL OResultSet::updateRow ( )
override

◆ updateShort()

void SAL_CALL OResultSet::updateShort ( sal_Int32  column,
sal_Int16  x 
)
override

◆ updateString()

void SAL_CALL OResultSet::updateString ( sal_Int32  column,
const OUString &  x 
)
override

◆ updateTime()

void SAL_CALL connectivity::mysqlc::OResultSet::updateTime ( sal_Int32  column,
const css::util::Time &  x 
)
override

◆ updateTimestamp()

void SAL_CALL connectivity::mysqlc::OResultSet::updateTimestamp ( sal_Int32  column,
const css::util::DateTime &  x 
)
override

◆ wasNull()

sal_Bool SAL_CALL OResultSet::wasNull ( )
override

Member Data Documentation

◆ m_aFields

std::vector<OUString> connectivity::mysqlc::OResultSet::m_aFields
private

◆ m_aRows

std::vector<DataFields> connectivity::mysqlc::OResultSet::m_aRows
private

◆ m_aStatement

css::uno::WeakReferenceHelper connectivity::mysqlc::OResultSet::m_aStatement
private

Definition at line 64 of file mysqlc_resultset.hxx.

Referenced by disposing(), and getStatement().

◆ m_bWasNull

bool connectivity::mysqlc::OResultSet::m_bWasNull = false
private

Definition at line 68 of file mysqlc_resultset.hxx.

Referenced by checkNull(), and wasNull().

◆ m_encoding

rtl_TextEncoding connectivity::mysqlc::OResultSet::m_encoding
private

Definition at line 67 of file mysqlc_resultset.hxx.

Referenced by fetchResult(), and getString().

◆ m_nRowCount

sal_Int32 connectivity::mysqlc::OResultSet::m_nRowCount = 0
private

◆ m_nRowPosition

sal_Int32 connectivity::mysqlc::OResultSet::m_nRowPosition = -1
private

◆ m_pMysql

MYSQL* connectivity::mysqlc::OResultSet::m_pMysql = nullptr
private

Definition at line 63 of file mysqlc_resultset.hxx.

Referenced by fetchResult().

◆ m_pResult

MYSQL_RES* connectivity::mysqlc::OResultSet::m_pResult
private

◆ m_xMetaData

css::uno::Reference<css::sdbc::XResultSetMetaData> connectivity::mysqlc::OResultSet::m_xMetaData
private

Definition at line 65 of file mysqlc_resultset.hxx.

Referenced by disposing(), getMetaData(), and OResultSet().


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