LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
dbaccess::ORowSetBase Class Referenceabstract

#include <RowSetBase.hxx>

Inheritance diagram for dbaccess::ORowSetBase:
[legend]
Collaboration diagram for dbaccess::ORowSetBase:
[legend]

Classes

struct  GrantNotifierAccess
 

Public Member Functions

virtual ~ORowSetBase () override
 
virtual void SAL_CALL disposing ()
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual sal_Int32 SAL_CALL findColumn (const OUString &columnName) override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns () 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::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 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 void SAL_CALL execute () override=0
 
virtual void SAL_CALL addRowSetListener (const css::uno::Reference< css::sdbc::XRowSetListener > &listener) override=0
 
virtual void SAL_CALL removeRowSetListener (const css::uno::Reference< css::sdbc::XRowSetListener > &listener) override=0
 
void onDeleteRow (const css::uno::Any &_rBookmark)
 
void onDeletedRow (const css::uno::Any &_rBookmark, sal_Int32 _nPos)
 
void doCancelModification (const GrantNotifierAccess &)
 
bool isModification (const GrantNotifierAccess &)
 
bool isModified (const GrantNotifierAccess &)
 
bool isNew (const GrantNotifierAccess &)
 
bool isInsertRow () const
 
void fireProperty (sal_Int32 _nProperty, bool _bNew, bool _bOld, const GrantNotifierAccess &)
 
void firePropertyChange (sal_Int32 _nPos, const ::connectivity::ORowSetValue &_rNewValue, const GrantNotifierAccess &)
 
- Public Member Functions inherited from cppu::ImplHelper9< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) 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 comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ORowSetBase >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Types

enum class  CursorMoveDirection {
  Forward ,
  Backward ,
  Current ,
  CurrentRefresh
}
 
typedef std::vector< ORowSetDataColumn * > TDataColumns
 

Protected Member Functions

 ORowSetBase (const css::uno::Reference< css::uno::XComponentContext > &_rContext, ::cppu::OBroadcastHelper &_rBHelper, ::osl::Mutex *_pMutex)
 
void firePropertyChange (const ORowSetRow &_rOldRow)
 
void firePropertyChange (sal_Int32 _nPos, const ::connectivity::ORowSetValue &_rNewValue)
 
virtual void fireRowcount ()
 
virtual bool notifyAllListenersCursorBeforeMove (::osl::ResettableMutexGuard &_rGuard)
 
virtual void notifyAllListenersCursorMoved (::osl::ResettableMutexGuard &_rGuard)
 
virtual void doCancelModification ()=0
 
virtual bool isModification ()=0
 
virtual bool isModified ()=0
 
virtual bool isNew ()=0
 
virtual bool isPropertyChangeNotificationEnabled () const
 
void fireProperty (sal_Int32 _nProperty, bool _bNew, bool _bOld)
 
virtual void getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
void positionCache (CursorMoveDirection _ePrepareForDirection)
 positions the cache in preparation of a cursor move More...
 
const connectivity::ORowSetValuegetValue (sal_Int32 columnIndex)
 
const connectivity::ORowSetValueimpl_getValue (sal_Int32 columnIndex)
 
void setCurrentRow (bool _bMoved, bool _bDoNotify, const ORowSetRow &_rOldValues, ::osl::ResettableMutexGuard &_rGuard)
 
void checkPositioningAllowed ()
 
void checkCache ()
 
void movementFailed ()
 
ORowSetRow getOldRow (bool _bWasNew)
 
bool SAL_CALL move (std::function< bool(ORowSetBase *)> const &_aCheckFunctor, std::function< bool(ORowSetCache *)> const &_aMovementFunctor)
 move the cache the position defined by the member functor More...
 
bool isOnFirst ()
 same meaning as isFirst. More...
 
bool isOnLast ()
 same meaning as isLast. More...
 
sal_Int32 impl_getRowCount () const
 returns the current row count More...
 
sal_Int32 impl_getRow ()
 
bool impl_rowDeleted ()
 
- Protected Member Functions inherited from cppu::ImplHelper9< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9 >
 ~ImplHelper9 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from comphelper::OPropertyStateContainer
 OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
css::beans::PropertyState getPropertyStateByHandle (sal_Int32 _nHandle) const
 
void setPropertyToDefaultByHandle (sal_Int32 _nHandle)
 
