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

#include <OptimisticSet.hxx>

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

Public Member Functions

 OptimisticSet (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::sdbc::XConnection > &i_xConnection, 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 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
 
virtual bool isResultSetChanged () const override
 
virtual void mergeColumnValues (sal_Int32 i_nColumnIndex, ORowSetValueVector::Vector &io_aInsertRow, ORowSetValueVector::Vector &io_aRow, std::vector< sal_Int32 > &o_aChangedColumns) override
 
virtual bool columnValuesUpdated (ORowSetValueVector::Vector &o_aCachedRow, const ORowSetValueVector::Vector &i_aRow) override
 
virtual bool updateColumnValues (const ORowSetValueVector::Vector &io_aCachedRow, ORowSetValueVector::Vector &io_aRow, const std::vector< sal_Int32 > &i_aChangedColumns) override
 
virtual void fillMissingValues (ORowSetValueVector::Vector &io_aRow) const override
 
bool isReadOnly () const
 
const std::map< sal_Int32, sal_Int32 > & getJoinedKeyColumns () const
 
- Public Member Functions inherited from connectivity::OKeySet
 OKeySet ()
 
bool isFrozen () const
 
void setFrozen ()
 
- Public Member Functions inherited from connectivity::ORefVector< sal_Int32 >
 ORefVector ()
 
 ORefVector (size_t _st)
 
 ORefVector (const ORefVector &rOther)
 
ORefVectoroperator= (const ORefVector &_rRH)
 

Protected Member Functions

virtual void makeNewStatement () override
 
virtual ~OptimisticSet () override
 
- Protected Member Functions inherited from connectivity::ORefVector< sal_Int32 >
virtual ~ORefVector () override
 

Private Member Functions

void executeDelete (const ORowSetRow &_rDeleteRow, const OUString &i_sSQL, std::u16string_view i_sTableName)
 
void fillJoinedColumns_throw (const std::vector< ::connectivity::TNodePair > &i_aJoinColumns)
 
void fillJoinedColumns_throw (const OUString &i_sLeftColumn, const OUString &i_sRightColumn)
 

Private Attributes

::connectivity::OSQLParser m_aSqlParser
 
::connectivity::OSQLParseTreeIterator m_aSqlIterator
 
std::map< sal_Int32, sal_Int32 > m_aJoinedColumns
 
std::map< sal_Int32, sal_Int32 > m_aJoinedKeyColumns
 
bool m_bResultSetChanged
 

Additional Inherited Members

- Public Types inherited from connectivity::ORefVector< sal_Int32 >
typedef std::vector< VectorVal > Vector
 

Detailed Description

Definition at line 32 of file OptimisticSet.hxx.

Constructor & Destructor Documentation

◆ ~OptimisticSet()

OptimisticSet::~OptimisticSet ( )
overrideprotectedvirtual

Definition at line 86 of file OptimisticSet.cxx.

◆ OptimisticSet()

OptimisticSet::OptimisticSet ( const css::uno::Reference< css::uno::XComponentContext > &  _rContext,
const css::uno::Reference< css::sdbc::XConnection > &  i_xConnection,
const css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > &  _xComposer,
const ORowSetValueVector _aParameterValueForCache,
sal_Int32  i_nMaxRows,
sal_Int32 &  o_nRowCount 
)

Definition at line 73 of file OptimisticSet.cxx.

References Reference.

Member Function Documentation

◆ columnValuesUpdated()

bool OptimisticSet::columnValuesUpdated ( ORowSetValueVector::Vector o_aCachedRow,
const ORowSetValueVector::Vector i_aRow 
)
overridevirtual

Definition at line 476 of file OptimisticSet.cxx.

References fillMissingValues(), and nPos.

◆ construct()

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

◆ deleteRow()

void OptimisticSet::deleteRow ( const ORowSetRow _rInsertRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual

◆ executeDelete()

void OptimisticSet::executeDelete ( const ORowSetRow _rDeleteRow,
const OUString &  i_sSQL,
std::u16string_view  i_sTableName 
)
private

Definition at line 339 of file OptimisticSet.cxx.

References i, and m_xConnection.

Referenced by deleteRow().

◆ fillJoinedColumns_throw() [1/2]

void OptimisticSet::fillJoinedColumns_throw ( const OUString &  i_sLeftColumn,
const OUString &  i_sRightColumn 
)
private

Definition at line 376 of file OptimisticSet.cxx.

References m_aJoinedColumns, and m_aJoinedKeyColumns.

◆ fillJoinedColumns_throw() [2/2]

void dbaccess::OptimisticSet::fillJoinedColumns_throw ( const std::vector< ::connectivity::TNodePair > &  i_aJoinColumns)
private

Referenced by construct().

◆ fillMissingValues()

void OptimisticSet::fillMissingValues ( ORowSetValueVector::Vector io_aRow) const
overridevirtual

Definition at line 518 of file OptimisticSet.cxx.

References columnName, i, m_aJoinedKeyColumns, m_xConnection, sCatalog, and sSchema.

Referenced by columnValuesUpdated().

◆ getJoinedKeyColumns()

const std::map< sal_Int32, sal_Int32 > & dbaccess::OptimisticSet::getJoinedKeyColumns ( ) const
inline

Definition at line 72 of file OptimisticSet.hxx.

References m_aJoinedKeyColumns.

◆ insertRow()

void OptimisticSet::insertRow ( const ORowSetRow _rInsertRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual

◆ isReadOnly()

bool dbaccess::OptimisticSet::isReadOnly ( ) const
inline

Definition at line 71 of file OptimisticSet.hxx.

References m_aJoinedKeyColumns.

◆ isResultSetChanged()

bool OptimisticSet::isResultSetChanged ( ) const
overridevirtual

Definition at line 416 of file OptimisticSet.cxx.

References m_bResultSetChanged.

◆ makeNewStatement()

void OptimisticSet::makeNewStatement ( )
overrideprotectedvirtual

◆ mergeColumnValues()

void OptimisticSet::mergeColumnValues ( sal_Int32  i_nColumnIndex,
ORowSetValueVector::Vector io_aInsertRow,
ORowSetValueVector::Vector io_aRow,
std::vector< sal_Int32 > &  o_aChangedColumns 
)
overridevirtual

Definition at line 423 of file OptimisticSet.cxx.

References m_aJoinedColumns.

◆ updateColumnValues()

bool OptimisticSet::updateColumnValues ( const ORowSetValueVector::Vector io_aCachedRow,
ORowSetValueVector::Vector io_aRow,
const std::vector< sal_Int32 > &  i_aChangedColumns 
)
overridevirtual

Definition at line 436 of file OptimisticSet.cxx.

◆ updateRow()

void OptimisticSet::updateRow ( const ORowSetRow _rInsertRow,
const ORowSetRow _rOriginalRow,
const connectivity::OSQLTable _xTable 
)
overridevirtual

Member Data Documentation

◆ m_aJoinedColumns

std::map<sal_Int32,sal_Int32> dbaccess::OptimisticSet::m_aJoinedColumns
private

Definition at line 37 of file OptimisticSet.hxx.

Referenced by fillJoinedColumns_throw(), insertRow(), mergeColumnValues(), and updateRow().

◆ m_aJoinedKeyColumns

std::map<sal_Int32,sal_Int32> dbaccess::OptimisticSet::m_aJoinedKeyColumns
private

◆ m_aSqlIterator

::connectivity::OSQLParseTreeIterator dbaccess::OptimisticSet::m_aSqlIterator
private

Definition at line 35 of file OptimisticSet.hxx.

Referenced by construct().

◆ m_aSqlParser

::connectivity::OSQLParser dbaccess::OptimisticSet::m_aSqlParser
private

Definition at line 34 of file OptimisticSet.hxx.

Referenced by construct().

◆ m_bResultSetChanged

bool dbaccess::OptimisticSet::m_bResultSetChanged
mutableprivate

Definition at line 40 of file OptimisticSet.hxx.

Referenced by insertRow(), isResultSetChanged(), and updateRow().


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