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/drivers | |
parent | 0d5e1cd497b0de0e62c5911fcd6b473689a1dfe7 (diff) |
New loplugin:dynexcspec: Add @throws documentation, connectivity
Change-Id: Id8711eaeac65efaa228b60d5786169016bfb61a3
Diffstat (limited to 'connectivity/source/drivers')
32 files changed, 102 insertions, 5 deletions
diff --git a/connectivity/source/drivers/evoab2/NConnection.hxx b/connectivity/source/drivers/evoab2/NConnection.hxx index ecc7b76c3229..bc1a39608f23 100644 --- a/connectivity/source/drivers/evoab2/NConnection.hxx +++ b/connectivity/source/drivers/evoab2/NConnection.hxx @@ -65,6 +65,7 @@ namespace connectivity public: explicit OEvoabConnection( OEvoabDriver& _rDriver ); + /// @throws css::sdbc::SQLException virtual void construct(const OUString& _rUrl,const css::uno::Sequence< css::beans::PropertyValue >& _rInfo ) throw( css::sdbc::SQLException); inline OString const & getPassword() { return m_aPassword; } diff --git a/connectivity/source/drivers/evoab2/NDriver.hxx b/connectivity/source/drivers/evoab2/NDriver.hxx index e0dc13dd94a2..952b9a060e5e 100644 --- a/connectivity/source/drivers/evoab2/NDriver.hxx +++ b/connectivity/source/drivers/evoab2/NDriver.hxx @@ -33,7 +33,7 @@ namespace connectivity { namespace evoab { - + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL OEvoabDriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception ); @@ -57,7 +57,9 @@ namespace connectivity 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/drivers/evoab2/NResultSetMetaData.hxx b/connectivity/source/drivers/evoab2/NResultSetMetaData.hxx index 7cae14957bcd..eca3a00bcc2d 100644 --- a/connectivity/source/drivers/evoab2/NResultSetMetaData.hxx +++ b/connectivity/source/drivers/evoab2/NResultSetMetaData.hxx @@ -43,6 +43,7 @@ namespace connectivity virtual ~OEvoabResultSetMetaData() override; public: explicit OEvoabResultSetMetaData(const OUString& _aTableName); + /// @throws css::sdbc::SQLException void setEvoabFields(const ::rtl::Reference<connectivity::OSQLColumns> &xColumns) throw(css::sdbc::SQLException); inline sal_uInt32 fieldAtColumn(sal_Int32 columnIndex) const { return m_aEvoabFields[columnIndex - 1]; } diff --git a/connectivity/source/drivers/firebird/Blob.hxx b/connectivity/source/drivers/firebird/Blob.hxx index 89daeac839ff..c8fd8c79e6f7 100644 --- a/connectivity/source/drivers/firebird/Blob.hxx +++ b/connectivity/source/drivers/firebird/Blob.hxx @@ -45,11 +45,14 @@ namespace connectivity ISC_STATUS_ARRAY m_statusVector; + /// @throws css::sdbc::SQLException void ensureBlobIsOpened() throw(css::sdbc::SQLException); /** * Closes the blob and cleans up resources -- can be used to reset * the blob if we e.g. want to read from the beginning again. + * + * @throws css::sdbc::SQLException */ void closeBlob() throw(css::sdbc::SQLException); diff --git a/connectivity/source/drivers/firebird/Connection.hxx b/connectivity/source/drivers/firebird/Connection.hxx index 420f0d7a283f..9e8d917c4393 100644 --- a/connectivity/source/drivers/firebird/Connection.hxx +++ b/connectivity/source/drivers/firebird/Connection.hxx @@ -156,6 +156,7 @@ namespace connectivity /** Statements owned by this connection. */ OWeakRefArray m_aStatements; + /// @throws css::sdbc::SQLException void buildTypeInfo() throw (css::sdbc::SQLException); @@ -163,6 +164,8 @@ namespace connectivity * Creates a new transaction with the desired parameters, if * necessary discarding an existing transaction. This has to be done * anytime we change the transaction isolation, or autocommiting. + * + * @throws css::sdbc::SQLException */ void setupTransaction() throw(css::sdbc::SQLException); @@ -180,6 +183,8 @@ namespace connectivity explicit Connection(FirebirdDriver* _pDriver); virtual ~Connection() override; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void construct( const ::rtl::OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info) throw(css::sdbc::SQLException, @@ -189,6 +194,7 @@ namespace connectivity const OUString& getConnectionURL() const {return m_sConnectionURL;} bool isEmbedded() const {return m_bIsEmbedded;} isc_db_handle& getDBHandle() {return m_aDBHandle;} + /// @throws css::sdbc::SQLException isc_tr_handle& getTransaction() throw(css::sdbc::SQLException); @@ -206,11 +212,16 @@ namespace connectivity * Create a new Blob tied to this connection. Blobs are tied to a * transaction and not to a statement, hence the connection should * deal with their management. + * + * @throws css::sdbc::SQLException + * @throws css::uno::RuntimeException */ css::uno::Reference< css::sdbc::XBlob> createBlob(ISC_QUAD* pBlobID) throw(css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Reference< css::sdbc::XClob> createClob(ISC_QUAD* pBlobID) throw(css::sdbc::SQLException, diff --git a/connectivity/source/drivers/firebird/Driver.hxx b/connectivity/source/drivers/firebird/Driver.hxx index ac017d788018..a48b13e11f53 100644 --- a/connectivity/source/drivers/firebird/Driver.hxx +++ b/connectivity/source/drivers/firebird/Driver.hxx @@ -38,6 +38,7 @@ namespace connectivity // 3: Is IB6 -- minimum required for delimited identifiers. static const int FIREBIRD_SQL_DIALECT = 3; + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL FirebirdDriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory) throw( css::uno::Exception, std::exception ); typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver, @@ -66,7 +67,9 @@ namespace connectivity // OComponentHelper virtual void SAL_CALL disposing() override; // XInterface + /// @throws css::uno::RuntimeException static ::rtl::OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException static css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException); // XServiceInfo diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx index 21f1d3b3183a..0062110899dd 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.hxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx @@ -53,6 +53,8 @@ namespace connectivity XSQLDA* m_pOutSqlda; XSQLDA* m_pInSqlda; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkParameterIndex(sal_Int32 nParameterIndex) throw(css::sdbc::SQLException, css::uno::RuntimeException); @@ -60,12 +62,17 @@ namespace connectivity /** * Set a numeric value in the input SQLDA. If the destination * parameter is not of nType then an Exception will be thrown. + * + * @throws css::sdbc::SQLException + * @throws css::uno::RuntimeException */ template <typename T> void setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) throw(css::sdbc::SQLException, css::uno::RuntimeException); void setParameterNull(sal_Int32 nParameterIndex, bool bSetNull = true); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void ensurePrepared() throw(css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx index 834e25e7b886..7d2a7c40bfec 100644 --- a/connectivity/source/drivers/firebird/ResultSet.hxx +++ b/connectivity/source/drivers/firebird/ResultSet.hxx @@ -113,9 +113,13 @@ namespace connectivity virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override; virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void SAL_CALL checkColumnIndex( sal_Int32 index ) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void SAL_CALL checkRowIndex() throw (css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.hxx b/connectivity/source/drivers/firebird/ResultSetMetaData.hxx index 17539bdf01bc..a183e97cd70a 100644 --- a/connectivity/source/drivers/firebird/ResultSetMetaData.hxx +++ b/connectivity/source/drivers/firebird/ResultSetMetaData.hxx @@ -43,6 +43,7 @@ namespace connectivity virtual ~OResultSetMetaData() override; + /// @throws css::sdbc::SQLException void verifyValidColumn(sal_Int32 column) throw(css::sdbc::SQLException); public: // a constructor, which is required for returning objects: diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.hxx b/connectivity/source/drivers/firebird/StatementCommonBase.hxx index ea5006f9ce31..11d9c3dab52b 100644 --- a/connectivity/source/drivers/firebird/StatementCommonBase.hxx +++ b/connectivity/source/drivers/firebird/StatementCommonBase.hxx @@ -65,6 +65,7 @@ namespace connectivity protected: virtual void disposeResultSet(); + /// @throws css::sdbc::SQLException void freeStatementHandle() throw (css::sdbc::SQLException); @@ -87,15 +88,19 @@ namespace connectivity sal_Int32 nHandle) const override; virtual ~OStatementCommonBase() override; + /// @throws css::sdbc::SQLException void prepareAndDescribeStatement(const OUString& sqlIn, XSQLDA*& pOutSqlda, XSQLDA* pInSqlda=nullptr) throw (css::sdbc::SQLException); + /// @throws css::sdbc::SQLException short getSqlInfoItem(char aInfoItem) throw (css::sdbc::SQLException); + /// @throws css::sdbc::SQLException bool isDDLStatement() throw (css::sdbc::SQLException); + /// @throws css::sdbc::SQLException sal_Int32 getStatementChangeCount() throw (css::sdbc::SQLException); diff --git a/connectivity/source/drivers/firebird/SubComponent.hxx b/connectivity/source/drivers/firebird/SubComponent.hxx index 609c07a9249c..9a6739e59a45 100644 --- a/connectivity/source/drivers/firebird/SubComponent.hxx +++ b/connectivity/source/drivers/firebird/SubComponent.hxx @@ -55,6 +55,7 @@ namespace connectivity css::uno::Reference< css::uno::XInterface >& _xInterface, css::lang::XComponent* _pObject); + /// @throws css::lang::DisposedException void checkDisposed(bool _bThrow) throw ( css::lang::DisposedException ); diff --git a/connectivity/source/drivers/firebird/Util.hxx b/connectivity/source/drivers/firebird/Util.hxx index 04d96d435414..c66ecd7d1209 100644 --- a/connectivity/source/drivers/firebird/Util.hxx +++ b/connectivity/source/drivers/firebird/Util.hxx @@ -55,6 +55,8 @@ namespace connectivity /** * Evaluate a firebird status vector and throw exceptions as necessary. * The content of the status vector is included in the thrown exception. + * + * @throws css::sdbc::SQLException */ void evaluateStatusVector(const ISC_STATUS_ARRAY& rStatusVector, const ::rtl::OUString& aCause, diff --git a/connectivity/source/drivers/mork/MConnection.hxx b/connectivity/source/drivers/mork/MConnection.hxx index 0e517daafc55..d7364c3e908b 100644 --- a/connectivity/source/drivers/mork/MConnection.hxx +++ b/connectivity/source/drivers/mork/MConnection.hxx @@ -48,6 +48,7 @@ namespace connectivity css::uno::Reference< css::sdbcx::XTablesSupplier> m_xCatalog; public: + /// @throws css::sdbc::SQLException void construct( const OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info) throw(css::sdbc::SQLException); explicit OConnection(MorkDriver* const driver); virtual ~OConnection() override; diff --git a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx index 2c991d01734c..10fb2c478a0e 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaData.hxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaData.hxx @@ -27,6 +27,7 @@ namespace connectivity std::unique_ptr<MDatabaseMetaDataHelper> m_pMetaDataHelper; + /// @throws css::sdbc::SQLException ODatabaseMetaDataResultSet::ORows& SAL_CALL getColumnRows( const OUString& tableNamePattern, const OUString& columnNamePattern ) throw( css::sdbc::SQLException ); protected: diff --git a/connectivity/source/drivers/mork/MResultSet.hxx b/connectivity/source/drivers/mork/MResultSet.hxx index cfdf6f4e53f3..a05b1b65dddc 100644 --- a/connectivity/source/drivers/mork/MResultSet.hxx +++ b/connectivity/source/drivers/mork/MResultSet.hxx @@ -238,6 +238,8 @@ protected: ::rtl::Reference<connectivity::OSQLColumns> m_xParamColumns; void parseParameter( const OSQLParseNode* pNode, OUString& rMatchString ); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void fillRowData() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); void analyseWhereClause( const OSQLParseNode* parseTree, MQueryExpression &queryExpression); @@ -252,8 +254,12 @@ protected: sal_uInt32 currentRowCount(); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException bool fetchRow(sal_Int32 rowIndex,bool bForceReload=false) throw( css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException bool fetchCurrentRow() throw( css::sdbc::SQLException, css::uno::RuntimeException); static bool pushCard(sal_uInt32 ) { return true; } @@ -262,16 +268,24 @@ protected: sal_Int32 deletedCount(); bool fillKeySet(sal_Int32 nMaxCardNumber); //When we get new rows, fill the m_pKeySet items for them sal_Int32 getRowForCardNumber(sal_Int32 nCardNum); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException const ORowSetValue& getValue(sal_Int32 rowIndex, 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); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException static void checkPendingUpdate() throw(css::sdbc::SQLException, css::uno::RuntimeException); sal_Int32 getCurrentCardNumber(); public: bool determineReadOnly(); // MozAddressbook Specific methods + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void SAL_CALL executeQuery() throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception); @@ -295,6 +309,7 @@ public: inline sal_Int32 mapColumn(sal_Int32 column); + /// @throws css::sdbc::SQLException void checkIndex(sal_Int32 columnIndex ) throw(css::sdbc::SQLException); static void setBoundedColumns( diff --git a/connectivity/source/drivers/mork/MResultSetMetaData.hxx b/connectivity/source/drivers/mork/MResultSetMetaData.hxx index 2e60a2ed86a4..78db8d3f3bb9 100644 --- a/connectivity/source/drivers/mork/MResultSetMetaData.hxx +++ b/connectivity/source/drivers/mork/MResultSetMetaData.hxx @@ -57,7 +57,8 @@ namespace connectivity ,m_bReadOnly(aReadOnly) {} - + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkColumnIndex(sal_Int32 column) throw(css::sdbc::SQLException, css::uno::RuntimeException); virtual sal_Int32 SAL_CALL getColumnCount( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; diff --git a/connectivity/source/drivers/mork/MStatement.hxx b/connectivity/source/drivers/mork/MStatement.hxx index 883957524230..3127bbb20a4e 100644 --- a/connectivity/source/drivers/mork/MStatement.hxx +++ b/connectivity/source/drivers/mork/MStatement.hxx @@ -104,6 +104,9 @@ namespace connectivity enum StatementType { eSelect, eCreateTable }; /** called to do the parsing of a to-be-executed SQL statement, and set all members as needed + + @throws css::sdbc::SQLException + @throws css::uno::RuntimeException */ virtual StatementType parseSql( const OUString& sql , bool bAdjusted = false) throw ( css::sdbc::SQLException, css::uno::RuntimeException, std::exception ); diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx index 25874dfe5c0b..9b44ffb2091b 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx @@ -51,6 +51,7 @@ class IniParser IniSectionMap mAllSection; public: IniSectionMap& getAllSection() { return mAllSection; } + /// @throws css::io::IOException explicit IniParser(OUString const & rIniName) throw(css::io::IOException, std::exception); }; diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx index 40a343c53fa5..8de3f03d8e6b 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx @@ -70,11 +70,17 @@ namespace connectivity public: ~ProfileAccess(); ProfileAccess(); + /// @throws css::uno::RuntimeException OUString getProfilePath( css::mozilla::MozillaProductType product, const OUString& profileName ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException ::sal_Int32 getProfileCount( css::mozilla::MozillaProductType product ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException ::sal_Int32 getProfileList( css::mozilla::MozillaProductType product, css::uno::Sequence< OUString >& list ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException OUString getDefaultProfile( css::mozilla::MozillaProductType product ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException bool SAL_CALL isProfileLocked( css::mozilla::MozillaProductType product, const OUString& profileName ) throw (css::uno::RuntimeException); + /// @throws css::uno::RuntimeException bool SAL_CALL getProfileExists( css::mozilla::MozillaProductType product, const OUString& profileName ) throw (css::uno::RuntimeException); private: ProductStruct m_ProductProfileList[4]; diff --git a/connectivity/source/drivers/odbc/ORealDriver.hxx b/connectivity/source/drivers/odbc/ORealDriver.hxx index 2b9e3d6ed883..d015bb42c0bd 100644 --- a/connectivity/source/drivers/odbc/ORealDriver.hxx +++ b/connectivity/source/drivers/odbc/ORealDriver.hxx @@ -32,6 +32,7 @@ namespace com { namespace sun { namespace star { namespace connectivity { namespace odbc { +/// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > ODBCDriver_CreateInstance( css::uno::Reference< css::lang::XMultiServiceFactory > const & factory) throw (css::uno::Exception); diff --git a/connectivity/source/drivers/postgresql/pq_baseresultset.hxx b/connectivity/source/drivers/postgresql/pq_baseresultset.hxx index 9f0d3c696ccb..caf3218b548f 100644 --- a/connectivity/source/drivers/postgresql/pq_baseresultset.hxx +++ b/connectivity/source/drivers/postgresql/pq_baseresultset.hxx @@ -80,9 +80,14 @@ protected: protected: /** mutex should be locked before called + + @throws css::sdbc::SQLException + @throws css::uno::RuntimeException */ virtual void checkClosed() throw ( css::sdbc::SQLException, css::uno::RuntimeException ) = 0; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkColumnIndex( sal_Int32 index ) throw ( css::sdbc::SQLException, css::uno::RuntimeException ); void checkRowIndex(); diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 2e3560022ac1..0ae43eee2808 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -658,7 +658,7 @@ Reference< XNameAccess > Connection::getUsers() return m_settings.users; } - +/// @throws Exception Reference< XInterface > ConnectionCreateInstance( const Reference< XComponentContext > & ctx ) throw (Exception, std::exception) { diff --git a/connectivity/source/drivers/postgresql/pq_connection.hxx b/connectivity/source/drivers/postgresql/pq_connection.hxx index cfb4cccf1b9c..fe5cc2a31996 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.hxx +++ b/connectivity/source/drivers/postgresql/pq_connection.hxx @@ -165,6 +165,8 @@ class Connection : public ConnectionBase WeakHashMap m_myStatements; private: + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkClosed() throw ( css::sdbc::SQLException, css::uno::RuntimeException ); diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.hxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.hxx index 1b84178fd0b7..7087f20387c4 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.hxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.hxx @@ -56,9 +56,17 @@ class DatabaseMetaData : css::uno::Reference< css::sdbc::XPreparedStatement > m_getTablePrivs_stmt; css::uno::Reference< css::sdbc::XPreparedStatement > m_getColumnPrivs_stmt; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getIntSetting(const OUString& settingName) throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getMaxIndexKeys() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException sal_Int32 getMaxNameLength() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException css::uno::Reference< css::sdbc::XResultSet > getImportedExportedKeys( const css::uno::Any& primaryCatalog, const OUString& primarySchema, const OUString& primaryTable, const css::uno::Any& foreignCatalog, const OUString& foreignSchema, const OUString& foreignTable ) diff --git a/connectivity/source/drivers/postgresql/pq_preparedstatement.hxx b/connectivity/source/drivers/postgresql/pq_preparedstatement.hxx index 408d14543011..c3fc3c8d0be2 100644 --- a/connectivity/source/drivers/postgresql/pq_preparedstatement.hxx +++ b/connectivity/source/drivers/postgresql/pq_preparedstatement.hxx @@ -250,7 +250,10 @@ public: // OComponentHelper private: void checkColumnIndex( sal_Int32 parameterIndex ); + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkClosed() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException void raiseSQLException( const char * errorMsg ) throw ( css::sdbc::SQLException ); // PGresult *pgExecute( OString *pQuery ); diff --git a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.hxx b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.hxx index 1642fc4029f7..077368751992 100644 --- a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.hxx +++ b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.hxx @@ -78,6 +78,8 @@ class ResultSetMetaData : sal_Int32 m_colCount; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkColumnIndex( sal_Int32 columnIndex ) throw (css::sdbc::SQLException, css::uno::RuntimeException); void checkTable(); diff --git a/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.hxx b/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.hxx index 11066a9b1e30..d115b8f750c5 100644 --- a/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.hxx +++ b/connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata.hxx @@ -51,6 +51,8 @@ namespace pq_sdbc_driver ColumnMetaDataVector m_columnData; sal_Int32 m_colCount; + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkColumnIndex( sal_Int32 columnIndex ) throw (css::sdbc::SQLException, css::uno::RuntimeException); diff --git a/connectivity/source/drivers/postgresql/pq_statement.cxx b/connectivity/source/drivers/postgresql/pq_statement.cxx index 805c7b9f963d..e465fa254ed9 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.cxx +++ b/connectivity/source/drivers/postgresql/pq_statement.cxx @@ -276,7 +276,7 @@ sal_Int32 Statement::executeUpdate( const OUString& sql ) return m_multipleResultUpdateCount; } - +/// @throws SQLException static void raiseSQLException( ConnectionSettings *pSettings, const Reference< XInterface> & owner, diff --git a/connectivity/source/drivers/postgresql/pq_statement.hxx b/connectivity/source/drivers/postgresql/pq_statement.hxx index 981fcafd64fe..437eac12c0e6 100644 --- a/connectivity/source/drivers/postgresql/pq_statement.hxx +++ b/connectivity/source/drivers/postgresql/pq_statement.hxx @@ -175,7 +175,10 @@ public: // XResultSetMetaDataSupplier (is required by framework (see throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; private: + /// @throws css::sdbc::SQLException + /// @throws css::uno::RuntimeException void checkClosed() throw (css::sdbc::SQLException, css::uno::RuntimeException); + /// @throws css::sdbc::SQLException void raiseSQLException( const OUString & sql, const char * errorMsg ) throw ( css::sdbc::SQLException ); }; diff --git a/connectivity/source/drivers/postgresql/pq_tools.hxx b/connectivity/source/drivers/postgresql/pq_tools.hxx index 6ab147c76d39..cce2d5a640f4 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.hxx +++ b/connectivity/source/drivers/postgresql/pq_tools.hxx @@ -103,6 +103,7 @@ OString extractSingleTableFromSelect( const OStringVector &vec ); void tokenizeSQL( const OString & sql, OStringVector &vec ); void splitSQL( const OString & sql, OStringVector &vec ); std::vector< sal_Int32 > parseIntArray( const OUString & str ); +/// @throws css::sdbc::SQLException std::vector< css::uno::Any > parseArray( const OUString & str ) throw( css::sdbc::SQLException ); diff --git a/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx b/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx index 7db28ca314a5..040281dec8fb 100644 --- a/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx +++ b/connectivity/source/drivers/postgresql/pq_updateableresultset.hxx @@ -163,7 +163,7 @@ public: // XRowUpdate virtual void SAL_CALL updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale ) throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override; public: - + /// @throws css::uno::RuntimeException static css::uno::Sequence< css::uno::Type > getStaticTypes( bool updateable ) throw( css::uno::RuntimeException ); diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.hxx b/connectivity/source/drivers/postgresql/pq_xcontainer.hxx index e5589b1478f4..6c7a80c113f9 100644 --- a/connectivity/source/drivers/postgresql/pq_xcontainer.hxx +++ b/connectivity/source/drivers/postgresql/pq_xcontainer.hxx @@ -160,6 +160,7 @@ public: // XAppend css::uno::RuntimeException, std::exception) override; // helper method ! + /// @throws css::container::ElementExistException void append( const OUString & str, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) |