diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:59:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:24 +0100 |
commit | 5b2b75ac26961d3cef093ca546a5316be6f2d782 (patch) | |
tree | 281c24ea2f4b0a49630834a3ecc529cdc22e2402 /connectivity/source/inc/java | |
parent | 0d5e1cd497b0de0e62c5911fcd6b473689a1dfe7 (diff) |
New loplugin:dynexcspec: Add @throws documentation, connectivity
Change-Id: Id8711eaeac65efaa228b60d5786169016bfb61a3
Diffstat (limited to 'connectivity/source/inc/java')
-rw-r--r-- | connectivity/source/inc/java/sql/Driver.hxx | 3 | ||||
-rw-r--r-- | connectivity/source/inc/java/sql/JStatement.hxx | 34 | ||||
-rw-r--r-- | connectivity/source/inc/java/sql/ResultSet.hxx | 14 | ||||
-rw-r--r-- | connectivity/source/inc/java/tools.hxx | 2 |
4 files changed, 53 insertions, 0 deletions
diff --git a/connectivity/source/inc/java/sql/Driver.hxx b/connectivity/source/inc/java/sql/Driver.hxx index 876f00f1eb20..0eae2ffc06b1 100644 --- a/connectivity/source/inc/java/sql/Driver.hxx +++ b/connectivity/source/inc/java/sql/Driver.hxx @@ -29,6 +29,7 @@ namespace connectivity { + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL java_sql_Driver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); class java_sql_Driver : public ::cppu::WeakImplHelper< css::sdbc::XDriver,css::lang::XServiceInfo> @@ -42,7 +43,9 @@ namespace connectivity public: java_sql_Driver(const css::uno::Reference< css::uno::XComponentContext >& _rxContext); + /// @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); // XServiceInfo diff --git a/connectivity/source/inc/java/sql/JStatement.hxx b/connectivity/source/inc/java/sql/JStatement.hxx index 7c53219b5fea..f8a377a18a54 100644 --- a/connectivity/source/inc/java/sql/JStatement.hxx +++ b/connectivity/source/inc/java/sql/JStatement.hxx @@ -58,23 +58,57 @@ namespace connectivity { + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getQueryTimeOut() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getMaxFieldSize() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getMaxRows() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getResultSetConcurrency() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getResultSetType() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getFetchDirection() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getFetchSize() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException OUString getCursorName() 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); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void setEscapeProcessing(bool _par0) throw(css::sdbc::SQLException, css::uno::RuntimeException); protected: diff --git a/connectivity/source/inc/java/sql/ResultSet.hxx b/connectivity/source/inc/java/sql/ResultSet.hxx index 4ef232421530..22cdb392fdc0 100644 --- a/connectivity/source/inc/java/sql/ResultSet.hxx +++ b/connectivity/source/inc/java/sql/ResultSet.hxx @@ -65,13 +65,27 @@ namespace connectivity java::sql::ConnectionLog m_aLogger; java_sql_Connection* m_pConnection; + /// @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 sal_Int32 getFetchDirection() const 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 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); protected: // Static data for the class diff --git a/connectivity/source/inc/java/tools.hxx b/connectivity/source/inc/java/tools.hxx index e60446306f2e..9514bce98a4e 100644 --- a/connectivity/source/inc/java/tools.hxx +++ b/connectivity/source/inc/java/tools.hxx @@ -41,6 +41,8 @@ namespace connectivity OUString JavaString2String(JNIEnv *pEnv,jstring Str); class java_util_Properties; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException java_util_Properties* createStringPropertyArray(const css::uno::Sequence< css::beans::PropertyValue >& info ) throw(css::sdbc::SQLException, css::uno::RuntimeException); jobject convertTypeMapToJavaMap(JNIEnv *pEnv,const css::uno::Reference< css::container::XNameAccess > & _rMap); |