summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/firebird')
-rw-r--r--connectivity/source/drivers/firebird/Blob.cxx12
-rw-r--r--connectivity/source/drivers/firebird/Blob.hxx54
-rw-r--r--connectivity/source/drivers/firebird/Clob.cxx5
-rw-r--r--connectivity/source/drivers/firebird/Clob.hxx20
-rw-r--r--connectivity/source/drivers/firebird/Column.cxx2
-rw-r--r--connectivity/source/drivers/firebird/Column.hxx2
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx43
-rw-r--r--connectivity/source/drivers/firebird/Connection.hxx68
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx246
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.hxx298
-rw-r--r--connectivity/source/drivers/firebird/Driver.cxx21
-rw-r--r--connectivity/source/drivers/firebird/Driver.hxx30
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.cxx49
-rw-r--r--connectivity/source/drivers/firebird/PreparedStatement.hxx111
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx81
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.hxx101
-rw-r--r--connectivity/source/drivers/firebird/ResultSetMetaData.cxx25
-rw-r--r--connectivity/source/drivers/firebird/ResultSetMetaData.hxx65
-rw-r--r--connectivity/source/drivers/firebird/Statement.cxx12
-rw-r--r--connectivity/source/drivers/firebird/Statement.hxx24
-rw-r--r--connectivity/source/drivers/firebird/StatementCommonBase.cxx27
-rw-r--r--connectivity/source/drivers/firebird/StatementCommonBase.hxx40
-rw-r--r--connectivity/source/drivers/firebird/SubComponent.hxx2
-rw-r--r--connectivity/source/drivers/firebird/Table.cxx4
-rw-r--r--connectivity/source/drivers/firebird/Table.hxx16
-rw-r--r--connectivity/source/drivers/firebird/Tables.cxx1
-rw-r--r--connectivity/source/drivers/firebird/Tables.hxx3
-rw-r--r--connectivity/source/drivers/firebird/Users.cxx1
-rw-r--r--connectivity/source/drivers/firebird/Users.hxx3
-rw-r--r--connectivity/source/drivers/firebird/Util.cxx1
-rw-r--r--connectivity/source/drivers/firebird/Util.hxx3
31 files changed, 527 insertions, 843 deletions
diff --git a/connectivity/source/drivers/firebird/Blob.cxx b/connectivity/source/drivers/firebird/Blob.cxx
index 2c6b95261c31..0677388f1610 100644
--- a/connectivity/source/drivers/firebird/Blob.cxx
+++ b/connectivity/source/drivers/firebird/Blob.cxx
@@ -45,7 +45,6 @@ Blob::Blob(isc_db_handle* pDatabaseHandle,
}
void Blob::ensureBlobIsOpened()
- throw(SQLException)
{
MutexGuard aGuard(m_aMutex);
@@ -94,7 +93,6 @@ void Blob::ensureBlobIsOpened()
}
void Blob::closeBlob()
- throw (SQLException)
{
MutexGuard aGuard(m_aMutex);
@@ -132,7 +130,6 @@ void SAL_CALL Blob::disposing()
}
sal_Int64 SAL_CALL Blob::length()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Blob_BASE::rBHelper.bDisposed);
@@ -143,7 +140,6 @@ sal_Int64 SAL_CALL Blob::length()
uno::Sequence< sal_Int8 > SAL_CALL Blob::getBytes(sal_Int64 nPosition,
sal_Int32 nBytes)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Blob_BASE::rBHelper.bDisposed);
@@ -172,14 +168,12 @@ uno::Sequence< sal_Int8 > SAL_CALL Blob::getBytes(sal_Int64 nPosition,
}
uno::Reference< XInputStream > SAL_CALL Blob::getBinaryStream()
- throw(SQLException, RuntimeException, std::exception)
{
return this;
}
sal_Int64 SAL_CALL Blob::position(const uno::Sequence< sal_Int8 >& /*rPattern*/,
sal_Int64 /*nStart*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFeatureNotImplementedSQLException("Blob::position", *this);
return 0;
@@ -187,7 +181,6 @@ sal_Int64 SAL_CALL Blob::position(const uno::Sequence< sal_Int8 >& /*rPattern*/
sal_Int64 SAL_CALL Blob::positionOfBlob(const uno::Reference< XBlob >& /*rPattern*/,
sal_Int64 /*aStart*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFeatureNotImplementedSQLException("Blob::positionOfBlob", *this);
return 0;
@@ -197,7 +190,6 @@ sal_Int64 SAL_CALL Blob::positionOfBlob(const uno::Reference< XBlob >& /*rPatte
sal_Int32 SAL_CALL Blob::readBytes(uno::Sequence< sal_Int8 >& rDataOut,
sal_Int32 nBytes)
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
@@ -263,7 +255,6 @@ sal_Int32 SAL_CALL Blob::readBytes(uno::Sequence< sal_Int8 >& rDataOut,
sal_Int32 SAL_CALL Blob::readSomeBytes(uno::Sequence< sal_Int8 >& rDataOut,
sal_Int32 nMaximumBytes)
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
// We don't have any way of verifying how many bytes are immediately available,
// hence we just pass through direct to readBytes
@@ -272,7 +263,6 @@ sal_Int32 SAL_CALL Blob::readSomeBytes(uno::Sequence< sal_Int8 >& rDataOut,
}
void SAL_CALL Blob::skipBytes(sal_Int32 nBytesToSkip)
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
// There is no way of directly skipping, hence we have to pretend to skip
// by reading & discarding the data.
@@ -281,7 +271,6 @@ void SAL_CALL Blob::skipBytes(sal_Int32 nBytesToSkip)
}
sal_Int32 SAL_CALL Blob::available()
- throw (NotConnectedException, IOException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
@@ -314,7 +303,6 @@ sal_Int32 SAL_CALL Blob::available()
}
void SAL_CALL Blob::closeInput()
- throw(NotConnectedException, IOException, RuntimeException, std::exception)
{
try
{
diff --git a/connectivity/source/drivers/firebird/Blob.hxx b/connectivity/source/drivers/firebird/Blob.hxx
index c8fd8c79e6f7..eb8e282bf911 100644
--- a/connectivity/source/drivers/firebird/Blob.hxx
+++ b/connectivity/source/drivers/firebird/Blob.hxx
@@ -46,16 +46,14 @@ namespace connectivity
ISC_STATUS_ARRAY m_statusVector;
/// @throws css::sdbc::SQLException
- void ensureBlobIsOpened()
- throw(css::sdbc::SQLException);
+ void ensureBlobIsOpened();
/**
* 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);
+ void closeBlob();
public:
Blob(isc_db_handle* pDatabaseHandle,
@@ -64,59 +62,31 @@ namespace connectivity
// ---- XBlob ----------------------------------------------------
virtual sal_Int64 SAL_CALL
- length()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ length() override;
virtual css::uno::Sequence< sal_Int8 > SAL_CALL
- getBytes(sal_Int64 aPosition, sal_Int32 aLength)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ getBytes(sal_Int64 aPosition, sal_Int32 aLength) override;
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL
- getBinaryStream()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ getBinaryStream() override;
virtual sal_Int64 SAL_CALL
position(const css::uno::Sequence< sal_Int8 >& rPattern,
- sal_Int64 aStart)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int64 aStart) override;
virtual sal_Int64 SAL_CALL
positionOfBlob(const css::uno::Reference< css::sdbc::XBlob >& rPattern,
- sal_Int64 aStart)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int64 aStart) override;
// ---- XInputStream ----------------------------------------------
virtual sal_Int32 SAL_CALL
readBytes(css::uno::Sequence< sal_Int8 >& rDataOut,
- sal_Int32 nBytes)
- throw(css::io::NotConnectedException,
- css::io::BufferSizeExceededException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int32 nBytes) override;
virtual sal_Int32 SAL_CALL
readSomeBytes(css::uno::Sequence< sal_Int8 >& rDataOut,
- sal_Int32 nMaximumBytes)
- throw(css::io::NotConnectedException,
- css::io::BufferSizeExceededException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int32 nMaximumBytes) override;
virtual void SAL_CALL
- skipBytes(sal_Int32 nBytes)
- throw(css::io::NotConnectedException,
- css::io::BufferSizeExceededException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override;
+ skipBytes(sal_Int32 nBytes) override;
virtual sal_Int32 SAL_CALL
- available()
- throw(css::io::NotConnectedException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override;
+ available() override;
virtual void SAL_CALL
- closeInput()
- throw(css::io::NotConnectedException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override;
+ closeInput() override;
// ---- OComponentHelper ------------------------------------------
virtual void SAL_CALL disposing() override;
diff --git a/connectivity/source/drivers/firebird/Clob.cxx b/connectivity/source/drivers/firebird/Clob.cxx
index 83d95797d4d9..4f70a000a242 100644
--- a/connectivity/source/drivers/firebird/Clob.cxx
+++ b/connectivity/source/drivers/firebird/Clob.cxx
@@ -40,7 +40,6 @@ void SAL_CALL Clob::disposing()
}
sal_Int64 SAL_CALL Clob::length()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Clob_BASE::rBHelper.bDisposed);
@@ -56,7 +55,6 @@ sal_Int64 SAL_CALL Clob::length()
OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition,
sal_Int32 nLength)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Clob_BASE::rBHelper.bDisposed);
@@ -76,7 +74,6 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition,
}
uno::Reference< XInputStream > SAL_CALL Clob::getCharacterStream()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Clob_BASE::rBHelper.bDisposed);
@@ -86,7 +83,6 @@ uno::Reference< XInputStream > SAL_CALL Clob::getCharacterStream()
sal_Int64 SAL_CALL Clob::position(const OUString& /*rPattern*/,
sal_Int32 /*nStart*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFeatureNotImplementedSQLException("Clob::position", *this);
return 0;
@@ -94,7 +90,6 @@ sal_Int64 SAL_CALL Clob::position(const OUString& /*rPattern*/,
sal_Int64 SAL_CALL Clob::positionOfClob(const Reference <XClob >& /*rPattern*/,
sal_Int64 /*aStart*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFeatureNotImplementedSQLException("Blob::positionOfBlob", *this);
return 0;
diff --git a/connectivity/source/drivers/firebird/Clob.hxx b/connectivity/source/drivers/firebird/Clob.hxx
index dfa40dedd484..b71bec19fa51 100644
--- a/connectivity/source/drivers/firebird/Clob.hxx
+++ b/connectivity/source/drivers/firebird/Clob.hxx
@@ -45,27 +45,17 @@ namespace connectivity
// ---- XClob ----------------------------------------------------
virtual sal_Int64 SAL_CALL
- length()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ length() override;
virtual ::rtl::OUString SAL_CALL
- getSubString(sal_Int64 aPosition, sal_Int32 aLength)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ getSubString(sal_Int64 aPosition, sal_Int32 aLength) override;
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL
- getCharacterStream()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ getCharacterStream() override;
virtual sal_Int64 SAL_CALL
position(const ::rtl::OUString& rPattern,
- sal_Int32 aStart)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int32 aStart) override;
virtual sal_Int64 SAL_CALL
positionOfClob(const ::css::uno::Reference< ::css::sdbc::XClob >& rPattern,
- sal_Int64 aStart)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ sal_Int64 aStart) override;
// ---- OComponentHelper ------------------------------------------
virtual void SAL_CALL disposing() override;
};
diff --git a/connectivity/source/drivers/firebird/Column.cxx b/connectivity/source/drivers/firebird/Column.cxx
index 38c367cfcc43..78ea2534e1fc 100644
--- a/connectivity/source/drivers/firebird/Column.cxx
+++ b/connectivity/source/drivers/firebird/Column.cxx
@@ -45,7 +45,7 @@ void Column::construct()
return *Column_PROP::getArrayHelper(isNew() ? 1 : 0);
}
-css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception)
+css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( )
{
css::uno::Sequence< OUString > aSupported { "com.sun.star.sdbc.Firebird" };
diff --git a/connectivity/source/drivers/firebird/Column.hxx b/connectivity/source/drivers/firebird/Column.hxx
index 0b1ea67c1544..33d49516b6d7 100644
--- a/connectivity/source/drivers/firebird/Column.hxx
+++ b/connectivity/source/drivers/firebird/Column.hxx
@@ -28,7 +28,7 @@ namespace connectivity
public:
Column();
virtual void construct() override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
}
}
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index 54ee5efdd7c9..7c39219943ee 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -145,7 +145,6 @@ struct ConnectionGuard
};
void Connection::construct(const ::rtl::OUString& url, const Sequence< PropertyValue >& info)
- throw (SQLException, RuntimeException, std::exception)
{
ConnectionGuard aGuard(m_refCount);
@@ -360,7 +359,6 @@ IMPLEMENT_SERVICE_INFO(Connection, "com.sun.star.sdbc.drivers.firebird.Connectio
"com.sun.star.sdbc.Connection")
Reference< XBlob> Connection::createBlob(ISC_QUAD* pBlobId)
- throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -374,7 +372,6 @@ Reference< XBlob> Connection::createBlob(ISC_QUAD* pBlobId)
}
Reference< XClob> Connection::createClob(ISC_QUAD* pBlobId)
- throw(SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -390,7 +387,6 @@ Reference< XClob> Connection::createClob(ISC_QUAD* pBlobId)
//----- XConnection ----------------------------------------------------------
Reference< XStatement > SAL_CALL Connection::createStatement( )
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -432,7 +428,6 @@ OUString Connection::transformPreparedStatement(const OUString& _sSQL)
Reference< XPreparedStatement > SAL_CALL Connection::prepareStatement(
const OUString& _sSql)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "prepareStatement() "
"called with sql: " << _sSql);
@@ -452,7 +447,7 @@ Reference< XPreparedStatement > SAL_CALL Connection::prepareStatement(
}
Reference< XPreparedStatement > SAL_CALL Connection::prepareCall(
- const OUString& _sSql ) throw(SQLException, RuntimeException, std::exception)
+ const OUString& _sSql )
{
SAL_INFO("connectivity.firebird", "prepareCall(). "
"_sSql: " << _sSql);
@@ -467,7 +462,6 @@ Reference< XPreparedStatement > SAL_CALL Connection::prepareCall(
}
OUString SAL_CALL Connection::nativeSQL( const OUString& _sSql )
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
// We do not need to adapt the SQL for Firebird atm.
@@ -475,7 +469,6 @@ OUString SAL_CALL Connection::nativeSQL( const OUString& _sSql )
}
void SAL_CALL Connection::setAutoCommit( sal_Bool autoCommit )
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -488,7 +481,7 @@ void SAL_CALL Connection::setAutoCommit( sal_Bool autoCommit )
}
}
-sal_Bool SAL_CALL Connection::getAutoCommit() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL Connection::getAutoCommit()
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -497,7 +490,6 @@ sal_Bool SAL_CALL Connection::getAutoCommit() throw(SQLException, RuntimeExcepti
}
void Connection::setupTransaction()
- throw (SQLException)
{
MutexGuard aGuard( m_aMutex );
ISC_STATUS status_vector[20];
@@ -555,7 +547,6 @@ void Connection::setupTransaction()
}
isc_tr_handle& Connection::getTransaction()
- throw (SQLException)
{
MutexGuard aGuard( m_aMutex );
if (!m_aTransactionHandle)
@@ -565,7 +556,7 @@ isc_tr_handle& Connection::getTransaction()
return m_aTransactionHandle;
}
-void SAL_CALL Connection::commit() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL Connection::commit()
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -720,7 +711,7 @@ void Connection::runBackupService(const short nAction)
}
-void SAL_CALL Connection::rollback() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL Connection::rollback()
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -733,7 +724,7 @@ void SAL_CALL Connection::rollback() throw(SQLException, RuntimeException, std::
}
}
-sal_Bool SAL_CALL Connection::isClosed( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL Connection::isClosed( )
{
MutexGuard aGuard( m_aMutex );
@@ -741,7 +732,7 @@ sal_Bool SAL_CALL Connection::isClosed( ) throw(SQLException, RuntimeException,
return Connection_BASE::rBHelper.bDisposed;
}
-Reference< XDatabaseMetaData > SAL_CALL Connection::getMetaData( ) throw(SQLException, RuntimeException, std::exception)
+Reference< XDatabaseMetaData > SAL_CALL Connection::getMetaData( )
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -759,7 +750,6 @@ Reference< XDatabaseMetaData > SAL_CALL Connection::getMetaData( ) throw(SQLExc
}
void SAL_CALL Connection::setReadOnly(sal_Bool readOnly)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -768,7 +758,7 @@ void SAL_CALL Connection::setReadOnly(sal_Bool readOnly)
setupTransaction();
}
-sal_Bool SAL_CALL Connection::isReadOnly() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL Connection::isReadOnly()
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -777,19 +767,17 @@ sal_Bool SAL_CALL Connection::isReadOnly() throw(SQLException, RuntimeException,
}
void SAL_CALL Connection::setCatalog(const OUString& /*catalog*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFunctionNotSupportedSQLException("setCatalog", *this);
}
OUString SAL_CALL Connection::getCatalog()
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFunctionNotSupportedSQLException("getCatalog", *this);
return OUString();
}
-void SAL_CALL Connection::setTransactionIsolation( sal_Int32 level ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL Connection::setTransactionIsolation( sal_Int32 level )
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -798,7 +786,7 @@ void SAL_CALL Connection::setTransactionIsolation( sal_Int32 level ) throw(SQLEx
setupTransaction();
}
-sal_Int32 SAL_CALL Connection::getTransactionIsolation( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL Connection::getTransactionIsolation( )
{
MutexGuard aGuard( m_aMutex );
checkDisposed(Connection_BASE::rBHelper.bDisposed);
@@ -806,21 +794,20 @@ sal_Int32 SAL_CALL Connection::getTransactionIsolation( ) throw(SQLException, R
return m_aTransactionIsolation;
}
-Reference< XNameAccess > SAL_CALL Connection::getTypeMap() throw(SQLException, RuntimeException, std::exception)
+Reference< XNameAccess > SAL_CALL Connection::getTypeMap()
{
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::getTypeMap", *this );
return nullptr;
}
void SAL_CALL Connection::setTypeMap(const Reference< XNameAccess >& typeMap)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setTypeMap", *this );
(void) typeMap;
}
//----- XCloseable -----------------------------------------------------------
-void SAL_CALL Connection::close( ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL Connection::close( )
{
// we just dispose us
{
@@ -832,20 +819,19 @@ void SAL_CALL Connection::close( ) throw(SQLException, RuntimeException, std::e
}
// XWarningsSupplier
-Any SAL_CALL Connection::getWarnings( ) throw(SQLException, RuntimeException, std::exception)
+Any SAL_CALL Connection::getWarnings( )
{
// when you collected some warnings -> return it
return Any();
}
-void SAL_CALL Connection::clearWarnings( ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL Connection::clearWarnings( )
{
// you should clear your collected warnings here
}
// XDocumentEventListener
void SAL_CALL Connection::documentEventOccured( const DocumentEvent& Event )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
@@ -899,14 +885,13 @@ void SAL_CALL Connection::documentEventOccured( const DocumentEvent& Event )
}
// XEventListener
void SAL_CALL Connection::disposing(const EventObject& /*rSource*/)
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_xEmbeddedStorage.clear();
}
-void Connection::buildTypeInfo() throw( SQLException)
+void Connection::buildTypeInfo()
{
MutexGuard aGuard( m_aMutex );
diff --git a/connectivity/source/drivers/firebird/Connection.hxx b/connectivity/source/drivers/firebird/Connection.hxx
index 9e8d917c4393..6c6df60beffd 100644
--- a/connectivity/source/drivers/firebird/Connection.hxx
+++ b/connectivity/source/drivers/firebird/Connection.hxx
@@ -157,8 +157,7 @@ namespace connectivity
OWeakRefArray m_aStatements;
/// @throws css::sdbc::SQLException
- void buildTypeInfo()
- throw (css::sdbc::SQLException);
+ void buildTypeInfo();
/**
* Creates a new transaction with the desired parameters, if
@@ -167,8 +166,7 @@ namespace connectivity
*
* @throws css::sdbc::SQLException
*/
- void setupTransaction()
- throw(css::sdbc::SQLException);
+ void setupTransaction();
void disposeStatements();
/** transform named parameters into unnamed parameters
@@ -186,17 +184,13 @@ namespace connectivity
/// @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,
- css::uno::RuntimeException,
- std::exception);
+ const css::uno::Sequence< css::beans::PropertyValue >& info);
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);
+ isc_tr_handle& getTransaction();
/**
* Must be called anytime the underlying database is likely to have
@@ -217,15 +211,11 @@ namespace connectivity
* @throws css::uno::RuntimeException
*/
css::uno::Reference< css::sdbc::XBlob>
- createBlob(ISC_QUAD* pBlobID)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException);
+ createBlob(ISC_QUAD* pBlobID);
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::sdbc::XClob>
- createClob(ISC_QUAD* pBlobID)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException);
+ createClob(ISC_QUAD* pBlobID);
/**
* Create and/or connect to the sdbcx Catalog. This is completely
@@ -242,33 +232,33 @@ namespace connectivity
// XServiceInfo
DECLARE_SERVICE_INFO();
// XConnection
- virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement( const ::rtl::OUString& sql ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall( const ::rtl::OUString& sql ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL nativeSQL( const ::rtl::OUString& sql ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoCommit( sal_Bool autoCommit ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getAutoCommit( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL commit( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL rollback( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isClosed( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setReadOnly( sal_Bool readOnly ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isReadOnly( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCatalog( const ::rtl::OUString& catalog ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getCatalog( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTransactionIsolation( sal_Int32 level ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getTransactionIsolation( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTypeMap( const css::uno::Reference< css::container::XNameAccess >& typeMap ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement( ) override;
+ virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement( const ::rtl::OUString& sql ) override;
+ virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall( const ::rtl::OUString& sql ) override;
+ virtual ::rtl::OUString SAL_CALL nativeSQL( const ::rtl::OUString& sql ) override;
+ virtual void SAL_CALL setAutoCommit( sal_Bool autoCommit ) override;
+ virtual sal_Bool SAL_CALL getAutoCommit( ) override;
+ virtual void SAL_CALL commit( ) override;
+ virtual void SAL_CALL rollback( ) override;
+ virtual sal_Bool SAL_CALL isClosed( ) override;
+ virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) override;
+ virtual void SAL_CALL setReadOnly( sal_Bool readOnly ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( ) override;
+ virtual void SAL_CALL setCatalog( const ::rtl::OUString& catalog ) override;
+ virtual ::rtl::OUString SAL_CALL getCatalog( ) override;
+ virtual void SAL_CALL setTransactionIsolation( sal_Int32 level ) override;
+ virtual sal_Int32 SAL_CALL getTransactionIsolation( ) override;
+ virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap( ) override;
+ virtual void SAL_CALL setTypeMap( const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
// XCloseable
- virtual void SAL_CALL close( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL close( ) override;
// XWarningsSupplier
- virtual css::uno::Any SAL_CALL getWarnings( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearWarnings( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
// XDocumentEventListener
- virtual void SAL_CALL documentEventOccured( const css::document::DocumentEvent& Event ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL documentEventOccured( const css::document::DocumentEvent& Event ) override;
// css.lang.XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
};
}
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index f774438e6335..66d9783ba9cd 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -55,103 +55,95 @@ ODatabaseMetaData::~ODatabaseMetaData()
}
//----- Catalog Info -- UNSUPPORTED -------------------------------------------
-OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator() throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator()
{
return OUString();
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength()
{
return -1;
}
-OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getCatalogTerm()
{
return OUString();
}
-sal_Bool SAL_CALL ODatabaseMetaData::isCatalogAtStart() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::isCatalogAtStart()
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions()
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions()
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation( )
{
return false;
}
-uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs()
{
OSL_FAIL("Not implemented yet!");
// TODO implement
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eCatalogs);
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls()
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions()
{
return false;
}
//----- Schema Info -- UNSUPPORTED --------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength()
- throw(SQLException, RuntimeException, std::exception)
{
return -1;
}
OUString SAL_CALL ODatabaseMetaData::getSchemaTerm()
- throw(SQLException, RuntimeException, std::exception)
{
return OUString();
}
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas()
- throw(SQLException, RuntimeException, std::exception)
{
OSL_FAIL("Not implemented yet!");
// TODO implement
@@ -159,68 +151,68 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas()
}
//----- Max Sizes/Lengths -----------------------------------------------------
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength()
{
return 32767;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize()
{
return 32767;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength()
{
return 32767;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength()
{
return 31;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex()
{
// TODO: No idea.
// See: http://www.firebirdsql.org/en/firebird-technical-specifications/
return 16;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength()
{
return 32;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections()
{
return 100; // Arbitrary
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable()
{
// May however be smaller.
// See: http://www.firebirdsql.org/en/firebird-technical-specifications/
return 32767;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength()
{
return 32767;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength()
{
return 31;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( )
{
return false;
}
@@ -228,25 +220,22 @@ sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLExc
// ---- Identifiers -----------------------------------------------------------
// Only quoted identifiers are case sensitive, unquoted are case insensitive
OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString()
- throw(SQLException, RuntimeException, std::exception)
{
OUString aVal('"');
return aVal;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers( )
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
// TODO: confirm this -- the documentation is highly ambiguous
// However it seems this should be true as quoted identifiers ARE
@@ -255,7 +244,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers()
}
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
@@ -263,80 +251,67 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers()
// ---- Unquoted Identifiers -------------------------------------------------
// All unquoted identifiers are stored upper case.
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
// ---- SQL Feature Support ---------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable()
- throw(SQLException, RuntimeException, std::exception)
{
// TODO: true if embedded, but unsure about remote server
return true;
@@ -344,7 +319,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable()
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 fromType,
sal_Int32 toType)
- throw(SQLException, RuntimeException, std::exception)
{
(void) fromType;
(void) toType;
@@ -352,109 +326,95 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 fromType,
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( )
{
return true;
}
-OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( )
{
OUString aVal;
return aVal;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( )
{
return false;
}
// ---- Data definition stuff -------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::
supportsDataDefinitionAndDataManipulationTransactions()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
//----- Transaction Support --------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback()
- throw(SQLException, RuntimeException, std::exception)
{
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions()
- throw(SQLException, RuntimeException, std::exception)
{
return true;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel(
sal_Int32 aLevel)
- throw(SQLException, RuntimeException, std::exception)
{
return aLevel == TransactionIsolation::READ_UNCOMMITTED
|| aLevel == TransactionIsolation::READ_COMMITTED
@@ -463,290 +423,288 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel(
}
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
- throw(SQLException, RuntimeException, std::exception)
{
return TransactionIsolation::REPEATABLE_READ;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( )
{
return true; // should be supported at least
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( )
{
return true;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( )
{
sal_Int32 nValue = 31; // TODO: confirm
return nValue;
}
-sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( )
{
return true;
}
-sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( )
{
return m_pConnection->isReadOnly();
}
-sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( )
{
return m_pConnection->isEmbedded();
}
-sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( )
{
return true;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( )
{
// Unsure
return true;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( )
{
// Unsure
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( )
{
return true;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( )
{
return true;
}
-sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( )
{
return false;
}
-OUString SAL_CALL ODatabaseMetaData::getURL() throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getURL()
{
return m_pConnection->getConnectionURL();
}
-OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getUserName( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getDriverName( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getDriverVersion()
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( )
{
OUString aValue;
return aValue;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( )
{
return 1;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( )
{
return 0;
}
-OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( )
{
OUString aValue;
return aValue;
}
-OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getStringFunctions( )
{
return OUString();
}
-OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( )
{
return OUString();
}
-OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( )
{
return OUString();
}
-OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException, std::exception)
+OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( )
{
return OUString();
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( )
{
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( )
{
return false;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( )
{
sal_Int32 nValue = 0; // 0 means no limit
return nValue;
}
-sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( )
{
return 31;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType)
- throw(SQLException, RuntimeException, std::exception)
{
switch (setType)
{
@@ -760,7 +718,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType)
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(
sal_Int32 aResultSetType,
sal_Int32 aConcurrency)
- throw(SQLException, RuntimeException, std::exception)
{
if (aResultSetType == ResultSetType::FORWARD_ONLY
&& aConcurrency == ResultSetConcurrency::READ_ONLY)
@@ -769,69 +726,67 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType )
{
(void) setType;
return false;
}
-sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType )
{
(void) setType;
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates()
- throw(SQLException, RuntimeException, std::exception)
{
// No batch support in firebird
return false;
}
uno::Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection()
- throw(SQLException, RuntimeException, std::exception)
{
return uno::Reference<XConnection>(m_pConnection.get());
}
@@ -841,7 +796,7 @@ uno::Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection()
// of course you could implement it on your and you should do this because
// the general way is more memory expensive
-uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( )
{
ODatabaseMetaDataResultSet* pResultSet = new
ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eTableTypes);
@@ -869,7 +824,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw
}
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getTypeInfo()");
@@ -1077,7 +1031,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
const OUString& /*sSchema*/,
const OUString& sTable,
const OUString& sColumnNamePattern)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getColumnPrivileges() with "
"Table: " << sTable
@@ -1153,7 +1106,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const OUString& /*schemaPattern*/,
const OUString& tableNamePattern,
const OUString& columnNamePattern)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getColumns() with "
"TableNamePattern: " << tableNamePattern <<
@@ -1343,7 +1295,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const OUString& /*schemaPattern*/,
const OUString& tableNamePattern,
const Sequence< OUString >& types)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getTables() with "
"TableNamePattern: " << tableNamePattern);
@@ -1468,7 +1419,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
const Any& catalog, const OUString& schemaPattern,
- const OUString& procedureNamePattern, const OUString& columnNamePattern ) throw(SQLException, RuntimeException, std::exception)
+ const OUString& procedureNamePattern, const OUString& columnNamePattern )
{
SAL_WARN("connectivity.firebird", "Not yet implemented");
(void) catalog;
@@ -1482,7 +1433,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
const Any& catalog, const OUString& schemaPattern,
- const OUString& procedureNamePattern ) throw(SQLException, RuntimeException, std::exception)
+ const OUString& procedureNamePattern )
{
SAL_WARN("connectivity.firebird", "Not yet implemented");
(void) catalog;
@@ -1494,7 +1445,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
}
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
- const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException, std::exception)
+ const Any& catalog, const OUString& schema, const OUString& table )
{
SAL_WARN("connectivity.firebird", "Not yet implemented");
(void) catalog;
@@ -1506,7 +1457,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
}
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
- const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException, std::exception)
+ const Any& catalog, const OUString& schema, const OUString& table )
{
// List the columns in a table which are foreign keys. This is actually
// never used anywhere in the LO codebase currently. Retrieval from firebird
@@ -1521,7 +1472,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
}
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
- const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException, std::exception)
+ const Any& catalog, const OUString& schema, const OUString& table )
{
(void) catalog;
(void) schema;
@@ -1613,7 +1564,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
const Any& /*aCatalog*/,
const OUString& /*sSchema*/,
const OUString& sTable)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getPrimaryKeys() with "
"Table: " << sTable);
@@ -1676,7 +1626,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
const OUString& sTable,
sal_Bool bIsUnique,
sal_Bool bIsApproximate)
- throw(SQLException, RuntimeException, std::exception)
{
// Apparently this method can also return a "tableIndexStatistic"
// However this is only mentioned in XDatabaseMetaData.idl (whose comments
@@ -1766,7 +1715,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
const Any& catalog, const OUString& schema, const OUString& table, sal_Int32 scope,
- sal_Bool nullable ) throw(SQLException, RuntimeException, std::exception)
+ sal_Bool nullable )
{
(void) catalog;
(void) schema;
@@ -1782,7 +1731,6 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& /*aCatalog*/,
const OUString& /*sSchemaPattern*/,
const OUString& sTableNamePattern)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "getTablePrivileges() with "
"TableNamePattern: " << sTableNamePattern);
@@ -1849,7 +1797,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
const Any& primaryCatalog, const OUString& primarySchema,
const OUString& primaryTable, const Any& foreignCatalog,
- const OUString& foreignSchema, const OUString& foreignTable ) throw(SQLException, RuntimeException, std::exception)
+ const OUString& foreignSchema, const OUString& foreignTable )
{
(void) primaryCatalog;
(void) primarySchema;
@@ -1862,7 +1810,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
return new ODatabaseMetaDataResultSet(ODatabaseMetaDataResultSet::eCrossReference);
}
-uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const Sequence< sal_Int32 >& types ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const Sequence< sal_Int32 >& types )
{
(void) catalog;
(void) schemaPattern;
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.hxx b/connectivity/source/drivers/firebird/DatabaseMetaData.hxx
index fc9b1cfdb037..aeb7acab00d9 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.hxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.hxx
@@ -45,155 +45,155 @@ namespace connectivity
// as I mentioned before this interface is really BIG
// XDatabaseMetaData
- virtual sal_Bool SAL_CALL allProceduresAreCallable( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL allTablesAreSelectable( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getURL( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getUserName( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isReadOnly( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL nullsAreSortedHigh( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL nullsAreSortedLow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL nullsAreSortedAtStart( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL nullsAreSortedAtEnd( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getDatabaseProductName( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getDatabaseProductVersion( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getDriverName( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getDriverVersion( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDriverMajorVersion( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDriverMinorVersion( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL usesLocalFiles( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL usesLocalFilePerTable( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsMixedCaseIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesUpperCaseIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesLowerCaseIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesMixedCaseIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsMixedCaseQuotedIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL storesMixedCaseQuotedIdentifiers( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getIdentifierQuoteString( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getSQLKeywords( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getNumericFunctions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getStringFunctions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getSystemFunctions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getTimeDateFunctions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getSearchStringEscape( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getExtraNameCharacters( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsAlterTableWithAddColumn( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsAlterTableWithDropColumn( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsColumnAliasing( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL nullPlusNonNullIsNull( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsTypeConversion( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsTableCorrelationNames( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsDifferentTableCorrelationNames( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsExpressionsInOrderBy( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOrderByUnrelated( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsGroupBy( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsGroupByUnrelated( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsGroupByBeyondSelect( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsLikeEscapeClause( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsMultipleResultSets( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsMultipleTransactions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsNonNullableColumns( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsMinimumSQLGrammar( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCoreSQLGrammar( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsExtendedSQLGrammar( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsANSI92EntryLevelSQL( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsANSI92IntermediateSQL( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsANSI92FullSQL( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsIntegrityEnhancementFacility( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOuterJoins( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsFullOuterJoins( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsLimitedOuterJoins( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getSchemaTerm( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getProcedureTerm( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getCatalogTerm( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isCatalogAtStart( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getCatalogSeparator( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSchemasInDataManipulation( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSchemasInProcedureCalls( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSchemasInTableDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSchemasInIndexDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInDataManipulation( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInProcedureCalls( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInTableDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsPositionedDelete( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsPositionedUpdate( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSelectForUpdate( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsStoredProcedures( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInComparisons( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInExists( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInIns( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInQuantifieds( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsCorrelatedSubqueries( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsUnion( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsUnionAll( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInGroupBy( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInOrderBy( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInSelect( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxConnections( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxCursorNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxIndexLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxSchemaNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxProcedureNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxCatalogNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxRowSize( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxStatementLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxStatements( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxTableNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxTablesInSelect( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMaxUserNameLength( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getDefaultTransactionIsolation( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsTransactions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsTransactionIsolationLevel( sal_Int32 level ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedures( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& procedureNamePattern ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedureColumns( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& procedureNamePattern, const ::rtl::OUString& columnNamePattern ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTables( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, const css::uno::Sequence< ::rtl::OUString >& types ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getSchemas( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCatalogs( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTableTypes( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumns( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, const ::rtl::OUString& columnNamePattern ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumnPrivileges( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, const ::rtl::OUString& columnNamePattern ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getBestRowIdentifier( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Int32 scope, sal_Bool nullable ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getVersionColumns( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getPrimaryKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getImportedKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getExportedKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCrossReference( const css::uno::Any& primaryCatalog, const ::rtl::OUString& primarySchema, const ::rtl::OUString& primaryTable, const css::uno::Any& foreignCatalog, const ::rtl::OUString& foreignSchema, const ::rtl::OUString& foreignTable ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTypeInfo( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getIndexInfo( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Bool unique, sal_Bool approximate ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsResultSetType( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL ownUpdatesAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL ownDeletesAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL ownInsertsAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL othersUpdatesAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL othersDeletesAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL othersInsertsAreVisible( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL updatesAreDetected( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL deletesAreDetected( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL insertsAreDetected( sal_Int32 setType ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsBatchUpdates( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getUDTs( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& typeNamePattern, const css::uno::Sequence< sal_Int32 >& types ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL allProceduresAreCallable( ) override;
+ virtual sal_Bool SAL_CALL allTablesAreSelectable( ) override;
+ virtual ::rtl::OUString SAL_CALL getURL( ) override;
+ virtual ::rtl::OUString SAL_CALL getUserName( ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedHigh( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedLow( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedAtStart( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedAtEnd( ) override;
+ virtual ::rtl::OUString SAL_CALL getDatabaseProductName( ) override;
+ virtual ::rtl::OUString SAL_CALL getDatabaseProductVersion( ) override;
+ virtual ::rtl::OUString SAL_CALL getDriverName( ) override;
+ virtual ::rtl::OUString SAL_CALL getDriverVersion( ) override;
+ virtual sal_Int32 SAL_CALL getDriverMajorVersion( ) override;
+ virtual sal_Int32 SAL_CALL getDriverMinorVersion( ) override;
+ virtual sal_Bool SAL_CALL usesLocalFiles( ) override;
+ virtual sal_Bool SAL_CALL usesLocalFilePerTable( ) override;
+ virtual sal_Bool SAL_CALL supportsMixedCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesUpperCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesLowerCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesMixedCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL supportsMixedCaseQuotedIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesMixedCaseQuotedIdentifiers( ) override;
+ virtual ::rtl::OUString SAL_CALL getIdentifierQuoteString( ) override;
+ virtual ::rtl::OUString SAL_CALL getSQLKeywords( ) override;
+ virtual ::rtl::OUString SAL_CALL getNumericFunctions( ) override;
+ virtual ::rtl::OUString SAL_CALL getStringFunctions( ) override;
+ virtual ::rtl::OUString SAL_CALL getSystemFunctions( ) override;
+ virtual ::rtl::OUString SAL_CALL getTimeDateFunctions( ) override;
+ virtual ::rtl::OUString SAL_CALL getSearchStringEscape( ) override;
+ virtual ::rtl::OUString SAL_CALL getExtraNameCharacters( ) override;
+ virtual sal_Bool SAL_CALL supportsAlterTableWithAddColumn( ) override;
+ virtual sal_Bool SAL_CALL supportsAlterTableWithDropColumn( ) override;
+ virtual sal_Bool SAL_CALL supportsColumnAliasing( ) override;
+ virtual sal_Bool SAL_CALL nullPlusNonNullIsNull( ) override;
+ virtual sal_Bool SAL_CALL supportsTypeConversion( ) override;
+ virtual sal_Bool SAL_CALL supportsConvert( sal_Int32 fromType, sal_Int32 toType ) override;
+ virtual sal_Bool SAL_CALL supportsTableCorrelationNames( ) override;
+ virtual sal_Bool SAL_CALL supportsDifferentTableCorrelationNames( ) override;
+ virtual sal_Bool SAL_CALL supportsExpressionsInOrderBy( ) override;
+ virtual sal_Bool SAL_CALL supportsOrderByUnrelated( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupBy( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupByUnrelated( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupByBeyondSelect( ) override;
+ virtual sal_Bool SAL_CALL supportsLikeEscapeClause( ) override;
+ virtual sal_Bool SAL_CALL supportsMultipleResultSets( ) override;
+ virtual sal_Bool SAL_CALL supportsMultipleTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsNonNullableColumns( ) override;
+ virtual sal_Bool SAL_CALL supportsMinimumSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsCoreSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsExtendedSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92EntryLevelSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92IntermediateSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92FullSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsIntegrityEnhancementFacility( ) override;
+ virtual sal_Bool SAL_CALL supportsOuterJoins( ) override;
+ virtual sal_Bool SAL_CALL supportsFullOuterJoins( ) override;
+ virtual sal_Bool SAL_CALL supportsLimitedOuterJoins( ) override;
+ virtual ::rtl::OUString SAL_CALL getSchemaTerm( ) override;
+ virtual ::rtl::OUString SAL_CALL getProcedureTerm( ) override;
+ virtual ::rtl::OUString SAL_CALL getCatalogTerm( ) override;
+ virtual sal_Bool SAL_CALL isCatalogAtStart( ) override;
+ virtual ::rtl::OUString SAL_CALL getCatalogSeparator( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInDataManipulation( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInProcedureCalls( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInTableDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInIndexDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInDataManipulation( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInProcedureCalls( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInTableDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsPositionedDelete( ) override;
+ virtual sal_Bool SAL_CALL supportsPositionedUpdate( ) override;
+ virtual sal_Bool SAL_CALL supportsSelectForUpdate( ) override;
+ virtual sal_Bool SAL_CALL supportsStoredProcedures( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInComparisons( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInExists( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInIns( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInQuantifieds( ) override;
+ virtual sal_Bool SAL_CALL supportsCorrelatedSubqueries( ) override;
+ virtual sal_Bool SAL_CALL supportsUnion( ) override;
+ virtual sal_Bool SAL_CALL supportsUnionAll( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback( ) override;
+ virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInGroupBy( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInOrderBy( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInSelect( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) override;
+ virtual sal_Int32 SAL_CALL getMaxConnections( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCursorNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxIndexLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxSchemaNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxProcedureNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCatalogNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxRowSize( ) override;
+ virtual sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs( ) override;
+ virtual sal_Int32 SAL_CALL getMaxStatementLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxStatements( ) override;
+ virtual sal_Int32 SAL_CALL getMaxTableNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxTablesInSelect( ) override;
+ virtual sal_Int32 SAL_CALL getMaxUserNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getDefaultTransactionIsolation( ) override;
+ virtual sal_Bool SAL_CALL supportsTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsTransactionIsolationLevel( sal_Int32 level ) override;
+ virtual sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly( ) override;
+ virtual sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit( ) override;
+ virtual sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedures( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& procedureNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedureColumns( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& procedureNamePattern, const ::rtl::OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTables( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, const css::uno::Sequence< ::rtl::OUString >& types ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getSchemas( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCatalogs( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTableTypes( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumns( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, const ::rtl::OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumnPrivileges( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, const ::rtl::OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getBestRowIdentifier( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Int32 scope, sal_Bool nullable ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getVersionColumns( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getPrimaryKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getImportedKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getExportedKeys( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCrossReference( const css::uno::Any& primaryCatalog, const ::rtl::OUString& primarySchema, const ::rtl::OUString& primaryTable, const css::uno::Any& foreignCatalog, const ::rtl::OUString& foreignSchema, const ::rtl::OUString& foreignTable ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTypeInfo( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getIndexInfo( const css::uno::Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Bool unique, sal_Bool approximate ) override;
+ virtual sal_Bool SAL_CALL supportsResultSetType( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) override;
+ virtual sal_Bool SAL_CALL ownUpdatesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL ownDeletesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL ownInsertsAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersUpdatesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersDeletesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersInsertsAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL updatesAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL deletesAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL insertsAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL supportsBatchUpdates( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getUDTs( const css::uno::Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& typeNamePattern, const css::uno::Sequence< sal_Int32 >& types ) override;
+ virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection( ) override;
};
}
}
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index ff63fbe114ea..9fe66357e010 100644
--- a/connectivity/source/drivers/firebird/Driver.cxx
+++ b/connectivity/source/drivers/firebird/Driver.cxx
@@ -49,7 +49,7 @@ namespace connectivity
namespace firebird
{
Reference< XInterface > SAL_CALL FirebirdDriver_CreateInstance(
- const Reference< XMultiServiceFactory >& _rxFactory) throw( Exception, std::exception )
+ const Reference< XMultiServiceFactory >& _rxFactory)
{
SAL_INFO("connectivity.firebird", "FirebirdDriver_CreateInstance()" );
return *(new FirebirdDriver(comphelper::getComponentContext(_rxFactory)));
@@ -143,12 +143,12 @@ void FirebirdDriver::disposing()
}
//----- static ServiceInfo ---------------------------------------------------
-rtl::OUString FirebirdDriver::getImplementationName_Static() throw(RuntimeException)
+rtl::OUString FirebirdDriver::getImplementationName_Static()
{
return rtl::OUString("com.sun.star.comp.sdbc.firebird.Driver");
}
-Sequence< OUString > FirebirdDriver::getSupportedServiceNames_Static() throw (RuntimeException)
+Sequence< OUString > FirebirdDriver::getSupportedServiceNames_Static()
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = "com.sun.star.sdbc.Driver";
@@ -156,19 +156,17 @@ Sequence< OUString > FirebirdDriver::getSupportedServiceNames_Static() throw (Ru
return aSNS;
}
-OUString SAL_CALL FirebirdDriver::getImplementationName() throw(RuntimeException, std::exception)
+OUString SAL_CALL FirebirdDriver::getImplementationName()
{
return getImplementationName_Static();
}
sal_Bool SAL_CALL FirebirdDriver::supportsService(const OUString& _rServiceName)
- throw(RuntimeException, std::exception)
{
return cppu::supportsService(this, _rServiceName);
}
Sequence< OUString > SAL_CALL FirebirdDriver::getSupportedServiceNames()
- throw(RuntimeException, std::exception)
{
return getSupportedServiceNames_Static();
}
@@ -176,7 +174,6 @@ Sequence< OUString > SAL_CALL FirebirdDriver::getSupportedServiceNames()
// ---- XDriver -------------------------------------------------------------
Reference< XConnection > SAL_CALL FirebirdDriver::connect(
const OUString& url, const Sequence< PropertyValue >& info )
- throw(SQLException, RuntimeException, std::exception)
{
Reference< XConnection > xConnection;
@@ -202,7 +199,6 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
}
sal_Bool SAL_CALL FirebirdDriver::acceptsURL( const OUString& url )
- throw(SQLException, RuntimeException, std::exception)
{
SvtMiscOptions aMiscOptions;
@@ -212,7 +208,6 @@ sal_Bool SAL_CALL FirebirdDriver::acceptsURL( const OUString& url )
Sequence< DriverPropertyInfo > SAL_CALL FirebirdDriver::getPropertyInfo(
const OUString& url, const Sequence< PropertyValue >& info )
- throw(SQLException, RuntimeException, std::exception)
{
(void) info;
if ( ! acceptsURL(url) )
@@ -225,14 +220,14 @@ Sequence< DriverPropertyInfo > SAL_CALL FirebirdDriver::getPropertyInfo(
return Sequence< DriverPropertyInfo >();
}
-sal_Int32 SAL_CALL FirebirdDriver::getMajorVersion( ) throw(RuntimeException, std::exception)
+sal_Int32 SAL_CALL FirebirdDriver::getMajorVersion( )
{
// The major and minor version are sdbc driver specific. Must begin with 1.0
// as per http://api.libreoffice.org/docs/common/ref/com/sun/star/sdbc/XDriver.html
return 1;
}
-sal_Int32 SAL_CALL FirebirdDriver::getMinorVersion( ) throw(RuntimeException, std::exception)
+sal_Int32 SAL_CALL FirebirdDriver::getMinorVersion( )
{
return 0;
}
@@ -240,7 +235,6 @@ sal_Int32 SAL_CALL FirebirdDriver::getMinorVersion( ) throw(RuntimeException, s
//----- XDataDefinitionSupplier
uno::Reference< XTablesSupplier > SAL_CALL FirebirdDriver::getDataDefinitionByConnection(
const uno::Reference< XConnection >& rConnection)
- throw(SQLException, RuntimeException, std::exception)
{
Connection* pConnection = static_cast< Connection* >(rConnection.get());
return uno::Reference< XTablesSupplier >(pConnection->createCatalog(), UNO_QUERY);
@@ -249,7 +243,6 @@ uno::Reference< XTablesSupplier > SAL_CALL FirebirdDriver::getDataDefinitionByCo
uno::Reference< XTablesSupplier > SAL_CALL FirebirdDriver::getDataDefinitionByURL(
const OUString& rURL,
const uno::Sequence< PropertyValue >& rInfo)
- throw(SQLException, RuntimeException, std::exception)
{
uno::Reference< XConnection > xConnection = connect(rURL, rInfo);
return getDataDefinitionByConnection(xConnection);
@@ -295,7 +288,7 @@ namespace connectivity
osl_atomic_increment( &_refCount );
}
- void checkDisposed(bool _bThrow) throw ( DisposedException )
+ void checkDisposed(bool _bThrow)
{
if (_bThrow)
throw DisposedException();
diff --git a/connectivity/source/drivers/firebird/Driver.hxx b/connectivity/source/drivers/firebird/Driver.hxx
index a48b13e11f53..c314fc69fe4f 100644
--- a/connectivity/source/drivers/firebird/Driver.hxx
+++ b/connectivity/source/drivers/firebird/Driver.hxx
@@ -39,7 +39,7 @@ namespace connectivity
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 );
+ css::uno::Reference< css::uno::XInterface > SAL_CALL FirebirdDriver_CreateInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxFactory);
typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver,
css::sdbcx::XDataDefinitionSupplier,
@@ -68,34 +68,30 @@ namespace connectivity
virtual void SAL_CALL disposing() override;
// XInterface
/// @throws css::uno::RuntimeException
- static ::rtl::OUString getImplementationName_Static( ) throw(css::uno::RuntimeException);
+ static ::rtl::OUString getImplementationName_Static( );
/// @throws css::uno::RuntimeException
- static css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException);
+ static css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static( );
// XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual ::rtl::OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) override;
+ virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) override;
// XDriver
- virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const ::rtl::OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL acceptsURL( const ::rtl::OUString& url ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const ::rtl::OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMajorVersion( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getMinorVersion( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const ::rtl::OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
+ virtual sal_Bool SAL_CALL acceptsURL( const ::rtl::OUString& url ) override;
+ virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const ::rtl::OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
+ virtual sal_Int32 SAL_CALL getMajorVersion( ) override;
+ virtual sal_Int32 SAL_CALL getMinorVersion( ) override;
// XDataDefinitionSupplier
virtual css::uno::Reference< css::sdbcx::XTablesSupplier >
SAL_CALL getDataDefinitionByConnection(
- const css::uno::Reference< css::sdbc::XConnection >& rxConnection)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::sdbc::XConnection >& rxConnection) override;
virtual css::uno::Reference< css::sdbcx::XTablesSupplier >
SAL_CALL getDataDefinitionByURL(
const OUString& rsURL,
- const css::uno::Sequence< css::beans::PropertyValue >& rInfo)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& rInfo) override;
};
}
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index b427c5fe358c..970c24c2d924 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -63,7 +63,6 @@ OPreparedStatement::OPreparedStatement( Connection* _pConnection,
}
void OPreparedStatement::ensurePrepared()
- throw (SQLException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -128,7 +127,6 @@ void SAL_CALL OPreparedStatement::release() throw()
}
Any SAL_CALL OPreparedStatement::queryInterface(const Type& rType)
- throw(RuntimeException, std::exception)
{
Any aRet = OStatementCommonBase::queryInterface(rType);
if(!aRet.hasValue())
@@ -137,14 +135,12 @@ Any SAL_CALL OPreparedStatement::queryInterface(const Type& rType)
}
uno::Sequence< Type > SAL_CALL OPreparedStatement::getTypes()
- throw(RuntimeException, std::exception)
{
return concatSequences(OPreparedStatement_Base::getTypes(),
OStatementCommonBase::getTypes());
}
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
- throw(SQLException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -157,7 +153,7 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
return m_xMetaData;
}
-void SAL_CALL OPreparedStatement::close() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::close()
{
MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -184,7 +180,6 @@ void SAL_CALL OPreparedStatement::disposing()
void SAL_CALL OPreparedStatement::setString(sal_Int32 nParameterIndex,
const OUString& x)
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird",
"setString(" << nParameterIndex << " , " << x << ")");
@@ -234,7 +229,6 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 nParameterIndex,
}
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -243,7 +237,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
}
sal_Bool SAL_CALL OPreparedStatement::execute()
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "executeQuery(). "
"Got called with sql: " << m_sSqlStatement);
@@ -296,14 +289,12 @@ sal_Bool SAL_CALL OPreparedStatement::execute()
}
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
- throw(SQLException, RuntimeException, std::exception)
{
execute();
return getStatementChangeCount();
}
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
- throw(SQLException, RuntimeException, std::exception)
{
execute();
return m_xResultSet;
@@ -346,7 +337,6 @@ sal_Int64 toNumericWithoutDecimalPlace(const OUString& sSource)
//----- XParameters -----------------------------------------------------------
void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType*/)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -356,14 +346,12 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 nIndex, sal_Int32 /*nSqlType
}
void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 nIndex, sal_Bool bValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< sal_Bool >(nIndex, bValue, SQL_BOOLEAN);
}
template <typename T>
void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType)
- throw(SQLException, RuntimeException)
{
MutexGuard aGuard( m_aMutex );
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -386,43 +374,36 @@ void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType)
}
void SAL_CALL OPreparedStatement::setByte(sal_Int32 /*nIndex*/, sal_Int8 /*nValue*/)
- throw(SQLException, RuntimeException, std::exception)
{
::dbtools::throwFunctionNotSupportedSQLException("XParameters::setByte", *this);
}
void SAL_CALL OPreparedStatement::setShort(sal_Int32 nIndex, sal_Int16 nValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< sal_Int16 >(nIndex, nValue, SQL_SHORT);
}
void SAL_CALL OPreparedStatement::setInt(sal_Int32 nIndex, sal_Int32 nValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< sal_Int32 >(nIndex, nValue, SQL_LONG);
}
void SAL_CALL OPreparedStatement::setLong(sal_Int32 nIndex, sal_Int64 nValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< sal_Int64 >(nIndex, nValue, SQL_INT64);
}
void SAL_CALL OPreparedStatement::setFloat(sal_Int32 nIndex, float nValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< float >(nIndex, nValue, SQL_FLOAT);
}
void SAL_CALL OPreparedStatement::setDouble(sal_Int32 nIndex, double nValue)
- throw(SQLException, RuntimeException, std::exception)
{
setValue< double >(nIndex, nValue, SQL_DOUBLE); // TODO: SQL_D_FLOAT?
}
void SAL_CALL OPreparedStatement::setDate(sal_Int32 nIndex, const Date& rDate)
- throw(SQLException, RuntimeException, std::exception)
{
struct tm aCTime;
aCTime.tm_mday = rDate.Day;
@@ -436,7 +417,6 @@ void SAL_CALL OPreparedStatement::setDate(sal_Int32 nIndex, const Date& rDate)
}
void SAL_CALL OPreparedStatement::setTime( sal_Int32 nIndex, const css::util::Time& rTime)
- throw(SQLException, RuntimeException, std::exception)
{
struct tm aCTime;
aCTime.tm_sec = rTime.Seconds;
@@ -450,7 +430,6 @@ void SAL_CALL OPreparedStatement::setTime( sal_Int32 nIndex, const css::util::Ti
}
void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 nIndex, const DateTime& rTimestamp)
- throw(SQLException, RuntimeException, std::exception)
{
struct tm aCTime;
aCTime.tm_sec = rTimestamp.Seconds;
@@ -504,7 +483,7 @@ void OPreparedStatement::closeBlobAfterWriting(isc_blob_handle& rBlobHandle)
}
}
-void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Reference< XClob >& x ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Reference< XClob >& x )
{
(void) parameterIndex;
(void) x;
@@ -515,7 +494,6 @@ void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Refer
void SAL_CALL OPreparedStatement::setBlob(sal_Int32 nParameterIndex,
const Reference< XBlob >& xBlob)
- throw (SQLException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -565,7 +543,7 @@ void SAL_CALL OPreparedStatement::setBlob(sal_Int32 nParameterIndex,
}
-void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Reference< XArray >& x ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Reference< XArray >& x )
{
(void) parameterIndex;
(void) x;
@@ -575,7 +553,7 @@ void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Refe
}
-void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Reference< XRef >& x ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Reference< XRef >& x )
{
(void) parameterIndex;
(void) x;
@@ -585,7 +563,7 @@ void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Refere
}
-void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale )
{
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
::osl::MutexGuard aGuard( m_aMutex );
@@ -669,7 +647,7 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
}
-void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName )
{
(void) parameterIndex;
(void) sqlType;
@@ -680,7 +658,7 @@ void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_I
}
-void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x )
{
(void) parameterIndex;
(void) x;
@@ -691,7 +669,6 @@ void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any
void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
const Sequence< sal_Int8 >& xBytes)
- throw (SQLException, RuntimeException, std::exception)
{
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -738,7 +715,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
}
-void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const Reference< css::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex, const Reference< css::io::XInputStream >& x, sal_Int32 length )
{
(void) parameterIndex;
(void) x;
@@ -749,7 +726,7 @@ void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex,
}
-void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const Reference< css::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, const Reference< css::io::XInputStream >& x, sal_Int32 length )
{
(void) parameterIndex;
(void) x;
@@ -760,31 +737,28 @@ void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, con
}
-void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OPreparedStatement::clearParameters( )
{
}
// ---- Batch methods -- unsupported -----------------------------------------
void SAL_CALL OPreparedStatement::clearBatch()
- throw(SQLException, RuntimeException, std::exception)
{
// Unsupported
}
void SAL_CALL OPreparedStatement::addBatch()
- throw(SQLException, RuntimeException, std::exception)
{
// Unsupported by firebird
}
Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
- throw(SQLException, RuntimeException, std::exception)
{
// Unsupported by firebird
return Sequence< sal_Int32 >();
}
-void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception, std::exception)
+void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)
{
switch(nHandle)
{
@@ -802,7 +776,6 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
}
void OPreparedStatement::checkParameterIndex(sal_Int32 nParameterIndex)
- throw(SQLException, RuntimeException)
{
ensurePrepared();
if ((nParameterIndex == 0) || (nParameterIndex > m_pInSqlda->sqld))
diff --git a/connectivity/source/drivers/firebird/PreparedStatement.hxx b/connectivity/source/drivers/firebird/PreparedStatement.hxx
index 0062110899dd..986752cd66c1 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.hxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.hxx
@@ -55,9 +55,7 @@ namespace connectivity
XSQLDA* m_pInSqlda;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- void checkParameterIndex(sal_Int32 nParameterIndex)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException);
+ void checkParameterIndex(sal_Int32 nParameterIndex);
/**
* Set a numeric value in the input SQLDA. If the destination
@@ -66,16 +64,12 @@ namespace connectivity
* @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);
+ template <typename T> void setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType);
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);
+ void ensurePrepared();
/**
* Assumes that all necessary mutexes have been taken.
*/
@@ -87,8 +81,7 @@ namespace connectivity
protected:
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
- const css::uno::Any& rValue)
- throw (css::uno::Exception, std::exception) override;
+ const css::uno::Any& rValue) override;
virtual ~OPreparedStatement() override;
public:
DECLARE_SERVICE_INFO();
@@ -97,90 +90,62 @@ namespace connectivity
const ::rtl::OUString& sql);
//XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
virtual void SAL_CALL acquire() throw() override;
virtual void SAL_CALL release() throw() override;
//XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
// XPreparedStatement
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
- executeQuery()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ executeQuery() override;
virtual sal_Int32 SAL_CALL
- executeUpdate()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ executeUpdate() override;
virtual sal_Bool SAL_CALL
- execute()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ execute() override;
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
- getConnection()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ getConnection() override;
// XParameters
- virtual void SAL_CALL setNull(sal_Int32 nIndex, sal_Int32 nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBoolean( sal_Int32 nIndex, sal_Bool nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setByte(sal_Int32 nIndex, sal_Int8 nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setShort(sal_Int32 nIndex, sal_Int16 nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setInt(sal_Int32 nIndex, sal_Int32 nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLong(sal_Int32 nIndex, sal_Int64 nValue)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setFloat( sal_Int32 parameterIndex, float x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDouble( sal_Int32 parameterIndex, double x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setString( sal_Int32 parameterIndex, const ::rtl::OUString& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBytes( sal_Int32 parameterIndex, const css::uno::Sequence< sal_Int8 >& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDate( sal_Int32 parameterIndex, const css::util::Date& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTime( sal_Int32 parameterIndex, const css::util::Time& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTimestamp( sal_Int32 parameterIndex, const css::util::DateTime& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBinaryStream( sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCharacterStream( sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setObject( sal_Int32 parameterIndex, const css::uno::Any& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setObjectWithInfo( sal_Int32 parameterIndex, const css::uno::Any& x, sal_Int32 targetSqlType, sal_Int32 scale ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setRef( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XRef >& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setBlob( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XBlob >& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setClob( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XClob >& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setArray( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XArray >& x ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearParameters( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setNull(sal_Int32 nIndex, sal_Int32 nValue) override;
+ virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) override;
+ virtual void SAL_CALL setBoolean( sal_Int32 nIndex, sal_Bool nValue) override;
+ virtual void SAL_CALL setByte(sal_Int32 nIndex, sal_Int8 nValue) override;
+ virtual void SAL_CALL setShort(sal_Int32 nIndex, sal_Int16 nValue) override;
+ virtual void SAL_CALL setInt(sal_Int32 nIndex, sal_Int32 nValue) override;
+ virtual void SAL_CALL setLong(sal_Int32 nIndex, sal_Int64 nValue) override;
+ virtual void SAL_CALL setFloat( sal_Int32 parameterIndex, float x ) override;
+ virtual void SAL_CALL setDouble( sal_Int32 parameterIndex, double x ) override;
+ virtual void SAL_CALL setString( sal_Int32 parameterIndex, const ::rtl::OUString& x ) override;
+ virtual void SAL_CALL setBytes( sal_Int32 parameterIndex, const css::uno::Sequence< sal_Int8 >& x ) override;
+ virtual void SAL_CALL setDate( sal_Int32 parameterIndex, const css::util::Date& x ) override;
+ virtual void SAL_CALL setTime( sal_Int32 parameterIndex, const css::util::Time& x ) override;
+ virtual void SAL_CALL setTimestamp( sal_Int32 parameterIndex, const css::util::DateTime& x ) override;
+ virtual void SAL_CALL setBinaryStream( sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
+ virtual void SAL_CALL setCharacterStream( sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
+ virtual void SAL_CALL setObject( sal_Int32 parameterIndex, const css::uno::Any& x ) override;
+ virtual void SAL_CALL setObjectWithInfo( sal_Int32 parameterIndex, const css::uno::Any& x, sal_Int32 targetSqlType, sal_Int32 scale ) override;
+ virtual void SAL_CALL setRef( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XRef >& x ) override;
+ virtual void SAL_CALL setBlob( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XBlob >& x ) override;
+ virtual void SAL_CALL setClob( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XClob >& x ) override;
+ virtual void SAL_CALL setArray( sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XArray >& x ) override;
+ virtual void SAL_CALL clearParameters( ) override;
// XPreparedBatchExecution -- UNSUPPORTED by firebird
virtual void SAL_CALL
- addBatch()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ addBatch() override;
virtual void SAL_CALL
- clearBatch()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ clearBatch() override;
virtual css::uno::Sequence< sal_Int32 > SAL_CALL
- executeBatch()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ executeBatch() override;
// XCloseable
- virtual void SAL_CALL close()
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL close() override;
// OComponentHelper
virtual void SAL_CALL disposing() override;
// XResultSetMetaDataSupplier
- virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
};
}
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index cc9dedc24cc0..4aebf25e810a 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -113,7 +113,7 @@ OResultSet::~OResultSet()
}
// ---- XResultSet -- Row retrieval methods ------------------------------------
-sal_Int32 SAL_CALL OResultSet::getRow() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL OResultSet::getRow()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -121,7 +121,7 @@ sal_Int32 SAL_CALL OResultSet::getRow() throw(SQLException, RuntimeException, st
return m_currentRow;
}
-sal_Bool SAL_CALL OResultSet::next() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::next()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -150,21 +150,21 @@ sal_Bool SAL_CALL OResultSet::next() throw(SQLException, RuntimeException, std::
}
}
-sal_Bool SAL_CALL OResultSet::previous() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::previous()
{
::dbtools::throwFunctionNotSupportedSQLException("previous not supported in firebird",
*this);
return false;
}
-sal_Bool SAL_CALL OResultSet::isLast() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::isLast()
{
::dbtools::throwFunctionNotSupportedSQLException("isLast not supported in firebird",
*this);
return false;
}
-sal_Bool SAL_CALL OResultSet::isBeforeFirst() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::isBeforeFirst()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -172,7 +172,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst() throw(SQLException, RuntimeExcepti
return m_currentRow == 0;
}
-sal_Bool SAL_CALL OResultSet::isAfterLast() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::isAfterLast()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -180,7 +180,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast() throw(SQLException, RuntimeException
return m_bIsAfterLastRow;
}
-sal_Bool SAL_CALL OResultSet::isFirst() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::isFirst()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -188,7 +188,7 @@ sal_Bool SAL_CALL OResultSet::isFirst() throw(SQLException, RuntimeException, st
return m_currentRow == 1 && !m_bIsAfterLastRow;
}
-void SAL_CALL OResultSet::beforeFirst() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OResultSet::beforeFirst()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -198,7 +198,7 @@ void SAL_CALL OResultSet::beforeFirst() throw(SQLException, RuntimeException, st
*this);
}
-void SAL_CALL OResultSet::afterLast() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OResultSet::afterLast()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -208,7 +208,7 @@ void SAL_CALL OResultSet::afterLast() throw(SQLException, RuntimeException, std:
*this);
}
-sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::first()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -229,7 +229,7 @@ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std:
}
}
-sal_Bool SAL_CALL OResultSet::last() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::last()
{
// We need to iterate past the last row to know when we've passed the last
// row, hence we can't actually move to last.
@@ -238,7 +238,7 @@ sal_Bool SAL_CALL OResultSet::last() throw(SQLException, RuntimeException, std::
return false;
}
-sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -256,7 +256,7 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow) throw(SQLException, Runti
}
}
-sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -279,7 +279,6 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) throw(SQLException, Runtim
}
void SAL_CALL OResultSet::checkColumnIndex(sal_Int32 nIndex)
- throw (SQLException, RuntimeException)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -294,7 +293,6 @@ void SAL_CALL OResultSet::checkColumnIndex(sal_Int32 nIndex)
}
void SAL_CALL OResultSet::checkRowIndex()
- throw (SQLException, RuntimeException)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -308,19 +306,18 @@ void SAL_CALL OResultSet::checkRowIndex()
}
}
-Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
+Any SAL_CALL OResultSet::queryInterface( const Type & rType )
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet_BASE::queryInterface(rType);
}
- Sequence< Type > SAL_CALL OResultSet::getTypes() throw( RuntimeException, std::exception)
+ Sequence< Type > SAL_CALL OResultSet::getTypes()
{
return concatSequences(OPropertySetHelper::getTypes(), OResultSet_BASE::getTypes());
}
// ---- XColumnLocate ---------------------------------------------------------
sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& rColumnName)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -342,7 +339,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& rColumnName)
return 0; // Never reached
}
-uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 columnIndex )
{
(void) columnIndex;
MutexGuard aGuard(m_rMutex);
@@ -351,7 +348,7 @@ uno::Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 c
return nullptr;
}
-uno::Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 columnIndex )
{
(void) columnIndex;
MutexGuard aGuard(m_rMutex);
@@ -633,7 +630,7 @@ T OResultSet::safelyRetrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT
}
// ---- XRow -----------------------------------------------------------------
-sal_Bool SAL_CALL OResultSet::wasNull() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::wasNull()
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -643,20 +640,17 @@ sal_Bool SAL_CALL OResultSet::wasNull() throw(SQLException, RuntimeException, st
// ---- XRow: Simple Numerical types ------------------------------------------
sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 nColumnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< bool >(nColumnIndex, SQL_BOOLEAN);
}
sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 nColumnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
// Not a native firebird type hence we always have to convert.
return safelyRetrieveValue< ORowSetValue >(nColumnIndex);
}
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
(void) columnIndex;
return Sequence< sal_Int8 >(); // TODO: implement
@@ -664,62 +658,53 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 columnIndex)
}
sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< sal_Int16 >(columnIndex, SQL_SHORT);
}
sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< sal_Int32 >(columnIndex, SQL_LONG);
}
sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< sal_Int64 >(columnIndex, SQL_INT64);
}
float SAL_CALL OResultSet::getFloat(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< float >(columnIndex, SQL_FLOAT);
}
double SAL_CALL OResultSet::getDouble(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< double >(columnIndex, SQL_DOUBLE);
}
// ---- XRow: More complex types ----------------------------------------------
OUString SAL_CALL OResultSet::getString(sal_Int32 nIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< OUString >(nIndex);
}
Date SAL_CALL OResultSet::getDate(sal_Int32 nIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< Date >(nIndex, SQL_TYPE_DATE);
}
Time SAL_CALL OResultSet::getTime(sal_Int32 nIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< css::util::Time >(nIndex, SQL_TYPE_TIME);
}
DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 nIndex)
- throw(SQLException, RuntimeException, std::exception)
{
return safelyRetrieveValue< DateTime >(nIndex, SQL_TIMESTAMP);
}
-uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( )
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -730,7 +715,7 @@ uno::Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(
return m_xMetaData;
}
-uno::Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 columnIndex ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 columnIndex )
{
(void) columnIndex;
MutexGuard aGuard(m_rMutex);
@@ -740,7 +725,7 @@ uno::Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 columnIndex )
}
-uno::Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 columnIndex )
{
(void) columnIndex;
MutexGuard aGuard(m_rMutex);
@@ -758,7 +743,6 @@ uno::Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 columnIndex ) th
}
uno::Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 columnIndex)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -772,7 +756,7 @@ uno::Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 columnIndex)
}
-uno::Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 columnIndex )
{
(void) columnIndex;
MutexGuard aGuard(m_rMutex);
@@ -782,7 +766,7 @@ uno::Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 columnIndex ) thro
}
-Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const uno::Reference< css::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException, std::exception)
+Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const uno::Reference< css::container::XNameAccess >& typeMap )
{
(void) columnIndex;
(void) typeMap;
@@ -793,7 +777,7 @@ Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const uno::Reference<
}
-void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OResultSet::close()
{
SAL_INFO("connectivity.firebird", "close().");
@@ -806,7 +790,6 @@ void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exc
uno::Reference< XInterface > SAL_CALL OResultSet::getStatement()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -814,34 +797,34 @@ uno::Reference< XInterface > SAL_CALL OResultSet::getStatement()
return m_xStatement;
}
//----- XResultSet: unsupported change detection methods ---------------------
-sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::rowDeleted()
{
::dbtools::throwFunctionNotSupportedSQLException("rowDeleted not supported in firebird",
*this);
return false;
}
-sal_Bool SAL_CALL OResultSet::rowInserted() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::rowInserted()
{
::dbtools::throwFunctionNotSupportedSQLException("rowInserted not supported in firebird",
*this);
return false;
}
-sal_Bool SAL_CALL OResultSet::rowUpdated() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSet::rowUpdated()
{
::dbtools::throwFunctionNotSupportedSQLException("rowUpdated not supported in firebird",
*this);
return false;
}
-void SAL_CALL OResultSet::refreshRow() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OResultSet::refreshRow()
{
::dbtools::throwFunctionNotSupportedSQLException("refreshRow not supported in firebird",
*this);
}
-void SAL_CALL OResultSet::cancel( ) throw(RuntimeException, std::exception)
+void SAL_CALL OResultSet::cancel( )
{
MutexGuard aGuard(m_rMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -887,25 +870,23 @@ void SAL_CALL OResultSet::release() throw()
OResultSet_BASE::release();
}
-uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception)
+uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( )
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
// ---- XServiceInfo -----------------------------------------------------------
-OUString SAL_CALL OResultSet::getImplementationName() throw ( RuntimeException, std::exception)
+OUString SAL_CALL OResultSet::getImplementationName()
{
return OUString("com.sun.star.sdbcx.firebird.ResultSet");
}
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames()
- throw( RuntimeException, std::exception)
{
return {"com.sun.star.sdbc.ResultSet","com.sun.star.sdbcx.ResultSet"};
}
sal_Bool SAL_CALL OResultSet::supportsService(const OUString& _rServiceName)
- throw( RuntimeException, std::exception)
{
return cppu::supportsService(this, _rServiceName);
}
diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx
index 7d2a7c40bfec..75b0d6fcd60d 100644
--- a/connectivity/source/drivers/firebird/ResultSet.hxx
+++ b/connectivity/source/drivers/firebird/ResultSet.hxx
@@ -115,14 +115,10 @@ namespace connectivity
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- void SAL_CALL checkColumnIndex( sal_Int32 index )
- throw (css::sdbc::SQLException,
- css::uno::RuntimeException);
+ void SAL_CALL checkColumnIndex( sal_Int32 index );
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- void SAL_CALL checkRowIndex()
- throw (css::sdbc::SQLException,
- css::uno::RuntimeException);
+ void SAL_CALL checkRowIndex();
// you can't delete objects of this type
virtual ~OResultSet() override;
@@ -138,60 +134,59 @@ namespace connectivity
// XInterface
virtual css::uno::Any SAL_CALL queryInterface(
- const css::uno::Type& rType)
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Type& rType) override;
virtual void SAL_CALL acquire() throw() override;
virtual void SAL_CALL release() throw() override;
//XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
// XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
// XResultSet
- virtual sal_Bool SAL_CALL next( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isBeforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isAfterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL beforeFirst( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL afterLast( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL first( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL last( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL previous( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL refreshRow( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL rowUpdated( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL rowInserted( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL rowDeleted( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL next( ) override;
+ virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
+ virtual sal_Bool SAL_CALL isAfterLast( ) override;
+ virtual sal_Bool SAL_CALL isFirst( ) override;
+ virtual sal_Bool SAL_CALL isLast( ) override;
+ virtual void SAL_CALL beforeFirst( ) override;
+ virtual void SAL_CALL afterLast( ) override;
+ virtual sal_Bool SAL_CALL first( ) override;
+ virtual sal_Bool SAL_CALL last( ) override;
+ virtual sal_Int32 SAL_CALL getRow( ) override;
+ virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
+ virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
+ virtual sal_Bool SAL_CALL previous( ) override;
+ virtual void SAL_CALL refreshRow( ) override;
+ virtual sal_Bool SAL_CALL rowUpdated( ) override;
+ virtual sal_Bool SAL_CALL rowInserted( ) override;
+ virtual sal_Bool SAL_CALL rowDeleted( ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
// XRow
- virtual sal_Bool SAL_CALL wasNull( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL wasNull( ) override;
+ virtual ::rtl::OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
+ virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
+ virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
+ virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
+ virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
+ virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
+ virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
+ virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
+ virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
+ virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
+ virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
+ virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
// XResultSetMetaDataSupplier
- virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
// XCancellable
- virtual void SAL_CALL cancel( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL cancel( ) override;
// XCloseable
- virtual void SAL_CALL close( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL close( ) override;
// XWarningsSupplier
#if 0
virtual css::uno::Any SAL_CALL getWarnings( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
@@ -199,9 +194,7 @@ namespace connectivity
#endif
// XColumnLocate
- virtual sal_Int32 SAL_CALL findColumn(const ::rtl::OUString& columnName)
- throw(css::sdbc::SQLException,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL findColumn(const ::rtl::OUString& columnName) override;
};
diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
index 7d2dd2f392a5..79262d8f1d70 100644
--- a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
+++ b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
@@ -40,25 +40,23 @@ OResultSetMetaData::~OResultSetMetaData()
}
void OResultSetMetaData::verifyValidColumn(sal_Int32 column)
- throw(SQLException)
{
if (column>getColumnCount() || column < 1)
throw SQLException("Invalid column specified", *this, OUString(), 0, Any());
}
-sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount()
{
return m_pSqlda->sqld;
}
-sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column )
{
verifyValidColumn(column);
return 32; // Hard limit for firebird
}
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
verifyValidColumn(column);
@@ -69,7 +67,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column)
}
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
// Firebird is generally case sensitive when using quoted identifiers.
// IF THIS CHANGES make ResultSet::findColumn to be case-insensitive as needed.
@@ -81,14 +78,12 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
}
OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
(void) column;
return OUString(); // Schemas supported by firebird
}
OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
verifyValidColumn(column);
OUString sRet(m_pSqlda->sqlvar[column-1].sqlname,
@@ -99,7 +94,6 @@ OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column)
}
OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
verifyValidColumn(column);
return OUString(m_pSqlda->sqlvar[column-1].relname,
@@ -108,14 +102,12 @@ OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column)
}
OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
(void) column;
return OUString(); // Catalogs not supported by firebird
}
OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
verifyValidColumn(column);
@@ -126,7 +118,6 @@ OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column)
}
OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
// aliasname
verifyValidColumn(column);
@@ -138,7 +129,6 @@ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column)
}
OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
// TODO: implement
(void) column;
@@ -146,14 +136,12 @@ OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column)
}
sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
(void) column;
return false;
}
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
OUString sTable = getTableName(column);
if( !sTable.isEmpty() )
@@ -190,7 +178,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
// Unsigned values aren't supported in firebird.
(void) column;
@@ -198,7 +185,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column)
}
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
sal_Int32 nType = getColumnType(column);
if( nType == DataType::NUMERIC || nType == DataType::DECIMAL )
@@ -234,13 +220,11 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column)
}
sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception)
{
return -(m_pSqlda->sqlvar[column-1].sqlscale); // fb stores negative number
}
sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
if (m_pSqlda->sqlvar[column-1].sqltype & 1)
return ColumnValue::NULLABLE;
@@ -249,7 +233,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
}
sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
// TODO: Can the column be used as part of a where clause? Assume yes
(void) column;
@@ -257,20 +240,18 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)
}
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
(void) column;
return m_pConnection->isReadOnly(); // Readonly only available on db level
}
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column)
- throw(SQLException, RuntimeException, std::exception)
{
(void) column;
return !m_pConnection->isReadOnly();
}
-sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column )
{
(void) column;
return !m_pConnection->isReadOnly();
diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.hxx b/connectivity/source/drivers/firebird/ResultSetMetaData.hxx
index a183e97cd70a..d6dffe0cd708 100644
--- a/connectivity/source/drivers/firebird/ResultSetMetaData.hxx
+++ b/connectivity/source/drivers/firebird/ResultSetMetaData.hxx
@@ -44,7 +44,7 @@ namespace connectivity
virtual ~OResultSetMetaData() override;
/// @throws css::sdbc::SQLException
- void verifyValidColumn(sal_Int32 column) throw(css::sdbc::SQLException);
+ void verifyValidColumn(sal_Int32 column);
public:
// a constructor, which is required for returning objects:
OResultSetMetaData(Connection* pConnection,
@@ -53,48 +53,27 @@ namespace connectivity
, m_pSqlda(pSqlda)
{}
- 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;
- virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isSigned(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getColumnLabel(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getColumnName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getSchemaName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getScale(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getTableName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getCatalogName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getColumnTypeName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isWritable(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual ::rtl::OUString SAL_CALL getColumnServiceName(sal_Int32 column)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getColumnCount() override;
+ virtual sal_Bool SAL_CALL isAutoIncrement(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isCaseSensitive(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isSearchable(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isCurrency(sal_Int32 column) override;
+ virtual sal_Int32 SAL_CALL isNullable(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isSigned(sal_Int32 column) override;
+ virtual sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getColumnLabel(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getColumnName(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getSchemaName(sal_Int32 column) override;
+ virtual sal_Int32 SAL_CALL getPrecision(sal_Int32 column) override;
+ virtual sal_Int32 SAL_CALL getScale(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getTableName(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getCatalogName(sal_Int32 column) override;
+ virtual sal_Int32 SAL_CALL getColumnType(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getColumnTypeName(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isReadOnly(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isWritable(sal_Int32 column) override;
+ virtual sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column) override;
+ virtual ::rtl::OUString SAL_CALL getColumnServiceName(sal_Int32 column) override;
};
}
}
diff --git a/connectivity/source/drivers/firebird/Statement.cxx b/connectivity/source/drivers/firebird/Statement.cxx
index a13414ca268e..8ec604760251 100644
--- a/connectivity/source/drivers/firebird/Statement.cxx
+++ b/connectivity/source/drivers/firebird/Statement.cxx
@@ -52,16 +52,15 @@ using namespace ::std;
// ---- XBatchExecution - UNSUPPORTED ----------------------------------------
void SAL_CALL OStatement::addBatch(const OUString& sql)
- throw(SQLException, RuntimeException, std::exception)
{
(void) sql;
}
-void SAL_CALL OStatement::clearBatch() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OStatement::clearBatch()
{
}
-Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch() throw(SQLException, RuntimeException, std::exception)
+Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
{
return Sequence< sal_Int32 >();
}
@@ -95,7 +94,6 @@ void OStatement::disposeResultSet()
// ---- XStatement -----------------------------------------------------------
sal_Int32 SAL_CALL OStatement::executeUpdate(const OUString& sql)
- throw(SQLException, RuntimeException, std::exception)
{
execute(sql);
return getStatementChangeCount();
@@ -103,7 +101,6 @@ sal_Int32 SAL_CALL OStatement::executeUpdate(const OUString& sql)
uno::Reference< XResultSet > SAL_CALL OStatement::executeQuery(const OUString& sql)
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -149,7 +146,6 @@ uno::Reference< XResultSet > SAL_CALL OStatement::executeQuery(const OUString& s
}
sal_Bool SAL_CALL OStatement::execute(const OUString& sql)
- throw(SQLException, RuntimeException, std::exception)
{
uno::Reference< XResultSet > xResults = executeQuery(sql);
return xResults.is();
@@ -157,7 +153,6 @@ sal_Bool SAL_CALL OStatement::execute(const OUString& sql)
}
uno::Reference< XConnection > SAL_CALL OStatement::getConnection()
- throw(SQLException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -165,7 +160,7 @@ uno::Reference< XConnection > SAL_CALL OStatement::getConnection()
return uno::Reference<XConnection>(m_pConnection.get());
}
-Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
+Any SAL_CALL OStatement::queryInterface( const Type & rType )
{
Any aRet = OStatement_Base::queryInterface(rType);
if(!aRet.hasValue())
@@ -176,7 +171,6 @@ Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeExcep
}
uno::Sequence< Type > SAL_CALL OStatement::getTypes()
- throw(RuntimeException, std::exception)
{
return concatSequences(OStatement_Base::getTypes(),
OStatementCommonBase::getTypes());
diff --git a/connectivity/source/drivers/firebird/Statement.hxx b/connectivity/source/drivers/firebird/Statement.hxx
index 308d2f9ae478..248a2a65fb1a 100644
--- a/connectivity/source/drivers/firebird/Statement.hxx
+++ b/connectivity/source/drivers/firebird/Statement.hxx
@@ -58,31 +58,25 @@ namespace connectivity
// XStatement
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL
- executeQuery(const ::rtl::OUString& sql)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL executeUpdate(const ::rtl::OUString& sqlIn)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ executeQuery(const ::rtl::OUString& sql) override;
+ virtual sal_Int32 SAL_CALL executeUpdate(const ::rtl::OUString& sqlIn) override;
virtual sal_Bool SAL_CALL
- execute(const ::rtl::OUString& sql)
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ execute(const ::rtl::OUString& sql) override;
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL
- getConnection()
- throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ getConnection() override;
// XBatchExecution - UNSUPPORTED
- virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearBatch( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) override;
+ virtual void SAL_CALL clearBatch( ) override;
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) override;
// XInterface
virtual css::uno::Any SAL_CALL
- queryInterface(const css::uno::Type & rType)
- throw(css::uno::RuntimeException, std::exception) override;
+ queryInterface(const css::uno::Type & rType) override;
//XTypeProvider
virtual css::uno::Sequence< css::uno::Type > SAL_CALL
- getTypes()
- throw(css::uno::RuntimeException, std::exception) override;
+ getTypes() override;
// OComponentHelper
virtual void SAL_CALL disposing() override;
diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.cxx b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
index bd1c4b7f23d1..1cf44a849636 100644
--- a/connectivity/source/drivers/firebird/StatementCommonBase.cxx
+++ b/connectivity/source/drivers/firebird/StatementCommonBase.cxx
@@ -68,7 +68,6 @@ void OStatementCommonBase::disposeResultSet()
}
void OStatementCommonBase::freeStatementHandle()
- throw (SQLException)
{
if (m_aStatementHandle)
{
@@ -82,7 +81,7 @@ void OStatementCommonBase::freeStatementHandle()
}
-Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
+Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType )
{
Any aRet = OStatementCommonBase_Base::queryInterface(rType);
if(!aRet.hasValue())
@@ -90,7 +89,7 @@ Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(Ru
return aRet;
}
-Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeException, std::exception)
+Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( )
{
::cppu::OTypeCollection aTypes(
::cppu::UnoType<XMultiPropertySet>::get(),
@@ -101,7 +100,7 @@ Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeExcept
}
-void SAL_CALL OStatementCommonBase::cancel( ) throw(RuntimeException, std::exception)
+void SAL_CALL OStatementCommonBase::cancel( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
@@ -109,7 +108,6 @@ void SAL_CALL OStatementCommonBase::cancel( ) throw(RuntimeException, std::exce
}
void SAL_CALL OStatementCommonBase::close()
- throw(SQLException, RuntimeException, std::exception)
{
SAL_INFO("connectivity.firebird", "close");
@@ -126,7 +124,6 @@ void SAL_CALL OStatementCommonBase::close()
void OStatementCommonBase::prepareAndDescribeStatement(const OUString& sql,
XSQLDA*& pOutSqlda,
XSQLDA* pInSqlda)
- throw (SQLException)
{
MutexGuard aGuard(m_aMutex);
@@ -223,7 +220,7 @@ void OStatementCommonBase::prepareAndDescribeStatement(const OUString& sql,
}
// ---- XMultipleResults - UNSUPPORTED ----------------------------------------
-uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet() throw(SQLException, RuntimeException, std::exception)
+uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet()
{
// TODO: verify we really can't support this
// return uno::Reference< XResultSet >();
@@ -233,7 +230,7 @@ uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet() throw
return m_xResultSet;
}
-sal_Bool SAL_CALL OStatementCommonBase::getMoreResults() throw(SQLException, RuntimeException, std::exception)
+sal_Bool SAL_CALL OStatementCommonBase::getMoreResults()
{
// TODO: verify we really can't support this
return false;
@@ -241,7 +238,7 @@ sal_Bool SAL_CALL OStatementCommonBase::getMoreResults() throw(SQLException, Run
// checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
}
-sal_Int32 SAL_CALL OStatementCommonBase::getUpdateCount() throw(SQLException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL OStatementCommonBase::getUpdateCount()
{
// TODO: verify we really can't support this
return 0;
@@ -249,12 +246,12 @@ sal_Int32 SAL_CALL OStatementCommonBase::getUpdateCount() throw(SQLException, Ru
// ---- XWarningsSupplier - UNSUPPORTED ----------------------------------------
-Any SAL_CALL OStatementCommonBase::getWarnings() throw(SQLException, RuntimeException, std::exception)
+Any SAL_CALL OStatementCommonBase::getWarnings()
{
return Any();
}
-void SAL_CALL OStatementCommonBase::clearWarnings() throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OStatementCommonBase::clearWarnings()
{
}
@@ -300,7 +297,6 @@ sal_Bool OStatementCommonBase::convertFastPropertyValue(
Any & rOldValue,
sal_Int32 nHandle,
const Any& rValue )
- throw (IllegalArgumentException)
{
(void) rConvertedValue;
(void) rOldValue;
@@ -311,7 +307,7 @@ sal_Bool OStatementCommonBase::convertFastPropertyValue(
return bConverted;
}
-void OStatementCommonBase::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception, std::exception)
+void OStatementCommonBase::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)
{
(void) rValue;
// set the value to what ever is necessary
@@ -362,13 +358,12 @@ void SAL_CALL OStatementCommonBase::release() throw()
OStatementCommonBase_Base::release();
}
-uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OStatementCommonBase::getPropertySetInfo( ) throw(RuntimeException, std::exception)
+uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OStatementCommonBase::getPropertySetInfo( )
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
short OStatementCommonBase::getSqlInfoItem(char aInfoItem)
- throw (SQLException)
{
ISC_STATUS_ARRAY aStatusVector;
ISC_STATUS aErr;
@@ -396,7 +391,6 @@ short OStatementCommonBase::getSqlInfoItem(char aInfoItem)
}
bool OStatementCommonBase::isDDLStatement()
- throw (SQLException)
{
if (getSqlInfoItem(isc_info_sql_stmt_type) == isc_info_sql_stmt_ddl)
return true;
@@ -405,7 +399,6 @@ bool OStatementCommonBase::isDDLStatement()
}
sal_Int32 OStatementCommonBase::getStatementChangeCount()
- throw (SQLException)
{
const short aStatementType = getSqlInfoItem(isc_info_sql_stmt_type);
diff --git a/connectivity/source/drivers/firebird/StatementCommonBase.hxx b/connectivity/source/drivers/firebird/StatementCommonBase.hxx
index 11d9c3dab52b..856ebc807ff9 100644
--- a/connectivity/source/drivers/firebird/StatementCommonBase.hxx
+++ b/connectivity/source/drivers/firebird/StatementCommonBase.hxx
@@ -66,8 +66,7 @@ namespace connectivity
protected:
virtual void disposeResultSet();
/// @throws css::sdbc::SQLException
- void freeStatementHandle()
- throw (css::sdbc::SQLException);
+ void freeStatementHandle();
// OPropertyArrayUsageHelper
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
@@ -78,11 +77,10 @@ namespace connectivity
css::uno::Any & rConvertedValue,
css::uno::Any & rOldValue,
sal_Int32 nHandle,
- const css::uno::Any& rValue )
- throw (css::lang::IllegalArgumentException) override;
+ const css::uno::Any& rValue ) override;
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
- const css::uno::Any& rValue) throw (css::uno::Exception, std::exception) override;
+ const css::uno::Any& rValue) override;
virtual void SAL_CALL getFastPropertyValue(
css::uno::Any& rValue,
sal_Int32 nHandle) const override;
@@ -91,18 +89,14 @@ namespace connectivity
/// @throws css::sdbc::SQLException
void prepareAndDescribeStatement(const OUString& sqlIn,
XSQLDA*& pOutSqlda,
- XSQLDA* pInSqlda=nullptr)
- throw (css::sdbc::SQLException);
+ XSQLDA* pInSqlda=nullptr);
/// @throws css::sdbc::SQLException
- short getSqlInfoItem(char aInfoItem)
- throw (css::sdbc::SQLException);
+ short getSqlInfoItem(char aInfoItem);
/// @throws css::sdbc::SQLException
- bool isDDLStatement()
- throw (css::sdbc::SQLException);
+ bool isDDLStatement();
/// @throws css::sdbc::SQLException
- sal_Int32 getStatementChangeCount()
- throw (css::sdbc::SQLException);
+ sal_Int32 getStatementChangeCount();
public:
@@ -118,25 +112,25 @@ namespace connectivity
virtual void SAL_CALL release() throw() override;
virtual void SAL_CALL acquire() throw() override;
// XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
//XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
// XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
// XWarningsSupplier - UNSUPPORTED
- virtual css::uno::Any SAL_CALL getWarnings( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearWarnings( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
// XMultipleResults - UNSUPPORTED
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getUpdateCount( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL getMoreResults( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) 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;
// XCancellable
- virtual void SAL_CALL cancel( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL cancel( ) override;
// XCloseable
- virtual void SAL_CALL close( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL close( ) override;
};
}
diff --git a/connectivity/source/drivers/firebird/SubComponent.hxx b/connectivity/source/drivers/firebird/SubComponent.hxx
index 9a6739e59a45..ea03c6512b6f 100644
--- a/connectivity/source/drivers/firebird/SubComponent.hxx
+++ b/connectivity/source/drivers/firebird/SubComponent.hxx
@@ -56,7 +56,7 @@ namespace connectivity
css::lang::XComponent* _pObject);
/// @throws css::lang::DisposedException
- void checkDisposed(bool _bThrow) throw ( css::lang::DisposedException );
+ void checkDisposed(bool _bThrow);
template <class TYPE>
diff --git a/connectivity/source/drivers/firebird/Table.cxx b/connectivity/source/drivers/firebird/Table.cxx
index fea904630ffb..7f71d1ebfbac 100644
--- a/connectivity/source/drivers/firebird/Table.cxx
+++ b/connectivity/source/drivers/firebird/Table.cxx
@@ -112,7 +112,6 @@ OCollection* Table::createIndexes(const TStringVector& rNames)
//----- XAlterTable -----------------------------------------------------------
void SAL_CALL Table::alterColumnByName(const OUString& rColName,
const uno::Reference< XPropertySet >& rDescriptor)
- throw(SQLException, NoSuchElementException, RuntimeException, std::exception)
{
MutexGuard aGuard(m_rMutex);
checkDisposed(WeakComponentImplHelperBase::rBHelper.bDisposed);
@@ -223,7 +222,6 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
// ----- XRename --------------------------------------------------------------
void SAL_CALL Table::rename(const OUString& rName)
- throw(SQLException, ElementExistException, RuntimeException, std::exception)
{
(void) rName;
throw RuntimeException(); // Firebird doesn't support this.
@@ -231,7 +229,6 @@ void SAL_CALL Table::rename(const OUString& rName)
// ----- XInterface -----------------------------------------------------------
Any SAL_CALL Table::queryInterface(const Type& rType)
- throw(RuntimeException, std::exception)
{
if (rType.getTypeName() == "com.sun.star.sdbcx.XRename")
return Any();
@@ -241,7 +238,6 @@ Any SAL_CALL Table::queryInterface(const Type& rType)
// ----- XTypeProvider --------------------------------------------------------
uno::Sequence< Type > SAL_CALL Table::getTypes()
- throw(RuntimeException, std::exception)
{
uno::Sequence< Type > aTypes = OTableHelper::getTypes();
diff --git a/connectivity/source/drivers/firebird/Table.hxx b/connectivity/source/drivers/firebird/Table.hxx
index 7ea9f48734f8..c1bcc161674b 100644
--- a/connectivity/source/drivers/firebird/Table.hxx
+++ b/connectivity/source/drivers/firebird/Table.hxx
@@ -64,26 +64,18 @@ namespace connectivity
*/
virtual void SAL_CALL alterColumnByName(
const ::rtl::OUString& rColName,
- const css::uno::Reference< css::beans::XPropertySet >& rDescriptor)
- throw(css::sdbc::SQLException,
- css::container::NoSuchElementException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XPropertySet >& rDescriptor) override;
// XRename -- UNSUPPORTED
- virtual void SAL_CALL rename(const ::rtl::OUString& sName)
- throw(css::sdbc::SQLException,
- css::container::ElementExistException,
- css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL rename(const ::rtl::OUString& sName) override;
//XInterface
virtual css::uno::Any
- SAL_CALL queryInterface(const css::uno::Type & rType)
- throw(css::uno::RuntimeException, std::exception) override;
+ SAL_CALL queryInterface(const css::uno::Type & rType) override;
//XTypeProvider
virtual css::uno::Sequence< css::uno::Type >
- SAL_CALL getTypes()
- throw(css::uno::RuntimeException, std::exception) override;
+ SAL_CALL getTypes() override;
};
diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx
index bc15f9040e46..2643a7aa7a0c 100644
--- a/connectivity/source/drivers/firebird/Tables.cxx
+++ b/connectivity/source/drivers/firebird/Tables.cxx
@@ -36,7 +36,6 @@ using namespace ::com::sun::star::uno;
//----- OCollection -----------------------------------------------------------
void Tables::impl_refresh()
- throw(RuntimeException)
{
static_cast<Catalog&>(m_rParent).refreshTables();
}
diff --git a/connectivity/source/drivers/firebird/Tables.hxx b/connectivity/source/drivers/firebird/Tables.hxx
index 1a0a3580efd7..e106b8b65c4d 100644
--- a/connectivity/source/drivers/firebird/Tables.hxx
+++ b/connectivity/source/drivers/firebird/Tables.hxx
@@ -32,8 +32,7 @@ namespace connectivity
static OUString createStandardColumnPart(const css::uno::Reference< css::beans::XPropertySet >& xColProp,const css::uno::Reference< com::sun::star::sdbc::XConnection>& _xConnection);
// OCollection
- virtual void impl_refresh()
- throw(css::uno::RuntimeException) override;
+ virtual void impl_refresh() override;
virtual ::connectivity::sdbcx::ObjectType createObject(
const ::rtl::OUString& rName) override;
virtual css::uno::Reference< css::beans::XPropertySet >
diff --git a/connectivity/source/drivers/firebird/Users.cxx b/connectivity/source/drivers/firebird/Users.cxx
index 4316a5814039..832872c51e66 100644
--- a/connectivity/source/drivers/firebird/Users.cxx
+++ b/connectivity/source/drivers/firebird/Users.cxx
@@ -41,7 +41,6 @@ Users::Users(const uno::Reference< XDatabaseMetaData >& rMetaData,
//----- OCollection -----------------------------------------------------------
void Users::impl_refresh()
- throw(RuntimeException)
{
// TODO: IMPLEMENT ME
}
diff --git a/connectivity/source/drivers/firebird/Users.hxx b/connectivity/source/drivers/firebird/Users.hxx
index 975bd1376263..75ba14499eb5 100644
--- a/connectivity/source/drivers/firebird/Users.hxx
+++ b/connectivity/source/drivers/firebird/Users.hxx
@@ -29,8 +29,7 @@ namespace connectivity
m_xMetaData;
// OCollection
- virtual void impl_refresh()
- throw(css::uno::RuntimeException) override;
+ virtual void impl_refresh() override;
virtual ::connectivity::sdbcx::ObjectType createObject(
const ::rtl::OUString& rName) override;
virtual css::uno::Reference< css::beans::XPropertySet >
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx
index 7d72900a4788..bd84bba0c9a9 100644
--- a/connectivity/source/drivers/firebird/Util.cxx
+++ b/connectivity/source/drivers/firebird/Util.cxx
@@ -56,7 +56,6 @@ OUString firebird::StatusVectorToString(const ISC_STATUS_ARRAY& rStatusVector,
void firebird::evaluateStatusVector(const ISC_STATUS_ARRAY& rStatusVector,
const OUString& rCause,
const uno::Reference< XInterface >& _rxContext)
- throw(SQLException)
{
if (IndicatesError(rStatusVector))
{
diff --git a/connectivity/source/drivers/firebird/Util.hxx b/connectivity/source/drivers/firebird/Util.hxx
index c66ecd7d1209..b37b8718e9b8 100644
--- a/connectivity/source/drivers/firebird/Util.hxx
+++ b/connectivity/source/drivers/firebird/Util.hxx
@@ -60,8 +60,7 @@ namespace connectivity
*/
void evaluateStatusVector(const ISC_STATUS_ARRAY& rStatusVector,
const ::rtl::OUString& aCause,
- const css::uno::Reference< css::uno::XInterface >& _rxContext)
- throw (css::sdbc::SQLException);
+ const css::uno::Reference< css::uno::XInterface >& _rxContext);
sal_Int32 getColumnTypeFromFBType(short aType, short aSubType);
::rtl::OUString getColumnTypeNameFromFBType(short aType, short aSubType);