summaryrefslogtreecommitdiffstats
path: root/ucb/source/sorter/sortresult.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/sorter/sortresult.cxx')
-rw-r--r--ucb/source/sorter/sortresult.cxx89
1 files changed, 5 insertions, 84 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index 24a507a066a7..aa5580b06eb4 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -99,12 +99,9 @@ public:
SRSPropertySetInfo();
// XPropertySetInfo
- virtual Sequence< Property > SAL_CALL getProperties()
- throw( RuntimeException, std::exception ) override;
- virtual Property SAL_CALL getPropertyByName( const OUString& aName )
- throw( UnknownPropertyException, RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name )
- throw( RuntimeException, std::exception ) override;
+ virtual Sequence< Property > SAL_CALL getProperties() override;
+ virtual Property SAL_CALL getPropertyByName( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override;
};
typedef OMultiTypeInterfaceContainerHelperVar<OUString>
@@ -161,19 +158,16 @@ SortedResultSet::~SortedResultSet()
// XServiceInfo methods.
OUString SAL_CALL SortedResultSet::getImplementationName()
- throw( css::uno::RuntimeException, std::exception )
{
return OUString( "com.sun.star.comp.ucb.SortedResultSet" );
}
sal_Bool SAL_CALL SortedResultSet::supportsService( const OUString& ServiceName )
- throw( css::uno::RuntimeException, std::exception )
{
return cppu::supportsService( this, ServiceName );
}
css::uno::Sequence< OUString > SAL_CALL SortedResultSet::getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception )
{
return { RESULTSET_SERVICE_NAME };
}
@@ -182,7 +176,6 @@ css::uno::Sequence< OUString > SAL_CALL SortedResultSet::getSupportedServiceName
// XComponent methods.
void SAL_CALL SortedResultSet::dispose()
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -214,7 +207,6 @@ void SAL_CALL SortedResultSet::dispose()
void SAL_CALL SortedResultSet::addEventListener(
const Reference< XEventListener >& Listener )
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -228,7 +220,6 @@ void SAL_CALL SortedResultSet::addEventListener(
void SAL_CALL SortedResultSet::removeEventListener(
const Reference< XEventListener >& Listener )
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -242,7 +233,6 @@ void SAL_CALL SortedResultSet::removeEventListener(
OUString SAL_CALL
SortedResultSet::queryContentIdentifierString()
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XContentAccess >::query(mxOriginal)->queryContentIdentifierString();
@@ -251,7 +241,6 @@ SortedResultSet::queryContentIdentifierString()
Reference< XContentIdentifier > SAL_CALL
SortedResultSet::queryContentIdentifier()
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XContentAccess >::query(mxOriginal)->queryContentIdentifier();
@@ -260,7 +249,6 @@ SortedResultSet::queryContentIdentifier()
Reference< XContent > SAL_CALL
SortedResultSet::queryContent()
- throw( RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XContentAccess >::query(mxOriginal)->queryContent();
@@ -270,7 +258,6 @@ SortedResultSet::queryContent()
// XResultSet methods.
sal_Bool SAL_CALL SortedResultSet::next()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -293,7 +280,6 @@ sal_Bool SAL_CALL SortedResultSet::next()
sal_Bool SAL_CALL SortedResultSet::isBeforeFirst()
- throw ( SQLException, RuntimeException, std::exception )
{
if ( mnCurEntry )
return false;
@@ -303,7 +289,6 @@ sal_Bool SAL_CALL SortedResultSet::isBeforeFirst()
sal_Bool SAL_CALL SortedResultSet::isAfterLast()
- throw ( SQLException, RuntimeException, std::exception )
{
if ( mnCurEntry > mnCount )
return true;
@@ -313,7 +298,6 @@ sal_Bool SAL_CALL SortedResultSet::isAfterLast()
sal_Bool SAL_CALL SortedResultSet::isFirst()
- throw ( SQLException, RuntimeException, std::exception )
{
if ( mnCurEntry == 1 )
return true;
@@ -323,7 +307,6 @@ sal_Bool SAL_CALL SortedResultSet::isFirst()
sal_Bool SAL_CALL SortedResultSet::isLast()
- throw ( SQLException, RuntimeException, std::exception )
{
if ( mnCurEntry == mnCount )
return true;
@@ -333,7 +316,6 @@ sal_Bool SAL_CALL SortedResultSet::isLast()
void SAL_CALL SortedResultSet::beforeFirst()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
mnCurEntry = 0;
@@ -342,7 +324,6 @@ void SAL_CALL SortedResultSet::beforeFirst()
void SAL_CALL SortedResultSet::afterLast()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
mnCurEntry = mnCount+1;
@@ -351,7 +332,6 @@ void SAL_CALL SortedResultSet::afterLast()
sal_Bool SAL_CALL SortedResultSet::first()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -370,7 +350,6 @@ sal_Bool SAL_CALL SortedResultSet::first()
sal_Bool SAL_CALL SortedResultSet::last()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -389,7 +368,6 @@ sal_Bool SAL_CALL SortedResultSet::last()
sal_Int32 SAL_CALL SortedResultSet::getRow()
- throw ( SQLException, RuntimeException, std::exception )
{
return mnCurEntry;
}
@@ -421,7 +399,6 @@ sal_Int32 SAL_CALL SortedResultSet::getRow()
type is FORWARD_ONLY.
*/
sal_Bool SAL_CALL SortedResultSet::absolute( sal_Int32 row )
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -484,7 +461,6 @@ sal_Bool SAL_CALL SortedResultSet::absolute( sal_Int32 row )
current row, or the result set type is FORWARD_ONLY.
*/
sal_Bool SAL_CALL SortedResultSet::relative( sal_Int32 rows )
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -529,7 +505,6 @@ sal_Bool SAL_CALL SortedResultSet::relative( sal_Int32 rows )
is FORWARD_ONLY.
*/
sal_Bool SAL_CALL SortedResultSet::previous()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -551,7 +526,6 @@ sal_Bool SAL_CALL SortedResultSet::previous()
void SAL_CALL SortedResultSet::refreshRow()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -565,7 +539,6 @@ void SAL_CALL SortedResultSet::refreshRow()
sal_Bool SAL_CALL SortedResultSet::rowUpdated()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -579,7 +552,6 @@ sal_Bool SAL_CALL SortedResultSet::rowUpdated()
sal_Bool SAL_CALL SortedResultSet::rowInserted()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -593,7 +565,6 @@ sal_Bool SAL_CALL SortedResultSet::rowInserted()
sal_Bool SAL_CALL SortedResultSet::rowDeleted()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -607,7 +578,6 @@ sal_Bool SAL_CALL SortedResultSet::rowDeleted()
Reference< XInterface > SAL_CALL SortedResultSet::getStatement()
- throw ( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -624,7 +594,6 @@ Reference< XInterface > SAL_CALL SortedResultSet::getStatement()
sal_Bool SAL_CALL SortedResultSet::wasNull()
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->wasNull();
@@ -632,7 +601,6 @@ sal_Bool SAL_CALL SortedResultSet::wasNull()
OUString SAL_CALL SortedResultSet::getString( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getString( columnIndex );
@@ -640,7 +608,6 @@ OUString SAL_CALL SortedResultSet::getString( sal_Int32 columnIndex )
sal_Bool SAL_CALL SortedResultSet::getBoolean( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getBoolean( columnIndex );
@@ -648,7 +615,6 @@ sal_Bool SAL_CALL SortedResultSet::getBoolean( sal_Int32 columnIndex )
sal_Int8 SAL_CALL SortedResultSet::getByte( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getByte( columnIndex );
@@ -656,7 +622,6 @@ sal_Int8 SAL_CALL SortedResultSet::getByte( sal_Int32 columnIndex )
sal_Int16 SAL_CALL SortedResultSet::getShort( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getShort( columnIndex );
@@ -664,14 +629,12 @@ sal_Int16 SAL_CALL SortedResultSet::getShort( sal_Int32 columnIndex )
sal_Int32 SAL_CALL SortedResultSet::getInt( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getInt( columnIndex );
}
sal_Int64 SAL_CALL SortedResultSet::getLong( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getLong( columnIndex );
@@ -679,7 +642,6 @@ sal_Int64 SAL_CALL SortedResultSet::getLong( sal_Int32 columnIndex )
float SAL_CALL SortedResultSet::getFloat( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getFloat( columnIndex );
@@ -687,7 +649,6 @@ float SAL_CALL SortedResultSet::getFloat( sal_Int32 columnIndex )
double SAL_CALL SortedResultSet::getDouble( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getDouble( columnIndex );
@@ -695,7 +656,6 @@ double SAL_CALL SortedResultSet::getDouble( sal_Int32 columnIndex )
Sequence< sal_Int8 > SAL_CALL SortedResultSet::getBytes( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getBytes( columnIndex );
@@ -703,7 +663,6 @@ Sequence< sal_Int8 > SAL_CALL SortedResultSet::getBytes( sal_Int32 columnIndex )
Date SAL_CALL SortedResultSet::getDate( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getDate( columnIndex );
@@ -711,7 +670,6 @@ Date SAL_CALL SortedResultSet::getDate( sal_Int32 columnIndex )
Time SAL_CALL SortedResultSet::getTime( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getTime( columnIndex );
@@ -719,7 +677,6 @@ Time SAL_CALL SortedResultSet::getTime( sal_Int32 columnIndex )
DateTime SAL_CALL SortedResultSet::getTimestamp( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getTimestamp( columnIndex );
@@ -728,7 +685,6 @@ DateTime SAL_CALL SortedResultSet::getTimestamp( sal_Int32 columnIndex )
Reference< XInputStream > SAL_CALL
SortedResultSet::getBinaryStream( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getBinaryStream( columnIndex );
@@ -737,7 +693,6 @@ SortedResultSet::getBinaryStream( sal_Int32 columnIndex )
Reference< XInputStream > SAL_CALL
SortedResultSet::getCharacterStream( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getCharacterStream( columnIndex );
@@ -746,7 +701,6 @@ SortedResultSet::getCharacterStream( sal_Int32 columnIndex )
Any SAL_CALL SortedResultSet::getObject( sal_Int32 columnIndex,
const Reference< XNameAccess >& typeMap )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getObject( columnIndex,
@@ -755,7 +709,6 @@ Any SAL_CALL SortedResultSet::getObject( sal_Int32 columnIndex,
Reference< XRef > SAL_CALL SortedResultSet::getRef( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getRef( columnIndex );
@@ -763,7 +716,6 @@ Reference< XRef > SAL_CALL SortedResultSet::getRef( sal_Int32 columnIndex )
Reference< XBlob > SAL_CALL SortedResultSet::getBlob( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getBlob( columnIndex );
@@ -771,7 +723,6 @@ Reference< XBlob > SAL_CALL SortedResultSet::getBlob( sal_Int32 columnIndex )
Reference< XClob > SAL_CALL SortedResultSet::getClob( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getClob( columnIndex );
@@ -779,7 +730,6 @@ Reference< XClob > SAL_CALL SortedResultSet::getClob( sal_Int32 columnIndex )
Reference< XArray > SAL_CALL SortedResultSet::getArray( sal_Int32 columnIndex )
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XRow >::query(mxOriginal)->getArray( columnIndex );
@@ -790,7 +740,6 @@ Reference< XArray > SAL_CALL SortedResultSet::getArray( sal_Int32 columnIndex )
void SAL_CALL SortedResultSet::close()
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
Reference< XCloseable >::query(mxOriginal)->close();
@@ -801,7 +750,6 @@ void SAL_CALL SortedResultSet::close()
Reference< XResultSetMetaData > SAL_CALL SortedResultSet::getMetaData()
- throw( SQLException, RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
return Reference< XResultSetMetaDataSupplier >::query(mxOriginal)->getMetaData();
@@ -812,7 +760,7 @@ Reference< XResultSetMetaData > SAL_CALL SortedResultSet::getMetaData()
Reference< XPropertySetInfo > SAL_CALL
-SortedResultSet::getPropertySetInfo() throw( RuntimeException, std::exception )
+SortedResultSet::getPropertySetInfo()
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -828,11 +776,6 @@ SortedResultSet::getPropertySetInfo() throw( RuntimeException, std::exception )
void SAL_CALL SortedResultSet::setPropertyValue(
const OUString& PropertyName,
const Any& )
- throw( UnknownPropertyException,
- PropertyVetoException,
- IllegalArgumentException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -844,9 +787,6 @@ void SAL_CALL SortedResultSet::setPropertyValue(
Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -887,9 +827,6 @@ Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
void SAL_CALL SortedResultSet::addPropertyChangeListener(
const OUString& PropertyName,
const Reference< XPropertyChangeListener >& Listener )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -904,9 +841,6 @@ void SAL_CALL SortedResultSet::addPropertyChangeListener(
void SAL_CALL SortedResultSet::removePropertyChangeListener(
const OUString& PropertyName,
const Reference< XPropertyChangeListener >& Listener )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -918,9 +852,6 @@ void SAL_CALL SortedResultSet::removePropertyChangeListener(
void SAL_CALL SortedResultSet::addVetoableChangeListener(
const OUString& PropertyName,
const Reference< XVetoableChangeListener >& Listener )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -935,9 +866,6 @@ void SAL_CALL SortedResultSet::addVetoableChangeListener(
void SAL_CALL SortedResultSet::removeVetoableChangeListener(
const OUString& PropertyName,
const Reference< XVetoableChangeListener >& Listener )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
@@ -952,8 +880,6 @@ sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResult
const Reference < XResultSet >& xResultTwo,
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo,
SortInfo* pSortInfo )
-
- throw( SQLException, RuntimeException )
{
Reference < XRow > xRowOne( xResultOne, UNO_QUERY );
Reference < XRow > xRowTwo( xResultTwo, UNO_QUERY );
@@ -1166,7 +1092,6 @@ sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResult
sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResultOne,
const Reference < XResultSet >& xResultTwo,
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo )
- throw( SQLException, RuntimeException )
{
sal_IntPtr nCompare = 0;
SortInfo* pInfo = mpSortInfo;
@@ -1207,7 +1132,6 @@ sal_IntPtr SortedResultSet::CompareImpl( const Reference < XResultSet >& xResult
sal_IntPtr SortedResultSet::Compare( SortListData *pOne,
SortListData *pTwo )
- throw( SQLException, RuntimeException )
{
sal_IntPtr nIndexOne;
sal_IntPtr nIndexTwo;
@@ -1246,7 +1170,6 @@ sal_IntPtr SortedResultSet::Compare( SortListData *pOne,
sal_IntPtr SortedResultSet::FindPos( SortListData *pEntry,
sal_IntPtr _nStart, sal_IntPtr _nEnd )
- throw( SQLException, RuntimeException )
{
if ( _nStart > _nEnd )
return _nStart + 1;
@@ -1872,7 +1795,7 @@ SRSPropertySetInfo::SRSPropertySetInfo()
// XPropertySetInfo methods.
Sequence< Property > SAL_CALL
-SRSPropertySetInfo::getProperties() throw( RuntimeException, std::exception )
+SRSPropertySetInfo::getProperties()
{
return Sequence < Property > ( maProps, 2 );
}
@@ -1880,7 +1803,6 @@ SRSPropertySetInfo::getProperties() throw( RuntimeException, std::exception )
Property SAL_CALL
SRSPropertySetInfo::getPropertyByName( const OUString& Name )
- throw( UnknownPropertyException, RuntimeException, std::exception )
{
if ( Name == "RowCount" )
return maProps[0];
@@ -1893,7 +1815,6 @@ SRSPropertySetInfo::getPropertyByName( const OUString& Name )
sal_Bool SAL_CALL
SRSPropertySetInfo::hasPropertyByName( const OUString& Name )
- throw( RuntimeException, std::exception )
{
if ( Name == "RowCount" )
return true;