LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaccess::OStaticSet Class Reference

#include <StaticSet.hxx>

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

Public Member Functions

 OStaticSet (sal_Int32 i_nMaxRows)
 
virtual void reset (const css::uno::Reference< css::sdbc::XResultSet > &_xDriverSet) override
 
virtual void fillValueRow (ORowSetRow &_rRow, sal_Int32 _nPosition) override
 
virtual css::uno::Any getBookmark () override
 
virtual bool moveToBookmark (const css::uno::Any &bookmark) override
 
virtual sal_Int32 compareBookmarks (const css::uno::Any &first, const css::uno::Any &second) override
 
virtual bool hasOrderedBookmarks () override
 
virtual sal_Int32 hashBookmark (const css::uno::Any &bookmark) override
 
bool isBeforeFirst ()
 
bool isAfterLast ()
 
virtual bool next () override
 
virtual void beforeFirst () override
 
virtual void afterLast () override
 
virtual bool first () override
 
virtual bool last () override
 
virtual sal_Int32 getRow () override
 
virtual bool absolute (sal_Int32 row) override
 
virtual bool previous () override
 
virtual void refreshRow () override
 
virtual bool rowUpdated () override
 
virtual bool rowInserted () override
 
virtual bool rowDeleted () override
 
virtual void insertRow (const ORowSetRow &_rInsertRow, const connectivity::OSQLTable &_xTable) override
 
virtual void deleteRow (const ORowSetRow &_rInsertRow, const connectivity::OSQLTable &_xTable) override
 
- Public Member Functions inherited from dbaccess::OCacheSet
virtual void construct (const css::uno::Reference< css::sdbc::XResultSet > &_xDriverSet, const OUString &i_sRowSetFilter)
 
virtual void fillValueRow (ORowSetRow &_rRow, sal_Int32 _nPosition)
 
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 bool next ()
 
virtual void beforeFirst ()
 
virtual void afterLast ()
 
virtual bool first ()
 
virtual bool last ()
 
virtual sal_Int32 getRow ()
 
virtual bool absolute (sal_Int32 row)
 
virtual bool previous ()
 
virtual void refreshRow ()
 
virtual bool rowUpdated ()
 
virtual bool rowInserted ()
 
virtual bool rowDeleted ()
 
virtual css::uno::Any getBookmark ()=0
 
virtual bool moveToBookmark (const css::uno::Any &bookmark)=0
 
virtual sal_Int32 compareBookmarks (const css::uno::Any &first, const css::uno::Any &second)=0
 
virtual bool hasOrderedBookmarks ()=0
 
virtual sal_Int32 hashBookmark (const css::uno::Any &bookmark)=0
 
virtual void insertRow (const ORowSetRow &_rInsertRow, const connectivity::OSQLTable &_xTable)
 
virtual void updateRow (const ORowSetRow &_rInsertRow, const ORowSetRow &_rOriginalRow, const connectivity::OSQLTable &_xTable)
 
virtual void deleteRow (const ORowSetRow &_rDeleteRow, const connectivity::OSQLTable &_xTable)=0
 
virtual bool isResultSetChanged () const
 
virtual void reset (const css::uno::Reference< css::sdbc::XResultSet > &_xDriverSet)=0
 
virtual void mergeColumnValues (sal_Int32 i_nColumnIndex, ORowSetValueVector::Vector &io_aInsertRow, ORowSetValueVector::Vector &io_aRow, std::vector< sal_Int32 > &o_aChangedColumns)
 
virtual bool columnValuesUpdated (ORowSetValueVector::Vector &o_aCachedRow, const ORowSetValueVector::Vector &i_aRow)
 
virtual bool updateColumnValues (const ORowSetValueVector::Vector &io_aCachedRow, ORowSetValueVector::Vector &io_aRow, const std::vector< sal_Int32 > &i_aChangedColumns)
 
virtual void fillMissingValues (ORowSetValueVector::Vector &io_aRow) const
 

Private Member Functions

bool fetchRow ()
 
void fillAllRows ()
 

Private Attributes

ORowSetMatrix m_aSet
 
ORowSetMatrix::iterator m_aSetIter
 
bool m_bEnd
 

Additional Inherited Members

- Protected Member Functions inherited from dbaccess::OCacheSet
 OCacheSet (sal_Int32 i_nMaxRows)
 
virtual ~OCacheSet () override
 
void fillParameters (const ORowSetRow &_rRow, const connectivity::OSQLTable &_xTable, OUStringBuffer &_sCondition, OUStringBuffer &_sParameter, std::vector< sal_Int32 > &_rOrgValues)
 
void fillTableName (const css::uno::Reference< css::beans::XPropertySet > &_xTable)
 
OUString getIdentifierQuoteString () const
 
- Static Protected Member Functions inherited from dbaccess::OCacheSet
static void setParameter (sal_Int32 nPos, const css::uno::Reference< css::sdbc::XParameters > &_xParameter, const connectivity::ORowSetValue &_rValue, sal_Int32 _nType, sal_Int32 _nScale)
 
- Protected Attributes inherited from dbaccess::OCacheSet
css::uno::Reference< css::sdbc::XResultSet > m_xDriverSet
 
css::uno::Reference< css::sdbc::XRow > m_xDriverRow
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xSetMetaData
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
std::vector< bool > m_aNullable
 
std::vector< bool > m_aSignedFlags
 
std::vector< sal_Int32 > m_aColumnTypes
 
OUString m_aComposedTableName
 
sal_Int32 m_nMaxRows
 
bool m_bInserted
 
bool m_bUpdated
 