virtual void getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const=0
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
sal_Int32 getHandleForName (const OUString &_rPropertyName)
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
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
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 

Protected Attributes

::osl::Mutex * m_pMutex
 
::osl::Mutex m_aColumnsMutex
 
css::uno::Any m_aBookmark
 
ORowSetCacheIterator m_aCurrentRow
 
TORowSetOldRowHelperRef m_aOldRow
 
TDataColumns m_aDataColumns
 
connectivity::ORowSetValue m_aEmptyValue
 
::cppu::OWeakObjectm_pMySelf
 
std::shared_ptr< ORowSetCachem_pCache
 
std::unique_ptr< ORowSetDataColumnsm_pColumns
 
::cppu::OBroadcastHelperm_rBHelper
 
css::uno::Reference< css::util::XNumberFormatTypes > m_xNumberFormatTypes
 
std::unique_ptr< OEmptyCollectionm_pEmptyCollection
 
css::uno::Reference< css::uno::XComponentContext > m_aContext
 
::connectivity::SQLError m_aErrors
 
sal_Int32 m_nLastColumnIndex
 
sal_Int32 m_nDeletedPosition
 
sal_Int32 m_nResultSetType
 
sal_Int32 m_nResultSetConcurrency
 
bool m_bClone
 
bool m_bIgnoreResult
 
bool m_bBeforeFirst: 1
 
bool m_bAfterLast: 1
 
bool m_bIsInsertRow: 1
 

Additional Inherited Members

- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ORowSetBase >
static std::mutextheMutex ()
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< ORowSetBase >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 67 of file RowSetBase.hxx.

Member Typedef Documentation

◆ TDataColumns

typedef std::vector<ORowSetDataColumn*> dbaccess::ORowSetBase::TDataColumns
protected

Definition at line 72 of file RowSetBase.hxx.

Member Enumeration Documentation

◆ CursorMoveDirection

enum class dbaccess::ORowSetBase::CursorMoveDirection
strongprotected
Enumerator
Forward 

denotes a cursor move forward

Backward 

denotes a cursor move backwards

Current 

denotes no cursor move at all, but move cache to current row (if it is not there already)

CurrentRefresh 

denotes no cursor move at all, but force the cache to move to current row (and refresh the row)

Definition at line 144 of file RowSetBase.hxx.

Constructor & Destructor Documentation

◆ ORowSetBase()

dbaccess::ORowSetBase::ORowSetBase ( const css::uno::Reference< css::uno::XComponentContext > &  _rContext,
::cppu::OBroadcastHelper _rBHelper,
::osl::Mutex *  _pMutex 
)
protected

◆ ~ORowSetBase()

dbaccess::ORowSetBase::~ORowSetBase ( )
overridevirtual

Definition at line 101 of file RowSetBase.cxx.

References m_aDataColumns, and m_pColumns.

Member Function Documentation

◆ absolute()

sal_Bool SAL_CALL dbaccess::ORowSetBase::absolute ( sal_Int32  row)
overridevirtual

◆ addRowSetListener()

virtual void SAL_CALL dbaccess::ORowSetBase::addRowSetListener ( const css::uno::Reference< css::sdbc::XRowSetListener > &  listener)
overridepure virtual

◆ afterLast()

void SAL_CALL dbaccess::ORowSetBase::afterLast ( )
overridevirtual

◆ beforeFirst()

void SAL_CALL dbaccess::ORowSetBase::beforeFirst ( )
overridevirtual

◆ checkCache()

void dbaccess::ORowSetBase::checkCache ( )
protected

◆ checkPositioningAllowed()

void dbaccess::ORowSetBase::checkPositioningAllowed ( )
protected

◆ clearWarnings()

void SAL_CALL dbaccess::ORowSetBase::clearWarnings ( )
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 1154 of file RowSetBase.cxx.

References m_pCache, and m_pMutex.

◆ compareBookmarks()

sal_Int32 SAL_CALL dbaccess::ORowSetBase::compareBookmarks ( const css::uno::Any &  first,
const css::uno::Any &  second 
)
overridevirtual

Definition at line 505 of file RowSetBase.cxx.

References checkCache(), m_pCache, and m_pMutex.

Referenced by onDeletedRow(), and onDeleteRow().

◆ createArrayHelper()

cppu::IPropertyArrayHelper * dbaccess::ORowSetBase::createArrayHelper ( ) const
overridevirtual

