LibreOffice Module dbaccess (master) 1
|
eases the handling of the doCancelModification and notifyCancelInsert methods More...
#include <RowSetBase.hxx>
Public Member Functions | |
ORowSetNotifier (ORowSetBase *m_pRowSet) | |
constructs the object, and cancels the insertion More... | |
ORowSetNotifier (ORowSetBase *m_pRowSet, ORowSetValueVector::Vector &&i_aRow) | |
use this one to construct a vector for change value notification More... | |
~ORowSetNotifier () | |
void | fire () |
notifies the insertion More... | |
void | firePropertyChange () |
notifies value change events and notifies IsModified More... | |
std::vector< sal_Int32 > & | getChangedColumns () |
use this one to store the index of the changed column values More... | |
Private Attributes | |
std::vector< sal_Int32 > | aChangedColumns |
ORowSetValueVector::Vector | aRow |
ORowSetBase * | m_pRowSet |
bool | m_bWasNew |
bool | m_bWasModified |
eases the handling of the doCancelModification and notifyCancelInsert methods
The class can only be used on the stack, within a method of ORowSetBase (or derivees)
Definition at line 348 of file RowSetBase.hxx.
|
explicit |
constructs the object, and cancels the insertion
Definition at line 1362 of file RowSetBase.cxx.
References dbaccess::ORowSetBase::doCancelModification(), dbaccess::ORowSetBase::isModification(), dbaccess::ORowSetBase::isModified(), dbaccess::ORowSetBase::isNew(), m_bWasModified, m_bWasNew, and m_pRowSet.
dbaccess::ORowSetNotifier::ORowSetNotifier | ( | ORowSetBase * | m_pRowSet, |
ORowSetValueVector::Vector && | i_aRow | ||
) |
use this one to construct a vector for change value notification
Definition at line 1379 of file RowSetBase.cxx.
dbaccess::ORowSetNotifier::~ORowSetNotifier | ( | ) |
Definition at line 1388 of file RowSetBase.cxx.
void dbaccess::ORowSetNotifier::fire | ( | ) |
notifies the insertion
This has not been put into the destructor by intention!
The destructor is called during stack unwinding in case of an exception, so if we would do listener notification there, this would have the potential of another exception during stack unwinding, which would terminate the application.
Definition at line 1392 of file RowSetBase.cxx.
References dbaccess::ORowSetBase::fireProperty(), dbaccess::ORowSetBase::isModified(), dbaccess::ORowSetBase::isNew(), m_bWasModified, m_bWasNew, m_pRowSet, PROPERTY_ID_ISMODIFIED, and PROPERTY_ID_ISNEW.
Referenced by dbaccess::ORowSetBase::absolute(), dbaccess::ORowSetBase::afterLast(), dbaccess::ORowSetBase::beforeFirst(), dbaccess::ORowSet::deleteRow(), dbaccess::ORowSet::deleteRows(), dbaccess::ORowSetBase::move(), dbaccess::ORowSetBase::moveRelativeToBookmark(), dbaccess::ORowSetBase::moveToBookmark(), dbaccess::ORowSet::moveToCurrentRow(), dbaccess::ORowSetBase::next(), dbaccess::ORowSetBase::previous(), dbaccess::ORowSet::refreshRow(), and dbaccess::ORowSetBase::relative().
void dbaccess::ORowSetNotifier::firePropertyChange | ( | ) |
notifies value change events and notifies IsModified
i_aChangedColumns | the index of the changed value columns |
i_aRow | the old values |
Definition at line 1413 of file RowSetBase.cxx.
References aChangedColumns, aRow, dbaccess::ORowSetBase::fireProperty(), dbaccess::ORowSetBase::firePropertyChange(), m_pRowSet, and PROPERTY_ID_ISMODIFIED.
Referenced by dbaccess::ORowSet::updateCharacterStream(), dbaccess::ORowSet::updateNull(), dbaccess::ORowSet::updateNumericObject(), dbaccess::ORowSet::updateObject(), and dbaccess::ORowSet::updateValue().
std::vector< sal_Int32 > & dbaccess::ORowSetNotifier::getChangedColumns | ( | ) |
use this one to store the index of the changed column values
Definition at line 1408 of file RowSetBase.cxx.
References aChangedColumns.
Referenced by dbaccess::ORowSet::updateCharacterStream(), dbaccess::ORowSet::updateNull(), dbaccess::ORowSet::updateNumericObject(), dbaccess::ORowSet::updateObject(), and dbaccess::ORowSet::updateValue().
|
private |
Definition at line 351 of file RowSetBase.hxx.
Referenced by firePropertyChange(), and getChangedColumns().
|
private |
Definition at line 352 of file RowSetBase.hxx.
Referenced by firePropertyChange(), and ORowSetNotifier().
|
private |
Definition at line 357 of file RowSetBase.hxx.
Referenced by fire(), and ORowSetNotifier().
|
private |
Definition at line 356 of file RowSetBase.hxx.
Referenced by fire(), and ORowSetNotifier().
|
private |
Definition at line 353 of file RowSetBase.hxx.
Referenced by fire(), firePropertyChange(), and ORowSetNotifier().