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

#include <KeySet.hxx>

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

Public Member Functions

 OKeySet (connectivity::OSQLTable _aTable, OUString _sUpdateTableName, const css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > &_xComposer, const ORowSetValueVector &_aParameterValueForCache, sal_Int32 i_nMaxRows, sal_Int32 &o_nRowCount)
 
virtual void construct (const css::uno::Reference< css::sdbc::XResultSet > &_xDriverSet, const OUString &i_sRowSetFilter) override
 
virtual void reset (const css::uno::Reference< css::sdbc::XResultSet > &_xDriverSet) 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 bool rowUpdated () override
 
virtual bool rowInserted () override
 
virtual bool rowDeleted () 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
 
void ensureRowForData ()
 
virtual void refreshRow () 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
 
virtual void updateRow (const ORowSetRow &_rInsertRow, const ORowSetRow &_rOriginalRow, const connectivity::OSQLTable &_xTable) override
 
virtual void deleteRow (const ORowSetRow &_rInsertRow, const connectivity::OSQLTable &_xTable) override
 
virtual void insertRow (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
 

Protected Types

typedef std::map< std::vector< bool >, css::uno::Reference< css::sdbc::XPreparedStatement > > vStatements_t
 

Protected Member Functions

void copyRowValue (const ORowSetRow &_rInsertRow, ORowSetRow const &_rKeyRow, sal_Int32 i_nBookmark)
 copies the values from the insert row into the key row More...
 
bool fillAllRows ()
 
bool fetchRow ()
 
void invalidateRow ()
 
void initColumns ()
 
void findTableColumnsMatching_throw (const css::uno::Any &i_aTable, const OUString &i_rUpdateTableName, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &i_xMeta, const css::uno::Reference< css::container::XNameAccess > &i_xQueryColumns, std::unique_ptr< SelectColumnsMetaData > const &o_pKeyColumnNames)
 
void ensureStatement ()
 
virtual void makeNewStatement ()
 
OUStringBuffer createKeyFilter ()
 
bool doTryRefetch_throw ()
 
void tryRefetch (const ORowSetRow &_rInsertRow, bool bRefetch)
 
void executeUpdate (const ORowSetRow &_rInsertRow, const ORowSetRow &_rOriginalRow, const OUString &i_sSQL, std::u16string_view i_sTableName, const std::vector< sal_Int32 > &_aIndexColumnPositions=std::vector< sal_Int32 >())
 
void executeInsert (const ORowSetRow &_rInsertRow, const OUString &i_sSQL, std::u16string_view i_sTableName, bool bRefetch=false)
 
void executeStatement (OUStringBuffer &io_aFilter, css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &io_xAnalyzer)
 
virtual ~OKeySet () override
 
- 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

static void impl_convertValue_throw (const ORowSetRow &_rInsertRow, const SelectColumnDescription &i_aMetaData)
 
static void setOneKeyColumnParameter (sal_Int32 &nPos, const css::uno::Reference< css::sdbc::XParameters > &_xParameter, const connectivity::ORowSetValue &_rValue, sal_Int32 _nType, sal_Int32 _nScale)
 
- 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

OKeySetMatrix m_aKeyMap
 
OKeySetMatrix::iterator m_aKeyIter
 
std::vector< OUString > m_aAutoColumns
 
OUpdatedParameter m_aUpdatedParameter
 
rtl::Reference< ORowSetValueVectorm_aParameterValueForCache
 
std::unique_ptr< SelectColumnsMetaDatam_pKeyColumnNames
 
std::unique_ptr< SelectColumnsMetaDatam_pColumnNames
 
std::unique_ptr< SelectColumnsMetaDatam_pParameterNames
 
std::unique_ptr< SelectColumnsMetaDatam_pForeignColumnNames
 
connectivity::OSQLTable m_xTable
 
vStatements_t m_vStatements
 
css::uno::Reference< css::sdbc::XPreparedStatement > m_xStatement
 
css::uno::Reference< css::sdbc::XResultSet > m_xSet
 
css::uno::Reference< css::sdbc::XRow > m_xRow
 
css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > m_xComposer
 
const OUString m_sUpdateTableName
 
std::vector< OUString > m_aFilterColumns
 
sal_Int32 & m_rRowCount
 
bool m_bRowCountFinal
 
- 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 75 of file KeySet.hxx.

Member Typedef Documentation

◆ vStatements_t

typedef std::map< std::vector<bool>, css::uno::Reference< css::sdbc::XPreparedStatement > > dbaccess::OKeySet::vStatements_t
protected

Definition at line 96 of file KeySet.hxx.

Constructor & Destructor Documentation

◆ ~OKeySet()

OKeySet::~OKeySet ( )
overrideprotectedvirtual

Definition at line 123 of file KeySet.cxx.

References m_vStatements, m_xComposer, and m_xSet.

◆ OKeySet()

dbaccess::OKeySet::OKeySet ( connectivity::OSQLTable  _aTable,
OUString  _sUpdateTableName,
const css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > &  _xComposer,
const ORowSetValueVector _aParameterValueForCache,
sal_Int32  i_nMaxRows,
sal_Int32 &  o_nRowCount 
)

Member Function Documentation

◆ absolute()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1014 of file KeySet.cxx.

References i.

Referenced by OKeySet().

◆ afterLast()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 966 of file KeySet.cxx.

Referenced by OKeySet().

◆ beforeFirst()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 959 of file KeySet.cxx.

Referenced by OKeySet().

◆ compareBookmarks()

sal_Int32 OKeySet::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 421 of file KeySet.cxx.

Referenced by OKeySet().

◆ construct()

void OKeySet::construct ( const css::uno::Reference< css::sdbc::XResultSet > &  _xDriverSet,
const OUString &  i_sRowSetFilter 
)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 277 of file KeySet.cxx.

References Any, aSeq, dbaccess::getColumnPositions(), m_xConnection, SERVICE_NAME_SINGLESELECTQUERYCOMPOSER, and xFactory.

Referenced by OKeySet().

◆ copyRowValue()

void OKeySet::copyRowValue ( const ORowSetRow _rInsertRow,
ORowSetRow const &  _rKeyRow,
sal_Int32  i_nBookmark 
)
protected

copies the values from the insert row into the key row

Parameters
_rInsertRowthe row which was inserted
_rKeyRowThe current key row of the row set.
i_nBookmarkThe bookmark is used to update the parameter

Definition at line 789 of file KeySet.cxx.

References i, and connectivity::ORowSetValue::setSigned().

◆ createKeyFilter()

OUStringBuffer OKeySet::createKeyFilter ( )
protected

Definition at line 247 of file KeySet.cxx.

References m_xConnection.

◆ deleteRow()

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

Implements dbaccess::OCacheSet.

Definition at line 829 of file KeySet.cxx.

References columnName, i, m_xConnection, and SAL_WARN.

Referenced by OKeySet().

◆ doTryRefetch_throw()

bool OKeySet::doTryRefetch_throw ( )
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 1082 of file KeySet.cxx.

References nPos.

◆ ensureRowForData()

void OKeySet::ensureRowForData ( )
inline
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 1237 of file KeySet.cxx.

References m_xRow, and throwSQLException().

Referenced by OKeySet().

◆ ensureStatement()

void OKeySet::ensureStatement ( )
protected

Definition at line 332 of file KeySet.cxx.

◆ executeInsert()

void OKeySet::executeInsert ( const ORowSetRow _rInsertRow,
const OUString &  i_sSQL,
std::u16string_view  i_sTableName,
bool  bRefetch = false 
)
protected

Definition at line 629 of file KeySet.cxx.

References Any, columnName, Exception, i, m_xConnection, nPos, SAL_WARN, sCatalog, sQuote, and sSchema.

◆ executeStatement()

void OKeySet::executeStatement ( OUStringBuffer &  io_aFilter,
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &  io_xAnalyzer 
)
protected

◆ executeUpdate()

void OKeySet::executeUpdate ( const ORowSetRow _rInsertRow,
const ORowSetRow _rOriginalRow,
const OUString &  i_sSQL,
std::u16string_view  i_sTableName,
const std::vector< sal_Int32 > &  _aIndexColumnPositions = std::vector<sal_Int32>() 
)
protected

Definition at line 535 of file KeySet.cxx.

References columnName, i, m_xConnection, and nPos.

◆ fetchRow()

bool OKeySet::fetchRow ( )
protected

◆ fillAllRows()

bool OKeySet::fillAllRows ( )
protected

Definition at line 1213 of file KeySet.cxx.

◆ findTableColumnsMatching_throw()

void OKeySet::findTableColumnsMatching_throw ( const css::uno::Any &  i_aTable,
const OUString &  i_rUpdateTableName,
const css::uno::Reference< css::sdbc::XDatabaseMetaData > &  i_xMeta,
const css::uno::Reference< css::container::XNameAccess > &  i_xQueryColumns,
std::unique_ptr< SelectColumnsMetaData > const &  o_pKeyColumnNames 
)
protected

◆ first()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 974 of file KeySet.cxx.

Referenced by OKeySet().

◆ getArray()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1355 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getBinaryStream()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1319 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getBlob()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1343 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getBookmark()

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

Implements dbaccess::OCacheSet.

Definition at line 406 of file KeySet.cxx.

References Any.

Referenced by OKeySet().

◆ getBoolean()

sal_Bool SAL_CALL OKeySet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1253 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getByte()

sal_Int8 SAL_CALL OKeySet::getByte ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1259 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getBytes()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1295 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getCharacterStream()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1325 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getClob()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1349 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getDate()

css::util::Date SAL_CALL OKeySet::getDate ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1301 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getDouble()

double SAL_CALL OKeySet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1289 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getFloat()

float SAL_CALL OKeySet::getFloat ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1283 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getInt()

sal_Int32 SAL_CALL OKeySet::getInt ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1271 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getLong()

sal_Int64 SAL_CALL OKeySet::getLong ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1277 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getObject()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1331 of file KeySet.cxx.

References Any, and m_xRow.

Referenced by OKeySet().

◆ getRef()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1337 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getRow()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1006 of file KeySet.cxx.

Referenced by OKeySet().

◆ getShort()

sal_Int16 SAL_CALL OKeySet::getShort ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1265 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getString()

OUString SAL_CALL OKeySet::getString ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1247 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getTime()

css::util::Time SAL_CALL OKeySet::getTime ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1307 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ getTimestamp()

css::util::DateTime SAL_CALL OKeySet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1313 of file KeySet.cxx.

References m_xRow.

Referenced by OKeySet().

◆ hashBookmark()

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

Implements dbaccess::OCacheSet.

Definition at line 435 of file KeySet.cxx.

Referenced by OKeySet().

◆ hasOrderedBookmarks()

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

Implements dbaccess::OCacheSet.

Definition at line 430 of file KeySet.cxx.

Referenced by OKeySet().

◆ impl_convertValue_throw()

void OKeySet::impl_convertValue_throw ( const ORowSetRow _rInsertRow,
const SelectColumnDescription i_aMetaData 
)
staticprotected

◆ initColumns()

void OKeySet::initColumns ( )
protected

Definition at line 136 of file KeySet.cxx.

References m_xConnection.

◆ insertRow()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 593 of file KeySet.cxx.

References columnName, DBA_RES, m_xConnection, and u.

Referenced by OKeySet().

◆ invalidateRow()

void OKeySet::invalidateRow ( )
protected

Definition at line 400 of file KeySet.cxx.

References m_xRow.

◆ isAfterLast()

bool OKeySet::isAfterLast ( )

Definition at line 954 of file KeySet.cxx.

Referenced by OKeySet().

◆ isBeforeFirst()

bool OKeySet::isBeforeFirst ( )

Definition at line 949 of file KeySet.cxx.

Referenced by OKeySet().

◆ last()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 992 of file KeySet.cxx.

Referenced by OKeySet().

◆ makeNewStatement()

void OKeySet::makeNewStatement ( )
protectedvirtual

Definition at line 355 of file KeySet.cxx.

References m_xConnection, SERVICE_NAME_SINGLESELECTQUERYCOMPOSER, and xFactory.

◆ moveToBookmark()

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

Implements dbaccess::OCacheSet.

Definition at line 413 of file KeySet.cxx.

Referenced by OKeySet().

◆ next()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 921 of file KeySet.cxx.

Referenced by OKeySet().

◆ previous()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1071 of file KeySet.cxx.

Referenced by OKeySet().

◆ refreshRow()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1122 of file KeySet.cxx.

References m_xRow, and SAL_WARN.

Referenced by OKeySet().

◆ reset()

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

Implements dbaccess::OCacheSet.

Definition at line 322 of file KeySet.cxx.

Referenced by OKeySet().

◆ rowDeleted()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1371 of file KeySet.cxx.

Referenced by OKeySet().

◆ rowInserted()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1366 of file KeySet.cxx.

Referenced by OKeySet().

◆ rowUpdated()

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

Reimplemented from dbaccess::OCacheSet.

Definition at line 1361 of file KeySet.cxx.

Referenced by OKeySet().

◆ setOneKeyColumnParameter()

void OKeySet::setOneKeyColumnParameter ( sal_Int32 &  nPos,
const css::uno::Reference< css::sdbc::XParameters > &  _xParameter,
const connectivity::ORowSetValue _rValue,
sal_Int32  _nType,
sal_Int32  _nScale 
)
staticprotected

Definition at line 234 of file KeySet.cxx.

References connectivity::ORowSetValue::isNull(), and nPos.

◆ tryRefetch()

void OKeySet::tryRefetch ( const ORowSetRow _rInsertRow,
bool  bRefetch 
)
protected

Definition at line 770 of file KeySet.cxx.

References Exception.

◆ updateRow()

void OKeySet::updateRow ( const ORowSetRow _rInsertRow,
const ORowSetRow _rOriginalRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Reimplemented from dbaccess::OCacheSet.

Definition at line 441 of file KeySet.cxx.

References columnName, DBA_RES, m_xConnection, and u.

Referenced by OKeySet().

◆ wasNull()

sal_Bool SAL_CALL OKeySet::wasNull ( )
overridevirtual

Reimplemented from dbaccess::OCacheSet.

Definition at line 1228 of file KeySet.cxx.

References m_xRow, and throwGenericSQLException().

Referenced by OKeySet().

Member Data Documentation

◆ m_aAutoColumns

std::vector< OUString > dbaccess::OKeySet::m_aAutoColumns
protected

Definition at line 81 of file KeySet.hxx.

◆ m_aFilterColumns

std::vector< OUString > dbaccess::OKeySet::m_aFilterColumns
protected

Definition at line 103 of file KeySet.hxx.

◆ m_aKeyIter

OKeySetMatrix::iterator dbaccess::OKeySet::m_aKeyIter
protected

Definition at line 79 of file KeySet.hxx.

◆ m_aKeyMap

OKeySetMatrix dbaccess::OKeySet::m_aKeyMap
protected

Definition at line 78 of file KeySet.hxx.

◆ m_aParameterValueForCache

rtl::Reference<ORowSetValueVector> dbaccess::OKeySet::m_aParameterValueForCache
protected

Definition at line 84 of file KeySet.hxx.

◆ m_aUpdatedParameter

OUpdatedParameter dbaccess::OKeySet::m_aUpdatedParameter
protected

Definition at line 83 of file KeySet.hxx.

◆ m_bRowCountFinal

bool dbaccess::OKeySet::m_bRowCountFinal
protected

Definition at line 106 of file KeySet.hxx.

◆ m_pColumnNames

std::unique_ptr<SelectColumnsMetaData> dbaccess::OKeySet::m_pColumnNames
protected

Definition at line 86 of file KeySet.hxx.

◆ m_pForeignColumnNames

std::unique_ptr<SelectColumnsMetaData> dbaccess::OKeySet::m_pForeignColumnNames
protected

Definition at line 88 of file KeySet.hxx.

◆ m_pKeyColumnNames

std::unique_ptr<SelectColumnsMetaData> dbaccess::OKeySet::m_pKeyColumnNames
protected

Definition at line 85 of file KeySet.hxx.

◆ m_pParameterNames

std::unique_ptr<SelectColumnsMetaData> dbaccess::OKeySet::m_pParameterNames
protected

Definition at line 87 of file KeySet.hxx.

◆ m_rRowCount

sal_Int32& dbaccess::OKeySet::m_rRowCount
protected

Definition at line 104 of file KeySet.hxx.

◆ m_sUpdateTableName

const OUString dbaccess::OKeySet::m_sUpdateTableName
protected

Definition at line 102 of file KeySet.hxx.

◆ m_vStatements

vStatements_t dbaccess::OKeySet::m_vStatements
protected

Definition at line 97 of file KeySet.hxx.

Referenced by ~OKeySet().

◆ m_xComposer

css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > dbaccess::OKeySet::m_xComposer
protected

Definition at line 101 of file KeySet.hxx.

Referenced by ~OKeySet().

◆ m_xRow

css::uno::Reference< css::sdbc::XRow> dbaccess::OKeySet::m_xRow
protected

Definition at line 100 of file KeySet.hxx.

◆ m_xSet

css::uno::Reference< css::sdbc::XResultSet> dbaccess::OKeySet::m_xSet
protected

Definition at line 99 of file KeySet.hxx.

Referenced by ~OKeySet().

◆ m_xStatement

css::uno::Reference< css::sdbc::XPreparedStatement> dbaccess::OKeySet::m_xStatement
protected

Definition at line 98 of file KeySet.hxx.

◆ m_xTable

connectivity::OSQLTable dbaccess::OKeySet::m_xTable
protected

Definition at line 89 of file KeySet.hxx.


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