◆ disposing()

void SAL_CALL dbaccess::ORowSetBase::disposing ( )
virtual

◆ doCancelModification() [1/2]

virtual void dbaccess::ORowSetBase::doCancelModification ( )
protectedpure virtual

◆ doCancelModification() [2/2]

void dbaccess::ORowSetBase::doCancelModification ( const GrantNotifierAccess )
inline

Definition at line 328 of file RowSetBase.hxx.

References doCancelModification().

Referenced by doCancelModification().

◆ execute()

virtual void SAL_CALL dbaccess::ORowSetBase::execute ( )
overridepure virtual

◆ findColumn()

sal_Int32 SAL_CALL dbaccess::ORowSetBase::findColumn ( const OUString &  columnName)
overridevirtual

◆ fireProperty() [1/2]

void dbaccess::ORowSetBase::fireProperty ( sal_Int32  _nProperty,
bool  _bNew,
bool  _bOld 
)
protected

◆ fireProperty() [2/2]

void dbaccess::ORowSetBase::fireProperty ( sal_Int32  _nProperty,
bool  _bNew,
bool  _bOld,
const GrantNotifierAccess  
)
inline

Definition at line 333 of file RowSetBase.hxx.

References fireProperty().

◆ firePropertyChange() [1/3]

void dbaccess::ORowSetBase::firePropertyChange ( const ORowSetRow _rOldRow)
protected

◆ firePropertyChange() [2/3]

void dbaccess::ORowSetBase::firePropertyChange ( sal_Int32  _nPos,
const ::connectivity::ORowSetValue _rNewValue 
)
protected

Definition at line 1190 of file RowSetBase.cxx.

References _nPos, and m_aDataColumns.

◆ firePropertyChange() [3/3]

void dbaccess::ORowSetBase::firePropertyChange ( sal_Int32  _nPos,
const ::connectivity::ORowSetValue _rNewValue,
const GrantNotifierAccess  
)
inline

Definition at line 337 of file RowSetBase.hxx.

References _nPos, and firePropertyChange().

◆ fireRowcount()

void dbaccess::ORowSetBase::fireRowcount ( )
protectedvirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 1196 of file RowSetBase.cxx.

Referenced by absolute(), afterLast(), beforeFirst(), move(), moveRelativeToBookmark(), next(), previous(), and relative().

◆ first()

sal_Bool SAL_CALL dbaccess::ORowSetBase::first ( )
overridevirtual

Definition at line 829 of file RowSetBase.cxx.

References dbaccess::ORowSetCache::first(), isOnFirst(), m_bClone, move(), and SAL_INFO.

◆ getArray()

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

Reimplemented in dbaccess::ORowSet.

Definition at line 388 of file RowSetBase.cxx.

References m_pMySelf.

◆ getBinaryStream()

Reference< css::io::XInputStream > SAL_CALL dbaccess::ORowSetBase::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

◆ getBlob()

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

Reimplemented in dbaccess::ORowSet.

Definition at line 378 of file RowSetBase.cxx.

References getValue(), and makeAny().

Referenced by dbaccess::ORowSet::getBlob().

◆ getBookmark()

Any SAL_CALL dbaccess::ORowSetBase::getBookmark ( )
overridevirtual

◆ getBoolean()

sal_Bool SAL_CALL dbaccess::ORowSetBase::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 256 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getBool(), getValue(), and m_pMutex.

◆ getByte()

sal_Int8 SAL_CALL dbaccess::ORowSetBase::getByte ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 262 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getInt8(), getValue(), and m_pMutex.

◆ getBytes()

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

Reimplemented in dbaccess::ORowSet.

Definition at line 298 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getSequence(), getValue(), and m_pMutex.

◆ getCharacterStream()

Reference< css::io::XInputStream > SAL_CALL dbaccess::ORowSetBase::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 359 of file RowSetBase.cxx.

References getBinaryStream().

Referenced by dbaccess::ORowSet::getCharacterStream().

◆ getClob()

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

Reimplemented in dbaccess::ORowSet.

Definition at line 383 of file RowSetBase.cxx.

References getValue(), and makeAny().

◆ getColumns()

Reference< XNameAccess > SAL_CALL dbaccess::ORowSetBase::getColumns ( )
overridevirtual

◆ getDate()

