LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | List of all members
connectivity::odbc::OStatement Class Reference

#include <OStatement.hxx>

Inheritance diagram for connectivity::odbc::OStatement:
[legend]
Collaboration diagram for connectivity::odbc::OStatement:
[legend]

Public Member Functions

 OStatement (OConnection *_pConnection)
 
 DECLARE_SERVICE_INFO ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL addBatch (const OUString &sql) override
 
virtual void SAL_CALL clearBatch () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch () override
 
- Public Member Functions inherited from connectivity::odbc::OStatement_BASE2
 OStatement_BASE2 (OConnection *_pConnection)
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from connectivity::odbc::OStatement_Base
 OStatement_Base (OConnection *_pConnection)
 
oslGenericFunction getOdbcFunction (ODBC3SQLFunctionId _nIndex) const
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery (const OUString &sql) override
 
virtual sal_Int32 SAL_CALL executeUpdate (const OUString &sql) override
 
virtual sal_Bool SAL_CALL execute (const OUString &sql) override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection () override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual void SAL_CALL cancel () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet () override
 
virtual sal_Int32 SAL_CALL getUpdateCount () override
 
virtual sal_Bool SAL_CALL getMoreResults () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getGeneratedValues () override
 
SQLHANDLE getConnectionHandle ()
 
OConnectiongetOwnConnection () const
 
SQLUINTEGER getCursorProperties (SQLINTEGER _nCursorType, bool bFirst)
 getCursorProperties return the properties for a specific cursor type More...
 
- 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
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

virtual ~OStatement () override
 
- Protected Member Functions inherited from connectivity::odbc::OStatement_Base
sal_Int64 getQueryTimeOut () const
 
sal_Int64 getMaxFieldSize () const
 
sal_Int64 getMaxRows () const
 
sal_Int32 getResultSetConcurrency () const
 
sal_Int32 getResultSetType () const
 
sal_Int32 getFetchDirection () const
 
sal_Int32 getFetchSize () const
 
OUString getCursorName () const
 
bool isUsingBookmarks () const
 
bool getEscapeProcessing () const
 
template<typename T , SQLINTEGER BufferLength>
getStmtOption (SQLINTEGER fOption) const
 
void setQueryTimeOut (sal_Int64 _par0)
 
void setMaxFieldSize (sal_Int64 _par0)
 
void setMaxRows (sal_Int64 _par0)
 
void setFetchDirection (sal_Int32 _par0)
 
void setFetchSize (sal_Int32 _par0)
 
void setCursorName (std::u16string_view _par0)
 
void setEscapeProcessing (const bool _bEscapeProc)
 
template<typename T , SQLINTEGER BufferLength>
SQLRETURN setStmtOption (SQLINTEGER fOption, T value) const
 
void setResultSetConcurrency (sal_Int32 _par0)
 
void setResultSetType (sal_Int32 _par0)
 
void setUsingBookmarks (bool _bUseBookmark)
 
void reset ()
 
void clearMyResultSet ()
 
void setWarning (const css::sdbc::SQLWarning &ex)
 
bool lockIfNecessary (const OUString &sql)
 
sal_Int32 getColumnCount ()
 
css::uno::Reference< css::sdbc::XResultSet > getResultSet (bool checkCount)
 
virtual rtl::Reference< OResultSetcreateResultSet ()
 creates the driver specific resultset (factory) More...
 
SQLLEN getRowCount ()
 
void disposeResultSet ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const 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
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual ~OStatement_Base () override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
- 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 ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base >
static std::mutextheMutex ()
 
- Protected Attributes inherited from connectivity::odbc::OStatement_Base
css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
css::uno::Reference< css::sdbc::XStatement > m_xGeneratedStatement
 
std::vector< OUString > m_aBatchVector
 
OUString m_sSqlStatement
 
rtl::Reference< OConnectionm_pConnection
 
SQLHANDLE m_aStatementHandle
 
SQLUSMALLINT * m_pRowStatusArray
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 221 of file OStatement.hxx.

Constructor & Destructor Documentation

◆ ~OStatement()

virtual connectivity::odbc::OStatement::~OStatement ( )
inlineoverrideprotectedvirtual

Definition at line 227 of file OStatement.hxx.

◆ OStatement()

connectivity::odbc::OStatement::OStatement ( OConnection _pConnection)
inline

Definition at line 230 of file OStatement.hxx.

Member Function Documentation

◆ acquire()

void SAL_CALL OStatement::acquire ( )
overridevirtualnoexcept

◆ addBatch()

void SAL_CALL OStatement::addBatch ( const OUString &  sql)
overridevirtual

◆ clearBatch()

void SAL_CALL OStatement::clearBatch ( )
overridevirtual

Definition at line 181 of file OStatement.cxx.

◆ DECLARE_SERVICE_INFO()

connectivity::odbc::OStatement::DECLARE_SERVICE_INFO ( )

◆ executeBatch()

Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch ( )
overridevirtual

◆ queryInterface()

virtual css::uno::Any SAL_CALL connectivity::odbc::OStatement::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ release()

void SAL_CALL OStatement::release ( )
overridevirtualnoexcept

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