summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-20 11:52:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-20 11:53:28 +0100
commitc6f6d0b7219052557c2df3cb9d27dd2c09b3168e (patch)
tree1a620c8d4a4d2ae54a2554d32b2dc52433d144d9 /connectivity/source
parentuse rtl::Reference in ORowSetCache (diff)
downloadcore-c6f6d0b7219052557c2df3cb9d27dd2c09b3168e.tar.gz
core-c6f6d0b7219052557c2df3cb9d27dd2c09b3168e.zip
loplugin:dynexcspec (clang-cl), connectivity
Change-Id: Ia49a11d4f707764640ea497d877d1699183ca56e
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/inc/ado/AConnection.hxx5
-rw-r--r--connectivity/source/inc/ado/ADatabaseMetaData.hxx6
-rw-r--r--connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx17
-rw-r--r--connectivity/source/inc/ado/ADriver.hxx2
-rw-r--r--connectivity/source/inc/ado/APreparedStatement.hxx2
-rw-r--r--connectivity/source/inc/ado/AResultSet.hxx16
-rw-r--r--connectivity/source/inc/ado/AStatement.hxx38
-rw-r--r--connectivity/source/inc/ado/ATable.hxx2
-rw-r--r--connectivity/source/inc/ado/ATables.hxx2
-rw-r--r--connectivity/source/inc/ado/AViews.hxx2
-rw-r--r--connectivity/source/inc/ado/adoimp.hxx4
11 files changed, 94 insertions, 2 deletions
diff --git a/connectivity/source/inc/ado/AConnection.hxx b/connectivity/source/inc/ado/AConnection.hxx
index c2832061da8f..71e09885ad5f 100644
--- a/connectivity/source/inc/ado/AConnection.hxx
+++ b/connectivity/source/inc/ado/AConnection.hxx
@@ -70,14 +70,17 @@ namespace connectivity
bool m_bAutocommit;
protected:
+ /// @throws css::sdbc::SQLException
void buildTypeInfo() throw( css::sdbc::SQLException);
public:
-
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
OConnection(ODriver* _pDriver) throw(css::sdbc::SQLException, css::uno::RuntimeException);
// OConnection(const SQLHANDLE _pConnectionHandle);
~OConnection() override;
void construct(const OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info);
+ /// @throws css::sdbc::SQLException
void closeAllStatements () throw( css::sdbc::SQLException);
//XUnoTunnel
diff --git a/connectivity/source/inc/ado/ADatabaseMetaData.hxx b/connectivity/source/inc/ado/ADatabaseMetaData.hxx
index 8bd545219249..18b04531c3fe 100644
--- a/connectivity/source/inc/ado/ADatabaseMetaData.hxx
+++ b/connectivity/source/inc/ado/ADatabaseMetaData.hxx
@@ -53,8 +53,14 @@ namespace connectivity
OUString getLiteral(sal_uInt32 _nProperty);
// get info out of propertyst
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
OUString getStringProperty(const OUString& _aProperty) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getInt32Property(const OUString& _aProperty) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
bool getBoolProperty(const OUString& _aProperty) throw(css::sdbc::SQLException, css::uno::RuntimeException);
virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
diff --git a/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx b/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
index 316c980e6957..c10bdeb6dce5 100644
--- a/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
+++ b/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
@@ -75,18 +75,35 @@ namespace connectivity
bool m_bEOF;
bool m_bOnFirstAfterOpen;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getResultSetConcurrency() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getResultSetType() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getFetchDirection() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getFetchSize() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static OUString getCursorName() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchDirection(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchSize(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
inline sal_Int32 mapColumn (sal_Int32 column);
+ /// @throws css::sdbc::SQLException
void checkRecordSet() throw(css::sdbc::SQLException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
OLEVariant getValue(sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
protected:
diff --git a/connectivity/source/inc/ado/ADriver.hxx b/connectivity/source/inc/ado/ADriver.hxx
index 74ae68347787..00343531932c 100644
--- a/connectivity/source/inc/ado/ADriver.hxx
+++ b/connectivity/source/inc/ado/ADriver.hxx
@@ -58,7 +58,9 @@ namespace connectivity
// OComponentHelper
virtual void SAL_CALL disposing() override;
// XInterface
+ /// @throws css::uno::RuntimeException
static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException);
css::uno::Reference< css::lang::XMultiServiceFactory > getORB() const { return m_xORB; }
diff --git a/connectivity/source/inc/ado/APreparedStatement.hxx b/connectivity/source/inc/ado/APreparedStatement.hxx
index 73fce940e65d..3b25110bfc23 100644
--- a/connectivity/source/inc/ado/APreparedStatement.hxx
+++ b/connectivity/source/inc/ado/APreparedStatement.hxx
@@ -43,6 +43,8 @@ namespace connectivity
public css::lang::XServiceInfo
{
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setParameter(sal_Int32 parameterIndex, const DataTypeEnum& _eType, sal_Int32 _nSize,const OLEVariant& Val)
throw(css::sdbc::SQLException, css::uno::RuntimeException);
void replaceParameterNodeName( OSQLParseNode* _pNode,
diff --git a/connectivity/source/inc/ado/AResultSet.hxx b/connectivity/source/inc/ado/AResultSet.hxx
index a8b1ae9e8564..a54936aaa2ee 100644
--- a/connectivity/source/inc/ado/AResultSet.hxx
+++ b/connectivity/source/inc/ado/AResultSet.hxx
@@ -73,15 +73,31 @@ namespace connectivity
bool m_bEOF;
bool m_bOnFirstAfterOpen;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getResultSetConcurrency() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getResultSetType() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getFetchDirection() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getFetchSize() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static OUString getCursorName() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchDirection(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchSize(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
void updateValue(sal_Int32 columnIndex,const OLEVariant& x);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
OLEVariant getValue(sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
protected:
diff --git a/connectivity/source/inc/ado/AStatement.hxx b/connectivity/source/inc/ado/AStatement.hxx
index 976af476a000..dee1d80fa0d5 100644
--- a/connectivity/source/inc/ado/AStatement.hxx
+++ b/connectivity/source/inc/ado/AStatement.hxx
@@ -82,33 +82,69 @@ namespace connectivity
using OStatement_BASE::rBHelper;
private:
-
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getQueryTimeOut() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getMaxFieldSize() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getMaxRows() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getResultSetConcurrency() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getResultSetType() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static sal_Int32 getFetchDirection() throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
sal_Int32 getFetchSize() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
OUString getCursorName() const throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setQueryTimeOut(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setMaxFieldSize(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setMaxRows(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setResultSetConcurrency(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setResultSetType(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchDirection(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setFetchSize(sal_Int32 _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setCursorName(const OUString &_par0) throw(css::sdbc::SQLException, css::uno::RuntimeException);
protected:
void assignRecordSet( ADORecordset* _pRS );
+ /// @throws css::sdbc::SQLException
void reset () throw( css::sdbc::SQLException);
+ /// @throws css::sdbc::SQLException
void clearMyResultSet () throw( css::sdbc::SQLException);
+ /// @throws css::sdbc::SQLException
void setWarning (const css::sdbc::SQLWarning &ex) throw( css::sdbc::SQLException);
+ /// @throws css::sdbc::SQLException
sal_Int32 getColumnCount () throw( css::sdbc::SQLException);
+ /// @throws css::sdbc::SQLException
sal_Int32 getRowCount () throw( css::sdbc::SQLException);
sal_Int32 getPrecision ( sal_Int32 sqlType);
diff --git a/connectivity/source/inc/ado/ATable.hxx b/connectivity/source/inc/ado/ATable.hxx
index e40698556e7c..36b545332582 100644
--- a/connectivity/source/inc/ado/ATable.hxx
+++ b/connectivity/source/inc/ado/ATable.hxx
@@ -67,6 +67,8 @@ namespace connectivity
virtual void SAL_CALL alterColumnByName( const OUString& colName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) throw(css::sdbc::SQLException, css::container::NoSuchElementException, css::uno::RuntimeException) override;
virtual void SAL_CALL alterColumnByIndex( sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) throw(css::sdbc::SQLException, css::lang::IndexOutOfBoundsException, css::uno::RuntimeException) override;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
bool create() throw(css::sdbc::SQLException, css::uno::RuntimeException);
WpADOTable getImpl() const { return m_aTable;}
diff --git a/connectivity/source/inc/ado/ATables.hxx b/connectivity/source/inc/ado/ATables.hxx
index 7fa12b09d3f4..3433c723a0fb 100644
--- a/connectivity/source/inc/ado/ATables.hxx
+++ b/connectivity/source/inc/ado/ATables.hxx
@@ -36,6 +36,8 @@ namespace connectivity
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
virtual void impl_refresh() throw(css::uno::RuntimeException) override;
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setComments(const css::uno::Reference< css::beans::XPropertySet >& descriptor ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
virtual sdbcx::ObjectType appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
diff --git a/connectivity/source/inc/ado/AViews.hxx b/connectivity/source/inc/ado/AViews.hxx
index 13d9c0135c10..747696adc200 100644
--- a/connectivity/source/inc/ado/AViews.hxx
+++ b/connectivity/source/inc/ado/AViews.hxx
@@ -39,6 +39,8 @@ namespace connectivity
virtual void impl_refresh() throw(css::uno::RuntimeException) override;
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
virtual sdbcx::ObjectType appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
void setComments(const css::uno::Reference< css::beans::XPropertySet >& descriptor ) throw(css::sdbc::SQLException, css::uno::RuntimeException);
virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
public:
diff --git a/connectivity/source/inc/ado/adoimp.hxx b/connectivity/source/inc/ado/adoimp.hxx
index c360455086b0..0b6e52df14dc 100644
--- a/connectivity/source/inc/ado/adoimp.hxx
+++ b/connectivity/source/inc/ado/adoimp.hxx
@@ -72,6 +72,8 @@ namespace connectivity
static const CLSID CLSID_ADOVIEW_25;
static const IID IID_ADOVIEW_25;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static void ThrowException(ADOConnection* _pAdoCon,const css::uno::Reference< css::uno::XInterface >& _xInterface) throw(css::sdbc::SQLException, css::uno::RuntimeException);
static sal_Int32 MapADOType2Jdbc(DataTypeEnum eType);
static DataTypeEnum MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine);
@@ -82,6 +84,8 @@ namespace connectivity
static sal_Int32 mapAdoRights2Sdbc(RightsEnum eRights);
static sal_Int32 mapRights2Ado(sal_Int32 nRights);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
static WpADOField getField(ADORecordset* _pRecordSet,sal_Int32 _nColumnIndex) throw(css::sdbc::SQLException, css::uno::RuntimeException);
};