css::util::Date SAL_CALL dbaccess::ORowSetBase::getDate ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 304 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getDate(), getValue(), and m_pMutex.

◆ getDouble()

double SAL_CALL dbaccess::ORowSetBase::getDouble ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 292 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getDouble(), getValue(), and m_pMutex.

◆ getFastPropertyValue()

void SAL_CALL dbaccess::ORowSetBase::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprotectedvirtual

◆ getFloat()

float SAL_CALL dbaccess::ORowSetBase::getFloat ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 286 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getFloat(), getValue(), and m_pMutex.

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL dbaccess::ORowSetBase::getInfoHelper ( )
override

◆ getInt()

sal_Int32 SAL_CALL dbaccess::ORowSetBase::getInt ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 274 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getInt32(), getValue(), and m_pMutex.

◆ getLong()

sal_Int64 SAL_CALL dbaccess::ORowSetBase::getLong ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 280 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getLong(), getValue(), and m_pMutex.

◆ getMetaData()

Reference< XResultSetMetaData > SAL_CALL dbaccess::ORowSetBase::getMetaData ( )
overridevirtual

◆ getObject()

Any SAL_CALL dbaccess::ORowSetBase::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 364 of file RowSetBase.cxx.

References Any, checkCache(), getValue(), m_pMutex, and connectivity::ORowSetValue::makeAny().

◆ getOldRow()

ORowSetRow dbaccess::ORowSetBase::getOldRow ( bool  _bWasNew)
protected

◆ getPropertyDefaultByHandle()

void dbaccess::ORowSetBase::getPropertyDefaultByHandle ( sal_Int32  _nHandle,
css::uno::Any &  _rDefault 
) const
overrideprotectedvirtual

Implements comphelper::OPropertyStateContainer.

Reimplemented in dbaccess::ORowSet.

Definition at line 1312 of file RowSetBase.cxx.

◆ getPropertySetInfo()

virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL dbaccess::ORowSetBase::getPropertySetInfo ( )
inlineoverridevirtual

Reimplemented in dbaccess::ORowSetClone.

Definition at line 234 of file RowSetBase.hxx.

References getInfoHelper().

◆ getRef()

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

Reimplemented in dbaccess::ORowSet.

Definition at line 372 of file RowSetBase.cxx.

References m_pMySelf.

◆ getRow()

sal_Int32 SAL_CALL dbaccess::ORowSetBase::getRow ( )
overridevirtual

Definition at line 845 of file RowSetBase.cxx.

References checkCache(), impl_getRow(), m_bClone, m_pMutex, and SAL_INFO.

◆ getShort()

sal_Int16 SAL_CALL dbaccess::ORowSetBase::getShort ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 268 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getInt16(), getValue(), and m_pMutex.

◆ getStatement()

Reference< XInterface > dbaccess::ORowSetBase::getStatement ( )
overridevirtual

Definition at line 1081 of file RowSetBase.cxx.

◆ getString()

OUString SAL_CALL dbaccess::ORowSetBase::getString ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 250 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getString(), getValue(), and m_pMutex.

◆ getTime()

css::util::Time SAL_CALL dbaccess::ORowSetBase::getTime ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 310 of file RowSetBase.cxx.

◆ getTimestamp()

css::util::DateTime SAL_CALL dbaccess::ORowSetBase::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 316 of file RowSetBase.cxx.

References connectivity::ORowSetValue::getDateTime(), getValue(), and m_pMutex.

◆ getTypes()

Sequence< Type > dbaccess::ORowSetBase::getTypes ( )
overridevirtual

◆ getValue()

const ORowSetValue & dbaccess::ORowSetBase::getValue ( sal_Int32  columnIndex)
protected

◆ getWarnings()

Any SAL_CALL dbaccess::ORowSetBase::getWarnings ( )
overridevirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 1140 of file RowSetBase.cxx.

References Any, m_pCache, and m_pMutex.

◆ hashBookmark()

sal_Int32 SAL_CALL dbaccess::ORowSetBase::hashBookmark ( const css::uno::Any &  bookmark)
overridevirtual

Definition at line 519 of file RowSetBase.cxx.

References checkCache(), m_pCache, and m_pMutex.

◆ hasOrderedBookmarks()

sal_Bool SAL_CALL dbaccess::ORowSetBase::hasOrderedBookmarks ( )
overridevirtual

