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 | |
parent | 0d5e1cd497b0de0e62c5911fcd6b473689a1dfe7 (diff) |
New loplugin:dynexcspec: Add @throws documentation, connectivity
Change-Id: Id8711eaeac65efaa228b60d5786169016bfb61a3
Diffstat (limited to 'connectivity/source/inc')
28 files changed, 214 insertions, 3 deletions
diff --git a/connectivity/source/inc/FDatabaseMetaDataResultSet.hxx b/connectivity/source/inc/FDatabaseMetaDataResultSet.hxx index ccfdfa1dde95..808380563719 100644 --- a/connectivity/source/inc/FDatabaseMetaDataResultSet.hxx +++ b/connectivity/source/inc/FDatabaseMetaDataResultSet.hxx @@ -122,6 +122,7 @@ namespace connectivity sal_Int32 m_nResultSetConcurrency; void construct(); + /// @throws css::sdbc::SQLException void checkIndex(sal_Int32 columnIndex ) throw(css::sdbc::SQLException); void setType(MetaDataResultSetType _eType); @@ -153,7 +154,9 @@ namespace connectivity // XServiceInfo + /// @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); protected: diff --git a/connectivity/source/inc/ParameterSubstitution.hxx b/connectivity/source/inc/ParameterSubstitution.hxx index df664617750d..fa9d94bc30d2 100644 --- a/connectivity/source/inc/ParameterSubstitution.hxx +++ b/connectivity/source/inc/ParameterSubstitution.hxx @@ -41,8 +41,9 @@ namespace connectivity ParameterSubstitution( const ParameterSubstitution& ) = delete; ParameterSubstitution& operator=( const ParameterSubstitution& ) = delete; public: - + /// @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); static css::uno::Reference< css::uno::XInterface > create( const css::uno::Reference< css::uno::XComponentContext > & xContext); protected: diff --git a/connectivity/source/inc/calc/CDriver.hxx b/connectivity/source/inc/calc/CDriver.hxx index 39867264852e..2a5cb622e18e 100644 --- a/connectivity/source/inc/calc/CDriver.hxx +++ b/connectivity/source/inc/calc/CDriver.hxx @@ -28,6 +28,7 @@ namespace connectivity { namespace calc { + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ODriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); @@ -39,6 +40,7 @@ namespace connectivity css::uno::XComponentContext >& _rxContext) : file::OFileDriver(_rxContext) {} + /// @throws css::uno::RuntimeException static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); OUString SAL_CALL getImplementationName( ) throw(css::uno::RuntimeException, std::exception) override; diff --git a/connectivity/source/inc/dbase/DDriver.hxx b/connectivity/source/inc/dbase/DDriver.hxx index 64b5bdad4c9b..79c7d560c765 100644 --- a/connectivity/source/inc/dbase/DDriver.hxx +++ b/connectivity/source/inc/dbase/DDriver.hxx @@ -28,7 +28,7 @@ namespace connectivity { namespace dbase { - + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ODriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); class ODriver : public file::OFileDriver @@ -37,6 +37,7 @@ namespace connectivity ODriver(const css::uno::Reference< css::uno::XComponentContext >& _rxContext) : file::OFileDriver(_rxContext){} // XInterface + /// @throws css::uno::RuntimeException static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); // static css::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException); diff --git a/connectivity/source/inc/dbase/DTable.hxx b/connectivity/source/inc/dbase/DTable.hxx index 3711aed8b473..7ea5d8516db9 100644 --- a/connectivity/source/inc/dbase/DTable.hxx +++ b/connectivity/source/inc/dbase/DTable.hxx @@ -114,6 +114,9 @@ namespace connectivity bool AllocBuffer(); void throwInvalidDbaseFormat(); + /// @throws css::sdbc::SQLException + /// @throws css::container::ElementExistException + /// @throws css::uno::RuntimeException void SAL_CALL renameImpl( const OUString& newName ) throw(css::sdbc::SQLException, css::container::ElementExistException, css::uno::RuntimeException, std::exception); void throwInvalidColumnType(const sal_uInt16 _nErrorId,const OUString& _sColumnName); diff --git a/connectivity/source/inc/file/FConnection.hxx b/connectivity/source/inc/file/FConnection.hxx index f25d82f349e7..e9ee85e9e235 100644 --- a/connectivity/source/inc/file/FConnection.hxx +++ b/connectivity/source/inc/file/FConnection.hxx @@ -76,6 +76,9 @@ namespace connectivity OConnection(OFileDriver* _pDriver); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException + /// @throws css::uno::DeploymentException virtual void construct(const OUString& _rUrl, const css::uno::Sequence< css::beans::PropertyValue >& _rInfo ) throw( css::sdbc::SQLException, css::uno::RuntimeException, diff --git a/connectivity/source/inc/file/FDriver.hxx b/connectivity/source/inc/file/FDriver.hxx index 90909d669299..0031644c664a 100644 --- a/connectivity/source/inc/file/FDriver.hxx +++ b/connectivity/source/inc/file/FDriver.hxx @@ -50,7 +50,9 @@ namespace connectivity // OComponentHelper virtual void SAL_CALL disposing() override; // XInterface + /// @throws css::uno::DeploymentException static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); + /// @throws css::uno::DeploymentException static css::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException); // XServiceInfo diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index ea0576814682..e6fd70322a90 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -136,10 +136,15 @@ namespace connectivity // return true when the select statement is "select count(*) from table" inline bool isCount() const { return m_bIsCount; } + /// @throws css::sdbc::SQLException void checkIndex(sal_Int32 columnIndex ) throw(css::sdbc::SQLException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException const ORowSetValue& getValue(sal_Int32 columnIndex) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void updateValue(sal_Int32 columnIndex,const ORowSetValue& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException); // clear insert row void clearInsertRow(); diff --git a/connectivity/source/inc/file/FResultSetMetaData.hxx b/connectivity/source/inc/file/FResultSetMetaData.hxx index baadbc9d3629..aa7691edad2d 100644 --- a/connectivity/source/inc/file/FResultSetMetaData.hxx +++ b/connectivity/source/inc/file/FResultSetMetaData.hxx @@ -43,6 +43,8 @@ namespace connectivity ::rtl::Reference<connectivity::OSQLColumns> m_xColumns; OFileTable* m_pTable; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkColumnIndex(sal_Int32 column) throw(css::sdbc::SQLException, css::uno::RuntimeException); protected: virtual ~OResultSetMetaData() override; diff --git a/connectivity/source/inc/file/FStatement.hxx b/connectivity/source/inc/file/FStatement.hxx index 50059b8eb80c..257076f01626 100644 --- a/connectivity/source/inc/file/FStatement.hxx +++ b/connectivity/source/inc/file/FStatement.hxx @@ -107,6 +107,8 @@ namespace connectivity virtual void initializeResultSet(OResultSet* _pResult); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void closeResultSet() throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception); void disposeResultSet(); @@ -135,6 +137,8 @@ namespace connectivity using OStatement_BASE::operator css::uno::Reference< css::uno::XInterface >; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException virtual void construct(const OUString& sql) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); // OComponentHelper diff --git a/connectivity/source/inc/file/fcomp.hxx b/connectivity/source/inc/file/fcomp.hxx index 90f99dc86899..3f07487be100 100644 --- a/connectivity/source/inc/file/fcomp.hxx +++ b/connectivity/source/inc/file/fcomp.hxx @@ -68,12 +68,26 @@ namespace connectivity void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols) { m_orgColumns = rCols; } const css::uno::Reference< css::container::XNameAccess>& getOrigColumns() const { return m_orgColumns; } protected: + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void execute_COMPARE(connectivity::OSQLParseNode* pPredicateNode) throw( css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void execute_LIKE(connectivity::OSQLParseNode* pPredicateNode) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void execute_BETWEEN(connectivity::OSQLParseNode* pPredicateNode) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void execute_ISNULL(connectivity::OSQLParseNode* pPredicateNode) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException OOperand* execute_Operand(connectivity::OSQLParseNode* pPredicateNode) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void execute_Fold(OSQLParseNode* pPredicateNode) throw( css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void executeFunction(OSQLParseNode* pPredicateNode) throw( css::sdbc::SQLException, css::uno::RuntimeException); }; diff --git a/connectivity/source/inc/flat/EDriver.hxx b/connectivity/source/inc/flat/EDriver.hxx index 0d9641cd6c51..ece686c5be74 100644 --- a/connectivity/source/inc/flat/EDriver.hxx +++ b/connectivity/source/inc/flat/EDriver.hxx @@ -28,7 +28,7 @@ namespace connectivity { namespace flat { - + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ODriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); class ODriver : public file::OFileDriver @@ -37,6 +37,7 @@ namespace connectivity ODriver(const css::uno::Reference< css::uno::XComponentContext >& _rxContext) : file::OFileDriver(_rxContext){} // XInterface + /// @throws css::uno::RuntimeException static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); // static css::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException); diff --git a/connectivity/source/inc/hsqldb/HDriver.hxx b/connectivity/source/inc/hsqldb/HDriver.hxx index dd19db7ebc1d..a63e4734e3a1 100644 --- a/connectivity/source/inc/hsqldb/HDriver.hxx +++ b/connectivity/source/inc/hsqldb/HDriver.hxx @@ -38,6 +38,7 @@ namespace connectivity namespace hsqldb { + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ODriverDelegator_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver @@ -87,7 +88,9 @@ namespace connectivity // XServiceInfo DECLARE_SERVICE_INFO(); + /// @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); // XDriver diff --git a/connectivity/source/inc/hsqldb/HUser.hxx b/connectivity/source/inc/hsqldb/HUser.hxx index 051112e78e71..74f94aa44bc9 100644 --- a/connectivity/source/inc/hsqldb/HUser.hxx +++ b/connectivity/source/inc/hsqldb/HUser.hxx @@ -35,6 +35,8 @@ namespace connectivity static OUString getPrivilegeString(sal_Int32 nRights); // return the privileges and additional the grant rights + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void findPrivilegesAndGrantPrivileges(const OUString& objName, sal_Int32 objType,sal_Int32& nRights,sal_Int32& nRightsWithGrant) throw(css::sdbc::SQLException, css::uno::RuntimeException); public: virtual void refreshGroups() override; 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); diff --git a/connectivity/source/inc/mysql/YDriver.hxx b/connectivity/source/inc/mysql/YDriver.hxx index c3d5c92c383e..917e6f07b322 100644 --- a/connectivity/source/inc/mysql/YDriver.hxx +++ b/connectivity/source/inc/mysql/YDriver.hxx @@ -42,6 +42,7 @@ namespace connectivity namespace mysql { + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL ODriverDelegator_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxMSF) throw( css::uno::Exception ); typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver @@ -86,7 +87,9 @@ namespace connectivity // XServiceInfo DECLARE_SERVICE_INFO(); + /// @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); // XDriver diff --git a/connectivity/source/inc/mysql/YUser.hxx b/connectivity/source/inc/mysql/YUser.hxx index a527f85bc403..07bdfc88cd37 100644 --- a/connectivity/source/inc/mysql/YUser.hxx +++ b/connectivity/source/inc/mysql/YUser.hxx @@ -35,6 +35,8 @@ namespace connectivity static OUString getPrivilegeString(sal_Int32 nRights); // return the privileges and additional the grant rights + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void findPrivilegesAndGrantPrivileges(const OUString& objName, sal_Int32 objType,sal_Int32& nRights,sal_Int32& nRightsWithGrant) throw(css::sdbc::SQLException, css::uno::RuntimeException); public: virtual void refreshGroups() override; diff --git a/connectivity/source/inc/odbc/OConnection.hxx b/connectivity/source/inc/odbc/OConnection.hxx index a3c0067e4a07..83894821c103 100644 --- a/connectivity/source/inc/odbc/OConnection.hxx +++ b/connectivity/source/inc/odbc/OConnection.hxx @@ -78,6 +78,7 @@ namespace connectivity public: oslGenericFunction getOdbcFunction(ODBC3SQLFunctionId _nIndex) const; + /// @throws css::sdbc::SQLException SQLRETURN Construct( const OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info) throw(css::sdbc::SQLException, std::exception); OConnection(const SQLHANDLE _pDriverHandle,ODBCDriver* _pDriver); diff --git a/connectivity/source/inc/odbc/ODatabaseMetaDataResultSet.hxx b/connectivity/source/inc/odbc/ODatabaseMetaDataResultSet.hxx index 5ab546e4d888..0040e80fd740 100644 --- a/connectivity/source/inc/odbc/ODatabaseMetaDataResultSet.hxx +++ b/connectivity/source/inc/odbc/ODatabaseMetaDataResultSet.hxx @@ -84,7 +84,11 @@ namespace connectivity // set the columncount of the driver void checkColumnCount(); static sal_Int32 getFetchDirection() { return css::sdbc::FetchDirection::FORWARD; } + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static sal_Int32 getFetchSize() 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); SWORD impl_getColumnType_nothrow(sal_Int32 columnIndex); @@ -184,34 +188,70 @@ namespace connectivity // XColumnLocate virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openTablesTypes( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openTypeInfo() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openCatalogs() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openSchemas() throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openTables(const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const css::uno::Sequence< OUString >& types ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openColumnPrivileges( const css::uno::Any& catalog, const OUString& schema, const OUString& table, const OUString& columnNamePattern )throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern )throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openProcedureColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern,const OUString& columnNamePattern )throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openProcedures( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openVersionColumns(const css::uno::Any& catalog, const OUString& schema, const OUString& table)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openBestRowIdentifier( const css::uno::Any& catalog, const OUString& schema, const OUString& table,sal_Int32 scope, bool nullable )throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openForeignKeys( const css::uno::Any& catalog, const OUString* schema,const OUString* table, const css::uno::Any& catalog2, const OUString* schema2,const OUString* table2)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openExportedKeys(const css::uno::Any& catalog, const OUString& schema,const OUString& table)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openImportedKeys(const css::uno::Any& catalog, const OUString& schema,const OUString& table)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openPrimaryKeys(const css::uno::Any& catalog, const OUString& schema,const OUString& table)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openTablePrivileges(const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern)throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openSpecialColumns(bool _bRowVer,const css::uno::Any& catalog, const OUString& schema, const OUString& table,sal_Int32 scope, bool nullable )throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void openIndexInfo( const css::uno::Any& catalog, const OUString& schema, const OUString& table,bool unique,bool approximate )throw(css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/inc/odbc/ODriver.hxx b/connectivity/source/inc/odbc/ODriver.hxx index 0c86c0695618..10751f94ac62 100644 --- a/connectivity/source/inc/odbc/ODriver.hxx +++ b/connectivity/source/inc/odbc/ODriver.hxx @@ -59,7 +59,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); // XServiceInfo diff --git a/connectivity/source/inc/odbc/OPreparedStatement.hxx b/connectivity/source/inc/odbc/OPreparedStatement.hxx index 528289d88bf9..764dccf03062 100644 --- a/connectivity/source/inc/odbc/OPreparedStatement.hxx +++ b/connectivity/source/inc/odbc/OPreparedStatement.hxx @@ -59,12 +59,17 @@ namespace connectivity bool m_bPrepared; void FreeParams(); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void putParamData (sal_Int32 index) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void setStream (sal_Int32 ParameterIndex,const css::uno::Reference< css::io::XInputStream>& x, SQLLEN length,sal_Int32 SQLtype) throw (css::sdbc::SQLException, css::uno::RuntimeException); SQLLEN* getLengthBuf (sal_Int32 index); void* allocBindBuf ( sal_Int32 index, sal_Int32 bufLen); + /// @throws css::sdbc::SQLException void initBoundParam () throw(css::sdbc::SQLException); void setParameterPre(sal_Int32 parameterIndex); template <typename T> void setScalarParameter(sal_Int32 parameterIndex, sal_Int32 _nType, SQLULEN _nColumnSize, const T i_Value); diff --git a/connectivity/source/inc/odbc/OResultSet.hxx b/connectivity/source/inc/odbc/OResultSet.hxx index 1f4965a56b45..5c157d06006b 100644 --- a/connectivity/source/inc/odbc/OResultSet.hxx +++ b/connectivity/source/inc/odbc/OResultSet.hxx @@ -167,6 +167,8 @@ namespace connectivity void fillColumn(sal_Int32 _nToColumn); void allocBuffer(); void releaseBuffer(); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void updateValue(sal_Int32 columnIndex,SQLSMALLINT _nType,void* _pValue) throw(css::sdbc::SQLException, css::uno::RuntimeException); void fillNeededData(SQLRETURN _nRet); bool moveImpl(IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset); @@ -180,13 +182,29 @@ namespace connectivity // for simple cases template < typename T > T impl_getValue( const sal_Int32 _nColumnIndex, SQLSMALLINT nType ); // these cases need some special treatment + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException bool impl_getBoolean( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Sequence< sal_Int8 > impl_getBytes( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::util::Date impl_getDate( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::util::Time impl_getTime( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::util::DateTime impl_getTimestamp( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int64 impl_getLong( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException OUString impl_getString( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Sequence<sal_Int8> impl_getBookmark( ) throw(css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/inc/odbc/OResultSetMetaData.hxx b/connectivity/source/inc/odbc/OResultSetMetaData.hxx index ed80647e27be..b496b7b63b70 100644 --- a/connectivity/source/inc/odbc/OResultSetMetaData.hxx +++ b/connectivity/source/inc/odbc/OResultSetMetaData.hxx @@ -48,7 +48,11 @@ namespace connectivity sal_Int32 m_nColCount; bool m_bUseODBC2Types; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException OUString getCharColAttrib(sal_Int32 column,sal_Int32 ident) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getNumColAttrib(sal_Int32 column,sal_Int32 ident) throw(css::sdbc::SQLException, css::uno::RuntimeException); public: // A ctor that is needed for returning the object @@ -68,12 +72,16 @@ namespace connectivity virtual ~OResultSetMetaData() override; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static SQLLEN getNumColAttrib(OConnection* _pConnection ,SQLHANDLE _aStatementHandle ,const css::uno::Reference< css::uno::XInterface >& _xInterface ,sal_Int32 _column ,sal_Int32 ident) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static SQLSMALLINT getColumnODBCType(OConnection* _pConnection ,SQLHANDLE _aStatementHandle ,const css::uno::Reference< css::uno::XInterface >& _xInterface diff --git a/connectivity/source/inc/odbc/OStatement.hxx b/connectivity/source/inc/odbc/OStatement.hxx index 462007c338ca..917187cc9b67 100644 --- a/connectivity/source/inc/odbc/OStatement.hxx +++ b/connectivity/source/inc/odbc/OStatement.hxx @@ -102,11 +102,21 @@ namespace connectivity void setResultSetType(sal_Int32 _par0) ; void setUsingBookmarks(bool _bUseBookmark) ; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void reset() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void clearMyResultSet() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void setWarning (const css::sdbc::SQLWarning &ex) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException bool lockIfNecessary (const OUString& sql) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getColumnCount() throw (css::sdbc::SQLException, css::uno::RuntimeException); @@ -114,6 +124,8 @@ namespace connectivity // getResultSet returns the current result as a ResultSet. It // returns NULL if the current result is not a ResultSet. + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Reference<css::sdbc::XResultSet> getResultSet(bool checkCount) throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception); /** @@ -121,6 +133,8 @@ namespace connectivity */ virtual OResultSet* createResulSet(); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException SQLLEN getRowCount() throw (css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/inc/odbc/OTools.hxx b/connectivity/source/inc/odbc/OTools.hxx index d821a772b131..919101e72ba5 100644 --- a/connectivity/source/inc/odbc/OTools.hxx +++ b/connectivity/source/inc/odbc/OTools.hxx @@ -99,6 +99,7 @@ namespace connectivity class OOO_DLLPUBLIC_ODBCBASE OTools { public: + /// @throws css::sdbc::SQLException static void ThrowException( const OConnection* _pConnection, SQLRETURN _rRetCode, SQLHANDLE _pContext, @@ -108,6 +109,8 @@ namespace connectivity rtl_TextEncoding _nTextEncoding = RTL_TEXTENCODING_MS_1252) throw(css::sdbc::SQLException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void GetInfo(OConnection* _pConnection, SQLHANDLE _aConnectionHandle, SQLUSMALLINT _nInfo, @@ -116,18 +119,24 @@ namespace connectivity rtl_TextEncoding _nTextEncoding) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void GetInfo(OConnection* _pConnection, SQLHANDLE _aConnectionHandle, SQLUSMALLINT _nInfo, sal_Int32 &_rValue, const css::uno::Reference< css::uno::XInterface >& _xInterface) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void GetInfo(OConnection* _pConnection, SQLHANDLE _aConnectionHandle, SQLUSMALLINT _nInfo, SQLUSMALLINT &_rValue, const css::uno::Reference< css::uno::XInterface >& _xInterface) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void GetInfo(OConnection* _pConnection, SQLHANDLE _aConnectionHandle, SQLUSMALLINT _nInfo, @@ -179,6 +188,8 @@ namespace connectivity SQLSMALLINT& fCType, SQLSMALLINT& fSqlType); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static OUString getStringValue( OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, @@ -187,12 +198,16 @@ namespace connectivity const css::uno::Reference< css::uno::XInterface >& _xInterface, rtl_TextEncoding _nTextEncoding) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static css::uno::Sequence<sal_Int8> getBytesValue(const OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, SQLSMALLINT _fSqlType, bool &_bWasNull, const css::uno::Reference< css::uno::XInterface >& _xInterface) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void getValue( OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, @@ -202,6 +217,8 @@ namespace connectivity void* _pValue, SQLLEN _nSize) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void bindValue( OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, @@ -215,6 +232,8 @@ namespace connectivity bool _bUseOldTimeDate) throw(css::sdbc::SQLException, css::uno::RuntimeException); }; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException template <class T> void getValue( OConnection* _pConnection, SQLHANDLE _aStatementHandle, sal_Int32 columnIndex, |