LibreOffice Module dbaccess (master) 1
|
#include <CacheSet.hxx>
Public Member Functions | |
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 Member Functions | |
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 | setParameter (sal_Int32 nPos, const css::uno::Reference< css::sdbc::XParameters > &_xParameter, const connectivity::ORowSetValue &_rValue, sal_Int32 _nType, sal_Int32 _nScale) |
Protected Attributes | |
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 |
Definition at line 35 of file CacheSet.hxx.
|
explicitprotected |
Definition at line 56 of file CacheSet.cxx.
|
overrideprotectedvirtual |
Definition at line 113 of file CacheSet.cxx.
References Exception, m_xConnection, m_xDriverRow, m_xDriverSet, m_xSetMetaData, SAL_WARN, and TOOLS_WARN_EXCEPTION.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 524 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 501 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 495 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
Definition at line 566 of file CacheSet.cxx.
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
|
virtual |
Reimplemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, and dbaccess::WrappedResultSet.
Definition at line 74 of file CacheSet.cxx.
References i, m_aColumnTypes, m_aNullable, m_aSignedFlags, m_sRowSetFilter, m_xConnection, m_xDriverRow, m_xDriverSet, m_xSetMetaData, and nCount.
Referenced by dbaccess::OBookmarkSet::construct(), dbaccess::OptimisticSet::construct(), dbaccess::WrappedResultSet::construct(), and dbaccess::OStaticSet::reset().
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
Definition at line 313 of file CacheSet.cxx.
References fillParameters(), fillTableName(), comphelper::getBOOL(), i, m_aComposedTableName, m_bDeleted, m_xConnection, m_xSetMetaData, PROPERTY_ISPRIMARYKEYINDEX(), PROPERTY_ISUNIQUE(), and setParameter().
Referenced by dbaccess::OStaticSet::deleteRow().
|
virtual |
Definition at line 576 of file CacheSet.cxx.
|
protected |
Definition at line 190 of file CacheSet.cxx.
References comphelper::getBOOL(), getIdentifierQuoteString(), getPrimaryKeyColumns_throw(), i, m_xSetMetaData, PROPERTY_ISPRIMARYKEYINDEX(), and PROPERTY_ISUNIQUE().
Referenced by deleteRow(), and updateRow().
|
protected |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 133 of file CacheSet.cxx.
References composeTableName(), comphelper::getString(), m_aComposedTableName, m_xConnection, PROPERTY_CATALOGNAME(), PROPERTY_NAME(), and PROPERTY_SCHEMANAME().
Referenced by deleteRow(), insertRow(), and updateRow().
|
virtual |
Reimplemented in dbaccess::OStaticSet.
Definition at line 371 of file CacheSet.cxx.
References Any, getBookmark(), i, m_aColumnTypes, and m_aSignedFlags.
Referenced by dbaccess::OStaticSet::fetchRow(), and dbaccess::OStaticSet::fillAllRows().
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 507 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 483 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 453 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 473 of file CacheSet.cxx.
References m_xDriverRow.
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
Referenced by fillValueRow(), and lcl_getBookmark().
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 398 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 403 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 433 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 458 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 478 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 438 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 428 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 423 of file CacheSet.cxx.
References m_xDriverRow.
|
protected |
Definition at line 65 of file CacheSet.cxx.
References m_xConnection, and sQuote.
Referenced by fillParameters(), and insertRow().
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 413 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 418 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 463 of file CacheSet.cxx.
References Any, and m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 468 of file CacheSet.cxx.
References m_xDriverRow.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 519 of file CacheSet.cxx.
References m_xDriverSet.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 408 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 393 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 443 of file CacheSet.cxx.
References m_xDriverRow.
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 448 of file CacheSet.cxx.
References m_xDriverRow.
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
Definition at line 148 of file CacheSet.cxx.
References fillTableName(), getIdentifierQuoteString(), i, m_aComposedTableName, m_bInserted, m_xConnection, m_xSetMetaData, and setParameter().
Referenced by dbaccess::OStaticSet::insertRow().
|
virtual |
Definition at line 556 of file CacheSet.cxx.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 513 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
Definition at line 561 of file CacheSet.cxx.
|
pure virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 489 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 530 of file CacheSet.cxx.
References m_bDeleted, m_bInserted, m_bUpdated, and m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 536 of file CacheSet.cxx.
References m_xDriverSet.
|
pure virtual |
Implemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, dbaccess::OStaticSet, and dbaccess::WrappedResultSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 551 of file CacheSet.cxx.
References m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 546 of file CacheSet.cxx.
References m_xDriverSet.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OKeySet, and dbaccess::OStaticSet.
Definition at line 541 of file CacheSet.cxx.
References m_xDriverSet.
|
staticprotected |
Definition at line 361 of file CacheSet.cxx.
References connectivity::ORowSetValue::getTypeKind(), nPos, and nType.
Referenced by deleteRow(), insertRow(), and updateRow().
|
virtual |
Definition at line 571 of file CacheSet.cxx.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Reimplemented in dbaccess::OBookmarkSet, dbaccess::OKeySet, and dbaccess::WrappedResultSet.
Definition at line 269 of file CacheSet.cxx.
References DBA_RES, fillParameters(), fillTableName(), i, m_aComposedTableName, m_bUpdated, m_xConnection, m_xSetMetaData, and setParameter().
|
overridevirtual |
Reimplemented in dbaccess::OKeySet.
Definition at line 388 of file CacheSet.cxx.
References m_xDriverRow.
|
protected |
Definition at line 45 of file CacheSet.hxx.
Referenced by construct(), and fillValueRow().
|
protected |
Definition at line 46 of file CacheSet.hxx.
Referenced by deleteRow(), fillTableName(), insertRow(), and updateRow().
|
protected |
Definition at line 43 of file CacheSet.hxx.
Referenced by construct().
|
protected |
Definition at line 44 of file CacheSet.hxx.
Referenced by construct(), fillValueRow(), dbaccess::OBookmarkSet::insertRow(), and dbaccess::WrappedResultSet::insertRow().
|
protected |
Definition at line 50 of file CacheSet.hxx.
Referenced by absolute(), dbaccess::OStaticSet::absolute(), afterLast(), dbaccess::OStaticSet::afterLast(), beforeFirst(), dbaccess::OStaticSet::beforeFirst(), deleteRow(), dbaccess::OStaticSet::deleteRow(), first(), dbaccess::OStaticSet::first(), last(), dbaccess::OStaticSet::last(), dbaccess::OStaticSet::moveToBookmark(), next(), dbaccess::OStaticSet::next(), previous(), dbaccess::OStaticSet::previous(), and dbaccess::OStaticSet::rowDeleted().
|
protected |
Definition at line 48 of file CacheSet.hxx.
Referenced by absolute(), dbaccess::OStaticSet::absolute(), afterLast(), dbaccess::OStaticSet::afterLast(), beforeFirst(), dbaccess::OStaticSet::beforeFirst(), first(), dbaccess::OStaticSet::first(), insertRow(), dbaccess::OStaticSet::insertRow(), last(), dbaccess::OStaticSet::last(), dbaccess::OStaticSet::moveToBookmark(), next(), dbaccess::OStaticSet::next(), previous(), dbaccess::OStaticSet::previous(), and dbaccess::OStaticSet::rowInserted().
|
protected |
Definition at line 49 of file CacheSet.hxx.
Referenced by absolute(), dbaccess::OStaticSet::absolute(), afterLast(), dbaccess::OStaticSet::afterLast(), beforeFirst(), dbaccess::OStaticSet::beforeFirst(), first(), dbaccess::OStaticSet::first(), last(), dbaccess::OStaticSet::last(), dbaccess::OStaticSet::moveToBookmark(), next(), dbaccess::OStaticSet::next(), previous(), dbaccess::OStaticSet::previous(), dbaccess::OStaticSet::rowUpdated(), and updateRow().
|
protected |
Definition at line 47 of file CacheSet.hxx.
Referenced by dbaccess::OStaticSet::fetchRow().
|
protected |
Definition at line 51 of file CacheSet.hxx.
Referenced by construct(), dbaccess::OBookmarkSet::reset(), dbaccess::OStaticSet::reset(), and dbaccess::WrappedResultSet::reset().
|
protected |
Definition at line 41 of file CacheSet.hxx.
Referenced by construct(), deleteRow(), fillTableName(), getIdentifierQuoteString(), insertRow(), updateRow(), and ~OCacheSet().
|
protected |
Definition at line 39 of file CacheSet.hxx.
Referenced by construct(), getArray(), getBinaryStream(), getBlob(), getBoolean(), getByte(), getBytes(), getCharacterStream(), getClob(), getDate(), getDouble(), getFloat(), getInt(), getLong(), getObject(), getRef(), getShort(), getString(), getTime(), getTimestamp(), wasNull(), and ~OCacheSet().
|
protected |
Definition at line 38 of file CacheSet.hxx.
Referenced by absolute(), afterLast(), beforeFirst(), construct(), dbaccess::OStaticSet::fetchRow(), dbaccess::OStaticSet::fillAllRows(), first(), dbaccess::WrappedResultSet::getBookmark(), getRow(), last(), next(), previous(), refreshRow(), rowDeleted(), rowInserted(), rowUpdated(), and ~OCacheSet().
|
protected |
Definition at line 40 of file CacheSet.hxx.
Referenced by construct(), deleteRow(), dbaccess::OStaticSet::fetchRow(), dbaccess::OStaticSet::fillAllRows(), fillParameters(), insertRow(), dbaccess::OBookmarkSet::updateColumn(), dbaccess::WrappedResultSet::updateColumn(), updateRow(), and ~OCacheSet().