Definition at line 512 of file RowSetBase.cxx.

References checkCache(), m_pCache, and m_pMutex.

◆ impl_getRow()

sal_Int32 dbaccess::ORowSetBase::impl_getRow ( )
protected

◆ impl_getRowCount()

sal_Int32 dbaccess::ORowSetBase::impl_getRowCount ( ) const
protected

returns the current row count

This function takes into account that we might actually be positioned on a deleted row, so that m_pCache->m_nRowCount does not really reflect the actual count.

@precond Our mutex is locked.

Definition at line 1353 of file RowSetBase.cxx.

References m_pCache, and rowDeleted().

Referenced by dbaccess::ORowSet::fireRowcount(), getFastPropertyValue(), impl_getRow(), isLast(), and positionCache().

◆ impl_getValue()

const ORowSetValue & dbaccess::ORowSetBase::impl_getValue ( sal_Int32  columnIndex)
protected

◆ impl_rowDeleted()

bool dbaccess::ORowSetBase::impl_rowDeleted ( )
protected

◆ isAfterLast()

sal_Bool SAL_CALL dbaccess::ORowSetBase::isAfterLast ( )
overridevirtual

◆ isBeforeFirst()

sal_Bool SAL_CALL dbaccess::ORowSetBase::isBeforeFirst ( )
overridevirtual

◆ isFirst()

sal_Bool SAL_CALL dbaccess::ORowSetBase::isFirst ( )
overridevirtual

◆ isInsertRow()

bool dbaccess::ORowSetBase::isInsertRow ( ) const
inline

◆ isLast()

sal_Bool SAL_CALL dbaccess::ORowSetBase::isLast ( )
overridevirtual

◆ isModification() [1/2]

virtual bool dbaccess::ORowSetBase::isModification ( )
protectedpure virtual

◆ isModification() [2/2]

bool dbaccess::ORowSetBase::isModification ( const GrantNotifierAccess )
inline

Definition at line 329 of file RowSetBase.hxx.

References isModification().

Referenced by isModification().

◆ isModified() [1/2]

virtual bool dbaccess::ORowSetBase::isModified ( )
protectedpure virtual

◆ isModified() [2/2]

bool dbaccess::ORowSetBase::isModified ( const GrantNotifierAccess )
inline

Definition at line 330 of file RowSetBase.hxx.

References isModified().

Referenced by isModified().

◆ isNew() [1/2]

virtual bool dbaccess::ORowSetBase::isNew ( )
protectedpure virtual

◆ isNew() [2/2]

bool dbaccess::ORowSetBase::isNew ( const GrantNotifierAccess )
inline

Definition at line 331 of file RowSetBase.hxx.

References isNew().

Referenced by isNew().

◆ isOnFirst()

bool dbaccess::ORowSetBase::isOnFirst ( )
protected

same meaning as isFirst.

Only need by mem_fun

Returns
<TRUE> if so.

Definition at line 646 of file RowSetBase.cxx.

References isFirst().

Referenced by first().

◆ isOnLast()

bool dbaccess::ORowSetBase::isOnLast ( )
protected

same meaning as isLast.

Only need by mem_fun

Returns
<TRUE> if so.

Definition at line 672 of file RowSetBase.cxx.

References isLast().

Referenced by last().

◆ isPropertyChangeNotificationEnabled()

bool dbaccess::ORowSetBase::isPropertyChangeNotificationEnabled ( ) const
protectedvirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 1209 of file RowSetBase.cxx.

Referenced by firePropertyChange().

◆ last()

sal_Bool SAL_CALL dbaccess::ORowSetBase::last ( )
overridevirtual

Definition at line 837 of file RowSetBase.cxx.

References isOnLast(), dbaccess::ORowSetCache::last(), m_bClone, move(), and SAL_INFO.

◆ move()

bool SAL_CALL dbaccess::ORowSetBase::move ( std::function< bool(ORowSetBase *)> const &  _aCheckFunctor,
std::function< bool(ORowSetCache *)> const &  _aMovementFunctor 
)
protected

move the cache the position defined by the member functor

Parameters
_aCheckFunctorReturn <TRUE> when we already stand on the row we want to.
_aMovementFunctorThe method used to move.
Returns
<TRUE> if movement was successful.

Definition at line 782 of file RowSetBase.cxx.

