LibreOffice Module connectivity (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
pq_sdbc_driver::UpdateableResultSet Class Referencefinal

#include <pq_updateableresultset.hxx>

Inheritance diagram for pq_sdbc_driver::UpdateableResultSet:
[legend]
Collaboration diagram for pq_sdbc_driver::UpdateableResultSet:
[legend]

Public Member Functions

virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &reqType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL insertRow () override
 
virtual void SAL_CALL updateRow () override
 
virtual void SAL_CALL deleteRow () override
 
virtual void SAL_CALL cancelRowUpdates () override
 
virtual void SAL_CALL moveToInsertRow () override
 
virtual void SAL_CALL moveToCurrentRow () override
 
virtual void SAL_CALL updateNull (sal_Int32 columnIndex) override
 
virtual void SAL_CALL updateBoolean (sal_Int32 columnIndex, sal_Bool x) override
 
virtual void SAL_CALL updateByte (sal_Int32 columnIndex, sal_Int8 x) override
 
virtual void SAL_CALL updateShort (sal_Int32 columnIndex, sal_Int16 x) override
 
virtual void SAL_CALL updateInt (sal_Int32 columnIndex, sal_Int32 x) override
 
virtual void SAL_CALL updateLong (sal_Int32 columnIndex, sal_Int64 x) override
 
virtual void SAL_CALL updateFloat (sal_Int32 columnIndex, float x) override
 
virtual void SAL_CALL updateDouble (sal_Int32 columnIndex, double x) override
 
virtual void SAL_CALL updateString (sal_Int32 columnIndex, const OUString &x) override
 
virtual void SAL_CALL updateBytes (sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override
 
virtual void SAL_CALL updateDate (sal_Int32 columnIndex, const css::util::Date &x) override
 
virtual void SAL_CALL updateTime (sal_Int32 columnIndex, const css::util::Time &x) override
 
virtual void SAL_CALL updateTimestamp (sal_Int32 columnIndex, const css::util::DateTime &x) override
 
virtual void SAL_CALL updateBinaryStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateCharacterStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateObject (sal_Int32 columnIndex, const css::uno::Any &x) override
 
virtual void SAL_CALL updateNumericObject (sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override
 
- Public Member Functions inherited from pq_sdbc_driver::SequenceResultSet
 SequenceResultSet (const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, std::vector< OUString > &&colNames, std::vector< std::vector< css::uno::Any > > &&data, const css::uno::Reference< css::script::XTypeConverter > &tc, const ColumnMetaDataVector *pVec=nullptr)
 
virtual ~SequenceResultSet () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual sal_Int32 SAL_CALL findColumn (const OUString &columnName) override
 
- Public Member Functions inherited from pq_sdbc_driver::BaseResultSet
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &reqType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual sal_Bool SAL_CALL next () override
 
virtual sal_Bool SAL_CALL isBeforeFirst () override
 
virtual sal_Bool SAL_CALL isAfterLast () override
 
virtual sal_Bool SAL_CALL isFirst () override
 
virtual sal_Bool SAL_CALL isLast () override
 
virtual void SAL_CALL beforeFirst () override
 
virtual void SAL_CALL afterLast () override
 
virtual sal_Bool SAL_CALL first () override
 
virtual sal_Bool SAL_CALL last () override
 
virtual sal_Int32 SAL_CALL getRow () override
 
virtual sal_Bool SAL_CALL absolute (sal_Int32 row) override
 
virtual sal_Bool SAL_CALL relative (sal_Int32 rows) override
 
virtual sal_Bool SAL_CALL previous () override
 
virtual void SAL_CALL refreshRow () override
 
virtual sal_Bool SAL_CALL rowUpdated () override
 
virtual sal_Bool SAL_CALL rowInserted () override
 
virtual sal_Bool SAL_CALL rowDeleted () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement () 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 cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from cppu::OPropertySetHelper
 OPropertySetHelper (OBroadcastHelper &rBHelper)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
css::uno::Sequence< css::uno::Type > getTypes ()
 
void SAL_CALL disposing ()
 
virtual void SAL_CALL setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 

Static Public Member Functions

static css::uno::Reference< css::sdbc::XCloseable > createFromPGResultSet (const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, ConnectionSettings **ppSettings, PGresult *result, const OUString &schema, const OUString &table, std::vector< OUString > &&primaryKey)
 
static css::uno::Sequence< css::uno::Type > getStaticTypes (bool updateable)
 
- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 

Private Member Functions

 UpdateableResultSet (const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, std::vector< OUString > &&colNames, std::vector< std::vector< css::uno::Any > > &&data, ConnectionSettings **ppSettings, OUString schema, OUString table, std::vector< OUString > &&primaryKey)
 
OUString buildWhereClause ()
 
void checkUpdate (sal_Int32 column)
 

Private Attributes

ConnectionSettings ** m_ppSettings
 
OUString m_schema
 
OUString m_table
 
std::vector< OUString > m_primaryKey
 
UpdateableFieldVector m_updateableField
 
bool m_insertRow
 

Additional Inherited Members

- Protected Member Functions inherited from pq_sdbc_driver::SequenceResultSet
virtual void checkClosed () override
 mutex should be locked before called More...
 
virtual css::uno::Any getValue (sal_Int32 columnIndex) override
 unchecked, acquire mutex before calling More...
 
- Protected Member Functions inherited from pq_sdbc_driver::BaseResultSet
virtual void checkClosed ()=0
 mutex should be locked before called More...
 
void checkColumnIndex (sal_Int32 index)
 
void checkRowIndex ()
 
virtual css::uno::Any getValue (sal_Int32 columnIndex)=0
 
css::uno::Any convertTo (const css::uno::Any &str, const css::uno::Type &type)
 
 BaseResultSet (const ::rtl::Reference< comphelper::RefCountedMutex > &mutex, const css::uno::Reference< css::uno::XInterface > &owner, sal_Int32 rowCount, sal_Int32 columnCount, const css::uno::Reference< css::script::XTypeConverter > &tc)
 
virtual ~BaseResultSet () override
 
- Protected Member Functions inherited from cppu::OPropertySetHelper
void SAL_CALL fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable)
 
void SAL_CALL setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
 
virtual IPropertyArrayHelper &SAL_CALL getInfoHelper ()=0
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
void setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value)
 
 ~OPropertySetHelper ()
 
- Protected Attributes inherited from pq_sdbc_driver::SequenceResultSet
std::vector< std::vector< css::uno::Any > > m_data
 
std::vector< OUString > m_columnNames
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_meta
 
- Protected Attributes inherited from pq_sdbc_driver::BaseResultSet
css::uno::Any m_props [BASERESULTSET_SIZE]
 
css::uno::Reference< css::uno::XInterface > m_owner
 
css::uno::Reference< css::script::XTypeConverter > m_tc
 
::rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
sal_Int32 m_row
 
sal_Int32 m_rowCount
 
sal_Int32 m_fieldCount
 
bool m_wasNull
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Detailed Description

Definition at line 63 of file pq_updateableresultset.hxx.

Constructor & Destructor Documentation

◆ UpdateableResultSet()

pq_sdbc_driver::UpdateableResultSet::UpdateableResultSet ( const ::rtl::Reference< comphelper::RefCountedMutex > &  mutex,
const css::uno::Reference< css::uno::XInterface > &  owner,
std::vector< OUString > &&  colNames,
std::vector< std::vector< css::uno::Any > > &&  data,
ConnectionSettings **  ppSettings,
OUString  schema,
OUString  table,
std::vector< OUString > &&  primaryKey 
)
inlineprivate

Member Function Documentation

◆ acquire()

virtual void SAL_CALL pq_sdbc_driver::UpdateableResultSet::acquire ( )
inlineoverridevirtualnoexcept

◆ buildWhereClause()

OUString pq_sdbc_driver::UpdateableResultSet::buildWhereClause ( )
private

◆ cancelRowUpdates()

void pq_sdbc_driver::UpdateableResultSet::cancelRowUpdates ( )
overridevirtual

◆ checkUpdate()

void pq_sdbc_driver::UpdateableResultSet::checkUpdate ( sal_Int32  column)
private

◆ createFromPGResultSet()

css::uno::Reference< css::sdbc::XCloseable > pq_sdbc_driver::UpdateableResultSet::createFromPGResultSet ( const ::rtl::Reference< comphelper::RefCountedMutex > &  mutex,
const css::uno::Reference< css::uno::XInterface > &  owner,
ConnectionSettings **  ppSettings,
PGresult *  result,
const OUString &  schema,
const OUString &  table,
std::vector< OUString > &&  primaryKey 
)
static

◆ deleteRow()

void pq_sdbc_driver::UpdateableResultSet::deleteRow ( )
overridevirtual

◆ getImplementationId()

css::uno::Sequence< sal_Int8 > pq_sdbc_driver::UpdateableResultSet::getImplementationId ( )
overridevirtual

Reimplemented from pq_sdbc_driver::BaseResultSet.

Definition at line 156 of file pq_updateableresultset.cxx.

◆ getStaticTypes()

Sequence< Type > pq_sdbc_driver::UpdateableResultSet::getStaticTypes ( bool  updateable)
static
Exceptions
css::uno::RuntimeException

Definition at line 518 of file pq_updateableresultset.cxx.

References getStaticTypes(), and cppu::OTypeCollection::getTypes().

Referenced by getStaticTypes().

◆ getTypes()

css::uno::Sequence< css::uno::Type > pq_sdbc_driver::UpdateableResultSet::getTypes ( )
overridevirtual

◆ insertRow()

void pq_sdbc_driver::UpdateableResultSet::insertRow ( )
overridevirtual

◆ moveToCurrentRow()

void pq_sdbc_driver::UpdateableResultSet::moveToCurrentRow ( )
overridevirtual

Definition at line 370 of file pq_updateableresultset.cxx.

References m_insertRow.

◆ moveToInsertRow()

void pq_sdbc_driver::UpdateableResultSet::moveToInsertRow ( )
overridevirtual

Definition at line 365 of file pq_updateableresultset.cxx.

References m_insertRow.

◆ queryInterface()

css::uno::Any pq_sdbc_driver::UpdateableResultSet::queryInterface ( const css::uno::Type &  reqType)
overridevirtual

◆ release()

virtual void SAL_CALL pq_sdbc_driver::UpdateableResultSet::release ( )
inlineoverridevirtualnoexcept

◆ updateBinaryStream()

void pq_sdbc_driver::UpdateableResultSet::updateBinaryStream ( sal_Int32  columnIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

Definition at line 501 of file pq_updateableresultset.cxx.

◆ updateBoolean()

void pq_sdbc_driver::UpdateableResultSet::updateBoolean ( sal_Int32  columnIndex,
sal_Bool  x 
)
overridevirtual

◆ updateByte()

void pq_sdbc_driver::UpdateableResultSet::updateByte ( sal_Int32  columnIndex,
sal_Int8  x 
)
overridevirtual

Definition at line 402 of file pq_updateableresultset.cxx.

References updateInt(), and x.

◆ updateBytes()

void pq_sdbc_driver::UpdateableResultSet::updateBytes ( sal_Int32  columnIndex,
const css::uno::Sequence< sal_Int8 > &  x 
)
overridevirtual

◆ updateCharacterStream()

void pq_sdbc_driver::UpdateableResultSet::updateCharacterStream ( sal_Int32  columnIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

Definition at line 505 of file pq_updateableresultset.cxx.

◆ updateDate()

void pq_sdbc_driver::UpdateableResultSet::updateDate ( sal_Int32  columnIndex,
const css::util::Date &  x 
)
overridevirtual

◆ updateDouble()

void pq_sdbc_driver::UpdateableResultSet::updateDouble ( sal_Int32  columnIndex,
double  x 
)
overridevirtual

◆ updateFloat()

void pq_sdbc_driver::UpdateableResultSet::updateFloat ( sal_Int32  columnIndex,
float  x 
)
overridevirtual

◆ updateInt()

void pq_sdbc_driver::UpdateableResultSet::updateInt ( sal_Int32  columnIndex,
sal_Int32  x 
)
overridevirtual

Definition at line 412 of file pq_updateableresultset.cxx.

References updateLong(), and x.

Referenced by updateByte(), and updateShort().

◆ updateLong()

void pq_sdbc_driver::UpdateableResultSet::updateLong ( sal_Int32  columnIndex,
sal_Int64  x 
)
overridevirtual

◆ updateNull()

void pq_sdbc_driver::UpdateableResultSet::updateNull ( sal_Int32  columnIndex)
overridevirtual

◆ updateNumericObject()

void pq_sdbc_driver::UpdateableResultSet::updateNumericObject ( sal_Int32  columnIndex,
const css::uno::Any &  x,
sal_Int32  scale 
)
overridevirtual

Definition at line 513 of file pq_updateableresultset.cxx.

◆ updateObject()

void pq_sdbc_driver::UpdateableResultSet::updateObject ( sal_Int32  columnIndex,
const css::uno::Any &  x 
)
overridevirtual

Definition at line 509 of file pq_updateableresultset.cxx.

◆ updateRow()

void pq_sdbc_driver::UpdateableResultSet::updateRow ( )
overridevirtual

◆ updateShort()

void pq_sdbc_driver::UpdateableResultSet::updateShort ( sal_Int32  columnIndex,
sal_Int16  x 
)
overridevirtual

Definition at line 407 of file pq_updateableresultset.cxx.

References updateInt(), and x.

◆ updateString()

void pq_sdbc_driver::UpdateableResultSet::updateString ( sal_Int32  columnIndex,
const OUString &  x 
)
overridevirtual

◆ updateTime()

void pq_sdbc_driver::UpdateableResultSet::updateTime ( sal_Int32  columnIndex,
const css::util::Time &  x 
)
overridevirtual

◆ updateTimestamp()

void pq_sdbc_driver::UpdateableResultSet::updateTimestamp ( sal_Int32  columnIndex,
const css::util::DateTime &  x 
)
overridevirtual

Member Data Documentation

◆ m_insertRow

bool pq_sdbc_driver::UpdateableResultSet::m_insertRow
private

◆ m_ppSettings

ConnectionSettings** pq_sdbc_driver::UpdateableResultSet::m_ppSettings
private

Definition at line 68 of file pq_updateableresultset.hxx.

Referenced by buildWhereClause(), deleteRow(), insertRow(), and updateRow().

◆ m_primaryKey

std::vector< OUString > pq_sdbc_driver::UpdateableResultSet::m_primaryKey
private

Definition at line 71 of file pq_updateableresultset.hxx.

Referenced by buildWhereClause().

◆ m_schema

OUString pq_sdbc_driver::UpdateableResultSet::m_schema
private

Definition at line 69 of file pq_updateableresultset.hxx.

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

◆ m_table

OUString pq_sdbc_driver::UpdateableResultSet::m_table
private

Definition at line 70 of file pq_updateableresultset.hxx.

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

◆ m_updateableField

UpdateableFieldVector pq_sdbc_driver::UpdateableResultSet::m_updateableField
private

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