bool m_bDeleted
 
OUString m_sRowSetFilter
 

Detailed Description

Definition at line 28 of file StaticSet.hxx.

Constructor & Destructor Documentation

◆ OStaticSet()

dbaccess::OStaticSet::OStaticSet ( sal_Int32  i_nMaxRows)
inlineexplicit

Definition at line 36 of file StaticSet.hxx.

References end, and m_aSet.

Member Function Documentation

◆ absolute()

bool OStaticSet::absolute ( sal_Int32  row)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 178 of file StaticSet.cxx.

References fetchRow(), fillAllRows(), getRow(), i, m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, m_bEnd, dbaccess::OCacheSet::m_bInserted, dbaccess::OCacheSet::m_bUpdated, and o3tl::make_unsigned().

Referenced by moveToBookmark().

◆ afterLast()

void OStaticSet::afterLast ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 142 of file StaticSet.cxx.

References fillAllRows(), m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ beforeFirst()

void OStaticSet::beforeFirst ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 136 of file StaticSet.cxx.

References m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ compareBookmarks()

sal_Int32 OStaticSet::compareBookmarks ( const css::uno::Any &  first,
const css::uno::Any &  second 
)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 56 of file StaticSet.cxx.

◆ deleteRow()

void OStaticSet::deleteRow ( const ORowSetRow _rDeleteRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 259 of file StaticSet.cxx.

References dbaccess::OCacheSet::deleteRow(), m_aSet, m_aSetIter, and dbaccess::OCacheSet::m_bDeleted.

◆ fetchRow()

bool OStaticSet::fetchRow ( )
private

◆ fillAllRows()

void OStaticSet::fillAllRows ( )
private

◆ fillValueRow()

void OStaticSet::fillValueRow ( ORowSetRow _rRow,
sal_Int32  _nPosition 
)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 39 of file StaticSet.cxx.

References m_aSetIter.

◆ first()

bool OStaticSet::first ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 149 of file StaticSet.cxx.

References fetchRow(), m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ getBookmark()

Any OStaticSet::getBookmark ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 45 of file StaticSet.cxx.

References Any, and getRow().

Referenced by insertRow().

◆ getRow()

sal_Int32 OStaticSet::getRow ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 168 of file StaticSet.cxx.

References isAfterLast(), isBeforeFirst(), m_aSet, m_aSetIter, and nPos.

Referenced by absolute(), fetchRow(), fillAllRows(), and getBookmark().

◆ hashBookmark()

sal_Int32 OStaticSet::hashBookmark ( const css::uno::Any &  bookmark)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 69 of file StaticSet.cxx.

◆ hasOrderedBookmarks()

bool OStaticSet::hasOrderedBookmarks ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 64 of file StaticSet.cxx.

◆ insertRow()

void OStaticSet::insertRow ( const ORowSetRow _rInsertRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 247 of file StaticSet.cxx.

References getBookmark(), dbaccess::OCacheSet::insertRow(), m_aSet, m_aSetIter, m_bEnd, and dbaccess::OCacheSet::m_bInserted.

◆ isAfterLast()

bool OStaticSet::isAfterLast ( )

Definition at line 131 of file StaticSet.cxx.

References m_aSet, m_aSetIter, and m_bEnd.

Referenced by getRow(), last(), and next().

◆ isBeforeFirst()

bool OStaticSet::isBeforeFirst ( )

Definition at line 126 of file StaticSet.cxx.

References m_aSet, and m_aSetIter.

Referenced by getRow(), and last().

◆ last()

bool OStaticSet::last ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 159 of file StaticSet.cxx.

References fillAllRows(), isAfterLast(), isBeforeFirst(), m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ moveToBookmark()

bool OStaticSet::moveToBookmark ( const css::uno::Any &  bookmark)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Implements dbaccess::OCacheSet.

Definition at line 50 of file StaticSet.cxx.

References absolute(), dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ next()

bool OStaticSet::next ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 109 of file StaticSet.cxx.

References fetchRow(), isAfterLast(), m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, m_bEnd, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ previous()

bool OStaticSet::previous ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 218 of file StaticSet.cxx.

References m_aSet, m_aSetIter, dbaccess::OCacheSet::m_bDeleted, dbaccess::OCacheSet::m_bInserted, and dbaccess::OCacheSet::m_bUpdated.

◆ refreshRow()

void OStaticSet::refreshRow ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 228 of file StaticSet.cxx.

◆ reset()

void OStaticSet::reset ( const css::uno::Reference< css::sdbc::XResultSet > &  _xDriverSet)
overridevirtual

◆ rowDeleted()

bool OStaticSet::rowDeleted ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 242 of file StaticSet.cxx.

References dbaccess::OCacheSet::m_bDeleted.

◆ rowInserted()

bool OStaticSet::rowInserted ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 237 of file StaticSet.cxx.

References dbaccess::OCacheSet::m_bInserted.

◆ rowUpdated()

bool OStaticSet::rowUpdated ( )
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 232 of file StaticSet.cxx.

References dbaccess::OCacheSet::m_bUpdated.

Member Data Documentation

◆ m_aSet

ORowSetMatrix dbaccess::OStaticSet::m_aSet
private

◆ m_aSetIter

ORowSetMatrix::iterator dbaccess::OStaticSet::m_aSetIter
private

◆ m_bEnd

bool dbaccess::OStaticSet::m_bEnd
private

Definition at line 32 of file StaticSet.hxx.

Referenced by absolute(), fetchRow(), fillAllRows(), insertRow(), isAfterLast(), next(), and reset().


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