References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, checkPositioningAllowed(), doCancelModification(), dbaccess::ORowSetNotifier::fire(), fireRowcount(), getOldRow(), m_bClone, m_pCache, m_pMutex, m_rBHelper, movementFailed(), notifyAllListenersCursorBeforeMove(), rowDeleted(), SAL_INFO, and setCurrentRow().

Referenced by first(), and last().

◆ movementFailed()

void dbaccess::ORowSetBase::movementFailed ( )
protected

◆ moveRelativeToBookmark()

sal_Bool SAL_CALL dbaccess::ORowSetBase::moveRelativeToBookmark ( const css::uno::Any &  bookmark,
sal_Int32  rows 
)
overridevirtual

◆ moveToBookmark()

sal_Bool SAL_CALL dbaccess::ORowSetBase::moveToBookmark ( const css::uno::Any &  bookmark)
overridevirtual

◆ next()

sal_Bool SAL_CALL dbaccess::ORowSetBase::next ( )
overridevirtual

◆ notifyAllListenersCursorBeforeMove()

bool dbaccess::ORowSetBase::notifyAllListenersCursorBeforeMove ( ::osl::ResettableMutexGuard &  _rGuard)
protectedvirtual

◆ notifyAllListenersCursorMoved()

void dbaccess::ORowSetBase::notifyAllListenersCursorMoved ( ::osl::ResettableMutexGuard &  _rGuard)
protectedvirtual

Reimplemented in dbaccess::ORowSet.

Definition at line 1205 of file RowSetBase.cxx.

Referenced by setCurrentRow().

◆ onDeletedRow()

void dbaccess::ORowSetBase::onDeletedRow ( const css::uno::Any &  _rBookmark,
sal_Int32  _nPos 
)

◆ onDeleteRow()

void dbaccess::ORowSetBase::onDeleteRow ( const css::uno::Any &  _rBookmark)

◆ positionCache()

void dbaccess::ORowSetBase::positionCache ( CursorMoveDirection  _ePrepareForDirection)
protected

positions the cache in preparation of a cursor move

Normally, the cache is simply moved to our bookmark (m_aBookmark). If however the current row is deleted, then the cache is properly positioned for a following cursor movement in the given direction.

Parameters
_ePrepareForDirectionthe direction into which the cursor should be moved after the call. If we're currently not on a deleted row, this parameter is ignored, since in this case the cache is simply moved to m_aBookmark. If, however, we're currently on a deleted row, this is used to properly position the cache using <member>m_nDeletedPosition</member>.
In this case, MOVE_NONE(_REFRESH) is not supported. This is because the deleted row (to which the RowSet currently points to) is not present in the cache. So, you cannot move the cache to this row.

Definition at line 1221 of file RowSetBase.cxx.

References Backward, Current, CurrentRefresh, Forward, impl_getRowCount(), isAfterLast(), isBeforeFirst(), m_aBookmark, m_bAfterLast, m_bBeforeFirst, m_bClone, m_nDeletedPosition, m_pCache, and SAL_INFO.

Referenced by dbaccess::ORowSet::deleteRow(), getBinaryStream(), impl_getRow(), impl_getValue(), dbaccess::ORowSet::implCancelRowUpdates(), isFirst(), isLast(), dbaccess::ORowSet::moveToCurrentRow(), dbaccess::ORowSet::moveToInsertRow(), next(), onDeleteRow(), previous(), refreshRow(), and relative().

◆ previous()

sal_Bool SAL_CALL dbaccess::ORowSetBase::previous ( )
overridevirtual

◆ queryInterface()

Any dbaccess::ORowSetBase::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ refreshRow()

void SAL_CALL dbaccess::ORowSetBase::refreshRow ( )
overridevirtual

◆ relative()

sal_Bool SAL_CALL dbaccess::ORowSetBase::relative ( sal_Int32  rows)
overridevirtual

◆ removeRowSetListener()

virtual void SAL_CALL dbaccess::ORowSetBase::removeRowSetListener ( const css::uno::Reference< css::sdbc::XRowSetListener > &  listener)
overridepure virtual

◆ rowDeleted()

sal_Bool SAL_CALL dbaccess::ORowSetBase::rowDeleted ( )
overridevirtual

◆ rowInserted()

sal_Bool SAL_CALL dbaccess::ORowSetBase::rowInserted ( )
overridevirtual

Definition at line 1115 of file RowSetBase.cxx.

References checkCache(), impl_rowDeleted(), m_pCache, and m_pMutex.

◆ rowUpdated()

sal_Bool SAL_CALL dbaccess::ORowSetBase::rowUpdated ( )
overridevirtual

Definition at line 1104 of file RowSetBase.cxx.

References checkCache(), impl_rowDeleted(), m_pCache, and m_pMutex.

◆ setCurrentRow()

void dbaccess::ORowSetBase::setCurrentRow ( bool  _bMoved,
bool  _bDoNotify,
const ORowSetRow _rOldValues,
::osl::ResettableMutexGuard &  _rGuard 
)
protected

◆ wasNull()

sal_Bool SAL_CALL dbaccess::ORowSetBase::wasNull ( )
overridevirtual

Member Data Documentation

◆ m_aBookmark

css::uno::Any dbaccess::ORowSetBase::m_aBookmark
protected

◆ m_aColumnsMutex

::osl::Mutex dbaccess::ORowSetBase::m_aColumnsMutex
protected

◆ m_aContext

css::uno::Reference< css::uno::XComponentContext> dbaccess::ORowSetBase::m_aContext
protected

◆ m_aCurrentRow

ORowSetCacheIterator dbaccess::ORowSetBase::m_aCurrentRow
protected

◆ m_aDataColumns

TDataColumns dbaccess::ORowSetBase::m_aDataColumns
protected

◆ m_aEmptyValue

connectivity::ORowSetValue dbaccess::ORowSetBase::m_aEmptyValue
protected

Definition at line 82 of file RowSetBase.hxx.

Referenced by impl_getValue().

◆ m_aErrors

::connectivity::SQLError dbaccess::ORowSetBase::m_aErrors
protected

Definition at line 93 of file RowSetBase.hxx.

◆ m_aOldRow

TORowSetOldRowHelperRef dbaccess::ORowSetBase::m_aOldRow
protected

◆ m_bAfterLast

bool dbaccess::ORowSetBase::m_bAfterLast
protected

◆ m_bBeforeFirst

bool dbaccess::ORowSetBase::m_bBeforeFirst
protected

◆ m_bClone

bool dbaccess::ORowSetBase::m_bClone
protected

◆ m_bIgnoreResult

bool dbaccess::ORowSetBase::m_bIgnoreResult
protected

◆ m_bIsInsertRow

bool dbaccess::ORowSetBase::m_bIsInsertRow
protected

◆ m_nDeletedPosition

sal_Int32 dbaccess::ORowSetBase::m_nDeletedPosition
protected

Definition at line 96 of file RowSetBase.hxx.

Referenced by impl_getRow(), isFirst(), isLast(), onDeletedRow(), onDeleteRow(), and positionCache().

◆ m_nLastColumnIndex

sal_Int32 dbaccess::ORowSetBase::m_nLastColumnIndex
protected

◆ m_nResultSetConcurrency

sal_Int32 dbaccess::ORowSetBase::m_nResultSetConcurrency
protected

◆ m_nResultSetType

sal_Int32 dbaccess::ORowSetBase::m_nResultSetType
protected

◆ m_pCache

std::shared_ptr<ORowSetCache> dbaccess::ORowSetBase::m_pCache
protected

Definition at line 85 of file RowSetBase.hxx.

Referenced by absolute(), afterLast(), beforeFirst(), checkCache(), checkPositioningAllowed(), dbaccess::ORowSet::checkUpdateIterator(), clearWarnings(), compareBookmarks(), dbaccess::ORowSet::deleteRow(), dbaccess::ORowSet::deleteRows(), disposing(), dbaccess::ORowSet::doCancelModification(), dbaccess::ORowSet::execute_NoApprove_NoNewConn(), dbaccess::ORowSet::fireRowcount(), dbaccess::ORowSet::freeResources(), dbaccess::ORowSet::getBinaryStream(), getBinaryStream(), dbaccess::ORowSet::getBlob(), dbaccess::ORowSet::getCharacterStream(), dbaccess::ORowSet::getFastPropertyValue(), getFastPropertyValue(), dbaccess::ORowSet::getInsertValue(), getMetaData(), getWarnings(), hashBookmark(), hasOrderedBookmarks(), impl_getRow(), impl_getRowCount(), impl_getValue(), dbaccess::ORowSet::impl_prepareAndExecute_throw(), dbaccess::ORowSet::impl_rebuild_throw(), dbaccess::ORowSet::implCancelRowUpdates(), dbaccess::ORowSet::insertRow(), isFirst(), isLast(), move(), movementFailed(), moveRelativeToBookmark(), moveToBookmark(), dbaccess::ORowSet::moveToCurrentRow(), dbaccess::ORowSet::moveToInsertRow(), next(), onDeletedRow(), onDeleteRow(), dbaccess::ORowSetClone::ORowSetClone(), positionCache(), previous(), dbaccess::ORowSet::refreshRow(), refreshRow(), relative(), rowInserted(), rowUpdated(), setCurrentRow(), dbaccess::ORowSet::setFastPropertyValue_NoBroadcast(), dbaccess::ORowSet::updateCharacterStream(), dbaccess::ORowSet::updateNull(), dbaccess::ORowSet::updateNumericObject(), dbaccess::ORowSet::updateObject(), dbaccess::ORowSet::updateRow(), dbaccess::ORowSet::updateValue(), dbaccess::ORowSet::wasNull(), and wasNull().

◆ m_pColumns

std::unique_ptr<ORowSetDataColumns> dbaccess::ORowSetBase::m_pColumns
protected

◆ m_pEmptyCollection

std::unique_ptr<OEmptyCollection> dbaccess::ORowSetBase::m_pEmptyCollection
protected

Definition at line 90 of file RowSetBase.hxx.

Referenced by getColumns().

◆ m_pMutex

::osl::Mutex* dbaccess::ORowSetBase::m_pMutex
protected

Definition at line 73 of file RowSetBase.hxx.

Referenced by absolute(), afterLast(), beforeFirst(), clearWarnings(), compareBookmarks(), dbaccess::ORowSet::createResultSet(), dbaccess::ORowSet::deleteRow(), dbaccess::ORowSet::deleteRows(), disposing(), dbaccess::ORowSetClone::disposing(), dbaccess::ORowSet::getBinaryStream(), getBinaryStream(), getBookmark(), dbaccess::ORowSet::getBoolean(), getBoolean(), dbaccess::ORowSet::getByte(), getByte(), dbaccess::ORowSet::getBytes(), getBytes(), dbaccess::ORowSet::getCharacterStream(), dbaccess::ORowSet::getDate(), getDate(), dbaccess::ORowSet::getDouble(), getDouble(), dbaccess::ORowSet::getFloat(), getFloat(), dbaccess::ORowSet::getInt(), getInt(), dbaccess::ORowSet::getLong(), getLong(), dbaccess::ORowSet::getObject(), getObject(), dbaccess::ORowSet::getParameters(), getRow(), dbaccess::ORowSet::getShort(), getShort(), dbaccess::ORowSet::getString(), getString(), dbaccess::ORowSet::getTime(), dbaccess::ORowSet::getTimestamp(), getTimestamp(), getWarnings(), hashBookmark(), hasOrderedBookmarks(), dbaccess::ORowSet::implCancelRowUpdates(), dbaccess::ORowSet::insertRow(), isAfterLast(), isBeforeFirst(), isFirst(), isLast(), move(), moveRelativeToBookmark(), moveToBookmark(), dbaccess::ORowSet::moveToCurrentRow(), dbaccess::ORowSet::moveToInsertRow(), next(), onDeletedRow(), onDeleteRow(), previous(), refreshRow(), relative(), dbaccess::ORowSetClone::rowDeleted(), rowDeleted(), rowInserted(), rowUpdated(), dbaccess::ORowSet::updateBinaryStream(), dbaccess::ORowSet::updateCharacterStream(), dbaccess::ORowSet::updateNull(), dbaccess::ORowSet::updateNumericObject(), dbaccess::ORowSet::updateObject(), dbaccess::ORowSet::updateRow(), dbaccess::ORowSet::updateValue(), dbaccess::ORowSet::wasNull(), and wasNull().

◆ m_pMySelf

::cppu::OWeakObject* dbaccess::ORowSetBase::m_pMySelf
protected

◆ m_rBHelper

::cppu::OBroadcastHelper& dbaccess::ORowSetBase::m_rBHelper
protected

◆ m_xNumberFormatTypes

css::uno::Reference< css::util::XNumberFormatTypes> dbaccess::ORowSetBase::m_xNumberFormatTypes
protected

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