summaryrefslogtreecommitdiff
path: root/ucb/source/cacher/cachedcontentresultset.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/cacher/cachedcontentresultset.cxx')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx131
1 files changed, 7 insertions, 124 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index e08edb397bc5..93a26824f388 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -203,8 +203,6 @@ bool SAL_CALL CachedContentResultSet::CCRS_Cache
Any& SAL_CALL CachedContentResultSet::CCRS_Cache
::getRowAny( sal_Int32 nRow )
- throw( SQLException,
- RuntimeException )
{
if( !nRow )
throw SQLException();
@@ -269,8 +267,6 @@ Sequence< sal_Bool >* SAL_CALL CachedContentResultSet::CCRS_Cache
const Any& SAL_CALL CachedContentResultSet::CCRS_Cache
::getAny( sal_Int32 nRow, sal_Int32 nColumnIndex )
- throw( SQLException,
- RuntimeException )
{
if( !nColumnIndex )
throw SQLException();
@@ -297,7 +293,6 @@ const Any& SAL_CALL CachedContentResultSet::CCRS_Cache
OUString SAL_CALL CachedContentResultSet::CCRS_Cache
::getContentIdentifierString( sal_Int32 nRow )
- throw( css::uno::RuntimeException )
{
try
{
@@ -319,7 +314,6 @@ OUString SAL_CALL CachedContentResultSet::CCRS_Cache
Reference< XContentIdentifier > SAL_CALL CachedContentResultSet::CCRS_Cache
::getContentIdentifier( sal_Int32 nRow )
- throw( css::uno::RuntimeException )
{
try
{
@@ -341,7 +335,6 @@ Reference< XContentIdentifier > SAL_CALL CachedContentResultSet::CCRS_Cache
Reference< XContent > SAL_CALL CachedContentResultSet::CCRS_Cache
::getContent( sal_Int32 nRow )
- throw( css::uno::RuntimeException )
{
try
{
@@ -398,31 +391,25 @@ public:
XPropertySetInfo > const & xPropertySetInfoOrigin );
// 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< sal_Int8 > SAL_CALL getImplementationId()
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
// XPropertySetInfo
virtual Sequence< css::beans::Property > SAL_CALL
- getProperties()
- throw( RuntimeException, std::exception ) override;
+ getProperties() override;
virtual css::beans::Property SAL_CALL
- getPropertyByName( const OUString& aName )
- throw( css::beans::UnknownPropertyException, RuntimeException, std::exception ) override;
+ getPropertyByName( const OUString& aName ) override;
virtual sal_Bool SAL_CALL
- hasPropertyByName( const OUString& Name )
- throw( RuntimeException, std::exception ) override;
+ hasPropertyByName( const OUString& Name ) override;
};
//some helping variables ( names for my special properties )
@@ -518,7 +505,6 @@ void SAL_CALL CCRS_PropertySetInfo::release()
}
css::uno::Any SAL_CALL CCRS_PropertySetInfo::queryInterface( const css::uno::Type & rType )
- throw( css::uno::RuntimeException, std::exception )
{
css::uno::Any aRet = cppu::queryInterface( rType,
(static_cast< XTypeProvider* >(this)),
@@ -539,7 +525,7 @@ XTYPEPROVIDER_IMPL_2( CCRS_PropertySetInfo
//virtual
Sequence< Property > SAL_CALL CCRS_PropertySetInfo
- ::getProperties() throw( RuntimeException, std::exception )
+ ::getProperties()
{
return *m_pProperties;
}
@@ -547,7 +533,6 @@ Sequence< Property > SAL_CALL CCRS_PropertySetInfo
//virtual
Property SAL_CALL CCRS_PropertySetInfo
::getPropertyByName( const OUString& aName )
- throw( UnknownPropertyException, RuntimeException, std::exception )
{
if ( aName.isEmpty() )
throw UnknownPropertyException();
@@ -562,7 +547,6 @@ Property SAL_CALL CCRS_PropertySetInfo
//virtual
sal_Bool SAL_CALL CCRS_PropertySetInfo
::hasPropertyByName( const OUString& Name )
- throw( RuntimeException, std::exception )
{
return ( impl_getPos( Name ) != -1 );
}
@@ -696,8 +680,6 @@ CachedContentResultSet::~CachedContentResultSet()
bool SAL_CALL CachedContentResultSet
::applyPositionToOrigin( sal_Int32 nRow )
- throw( SQLException,
- RuntimeException )
{
impl_EnsureNotDisposed();
@@ -825,7 +807,6 @@ if( bIsFinalCount && !bCurIsFinalCount ) \
void SAL_CALL CachedContentResultSet
::impl_fetchData( sal_Int32 nRow
, sal_Int32 nFetchSize, sal_Int32 nFetchDirection )
- throw( css::uno::RuntimeException )
{
FETCH_XXX( m_aCache, m_xFetchProvider, fetch );
}
@@ -923,7 +904,6 @@ void SAL_CALL CachedContentResultSet::release()
Any SAL_CALL CachedContentResultSet
::queryInterface( const Type& rType )
- throw ( RuntimeException, std::exception )
{
//list all interfaces inclusive baseclasses of interfaces
@@ -962,19 +942,16 @@ XTYPEPROVIDER_IMPL_11( CachedContentResultSet
// XServiceInfo methods.
OUString SAL_CALL CachedContentResultSet::getImplementationName()
- throw( css::uno::RuntimeException, std::exception )
{
return OUString( "com.sun.star.comp.ucb.CachedContentResultSet" );
}
sal_Bool SAL_CALL CachedContentResultSet::supportsService( const OUString& ServiceName )
- throw( css::uno::RuntimeException, std::exception )
{
return cppu::supportsService( this, ServiceName );
}
css::uno::Sequence< OUString > SAL_CALL CachedContentResultSet::getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception )
{
return { CACHED_CONTENT_RESULTSET_SERVICE_NAME };
}
@@ -987,11 +964,6 @@ css::uno::Sequence< OUString > SAL_CALL CachedContentResultSet::getSupportedServ
// virtual
void SAL_CALL CachedContentResultSet
::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
- throw( UnknownPropertyException,
- PropertyVetoException,
- IllegalArgumentException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1098,9 +1070,6 @@ void SAL_CALL CachedContentResultSet
// virtual
Any SAL_CALL CachedContentResultSet
::getPropertyValue( const OUString& rPropertyName )
- throw( UnknownPropertyException,
- WrappedTargetException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1157,7 +1126,6 @@ Any SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::impl_disposing( const EventObject& rEventObject )
- throw( RuntimeException )
{
{
impl_EnsureNotDisposed();
@@ -1172,7 +1140,6 @@ void SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::impl_propertyChange( const PropertyChangeEvent& rEvt )
- throw( RuntimeException )
{
impl_EnsureNotDisposed();
@@ -1226,8 +1193,6 @@ void SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::impl_vetoableChange( const PropertyChangeEvent& rEvt )
- throw( PropertyVetoException,
- RuntimeException )
{
impl_EnsureNotDisposed();
@@ -1306,7 +1271,6 @@ return m_aCache##XXX.get##XXX( nRow );
// virtual
OUString SAL_CALL CachedContentResultSet
::queryContentIdentifierString()
- throw( RuntimeException, std::exception )
{
XCONTENTACCESS_queryXXX( queryContentIdentifierString, ContentIdentifierString, OUString )
}
@@ -1315,7 +1279,6 @@ OUString SAL_CALL CachedContentResultSet
// virtual
Reference< XContentIdentifier > SAL_CALL CachedContentResultSet
::queryContentIdentifier()
- throw( RuntimeException, std::exception )
{
XCONTENTACCESS_queryXXX( queryContentIdentifier, ContentIdentifier, Reference< XContentIdentifier > )
}
@@ -1324,7 +1287,6 @@ Reference< XContentIdentifier > SAL_CALL CachedContentResultSet
// virtual
Reference< XContent > SAL_CALL CachedContentResultSet
::queryContent()
- throw( RuntimeException, std::exception )
{
XCONTENTACCESS_queryXXX( queryContent, Content, Reference< XContent > )
}
@@ -1336,8 +1298,6 @@ Reference< XContent > SAL_CALL CachedContentResultSet
sal_Bool SAL_CALL CachedContentResultSet
::next()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1377,8 +1337,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::previous()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1418,8 +1376,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::absolute( sal_Int32 row )
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1537,8 +1493,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::relative( sal_Int32 rows )
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1592,8 +1546,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::first()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1627,8 +1579,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::last()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1676,8 +1626,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::beforeFirst()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1692,8 +1640,6 @@ void SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::afterLast()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1708,8 +1654,6 @@ void SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::isAfterLast()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1741,8 +1685,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::isBeforeFirst()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1777,8 +1719,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::isFirst()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1812,8 +1752,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::isLast()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1845,8 +1783,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Int32 SAL_CALL CachedContentResultSet
::getRow()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1859,8 +1795,6 @@ sal_Int32 SAL_CALL CachedContentResultSet
//virtual
void SAL_CALL CachedContentResultSet
::refreshRow()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1871,8 +1805,6 @@ void SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::rowUpdated()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1882,8 +1814,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::rowInserted()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1894,8 +1824,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::rowDeleted()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
@@ -1906,8 +1834,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
Reference< XInterface > SAL_CALL CachedContentResultSet
::getStatement()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
//@todo ?return anything
@@ -1921,8 +1847,6 @@ Reference< XInterface > SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::wasNull()
- throw( SQLException,
- RuntimeException, std::exception )
{
impl_EnsureNotDisposed();
impl_init_xRowOrigin();
@@ -1942,8 +1866,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
OUString SAL_CALL CachedContentResultSet
::getString( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<OUString>(&css::sdbc::XRow::getString, columnIndex);
}
@@ -1951,8 +1873,6 @@ OUString SAL_CALL CachedContentResultSet
//virtual
sal_Bool SAL_CALL CachedContentResultSet
::getBoolean( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<sal_Bool>(&css::sdbc::XRow::getBoolean, columnIndex);
}
@@ -1960,8 +1880,6 @@ sal_Bool SAL_CALL CachedContentResultSet
//virtual
sal_Int8 SAL_CALL CachedContentResultSet
::getByte( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<sal_Int8>(&css::sdbc::XRow::getByte, columnIndex);
}
@@ -1969,8 +1887,6 @@ sal_Int8 SAL_CALL CachedContentResultSet
//virtual
sal_Int16 SAL_CALL CachedContentResultSet
::getShort( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<sal_Int16>(&css::sdbc::XRow::getShort, columnIndex);
}
@@ -1978,8 +1894,6 @@ sal_Int16 SAL_CALL CachedContentResultSet
//virtual
sal_Int32 SAL_CALL CachedContentResultSet
::getInt( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<sal_Int32>(&css::sdbc::XRow::getInt, columnIndex);
}
@@ -1987,8 +1901,6 @@ sal_Int32 SAL_CALL CachedContentResultSet
//virtual
sal_Int64 SAL_CALL CachedContentResultSet
::getLong( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<sal_Int64>(&css::sdbc::XRow::getLong, columnIndex);
}
@@ -1996,8 +1908,6 @@ sal_Int64 SAL_CALL CachedContentResultSet
//virtual
float SAL_CALL CachedContentResultSet
::getFloat( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<float>(&css::sdbc::XRow::getFloat, columnIndex);
}
@@ -2005,8 +1915,6 @@ float SAL_CALL CachedContentResultSet
//virtual
double SAL_CALL CachedContentResultSet
::getDouble( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<double>(&css::sdbc::XRow::getDouble, columnIndex);
}
@@ -2014,8 +1922,6 @@ double SAL_CALL CachedContentResultSet
//virtual
Sequence< sal_Int8 > SAL_CALL CachedContentResultSet
::getBytes( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Sequence<sal_Int8> >(
&css::sdbc::XRow::getBytes, columnIndex);
@@ -2024,8 +1930,6 @@ Sequence< sal_Int8 > SAL_CALL CachedContentResultSet
//virtual
Date SAL_CALL CachedContentResultSet
::getDate( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<css::util::Date>(
&css::sdbc::XRow::getDate, columnIndex);
@@ -2034,8 +1938,6 @@ Date SAL_CALL CachedContentResultSet
//virtual
Time SAL_CALL CachedContentResultSet
::getTime( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<css::util::Time>(
&css::sdbc::XRow::getTime, columnIndex);
@@ -2044,8 +1946,6 @@ Time SAL_CALL CachedContentResultSet
//virtual
DateTime SAL_CALL CachedContentResultSet
::getTimestamp( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet<css::util::DateTime>(
&css::sdbc::XRow::getTimestamp, columnIndex);
@@ -2055,8 +1955,6 @@ DateTime SAL_CALL CachedContentResultSet
Reference< css::io::XInputStream >
SAL_CALL CachedContentResultSet
::getBinaryStream( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::io::XInputStream> >(
&css::sdbc::XRow::getBinaryStream, columnIndex);
@@ -2066,8 +1964,6 @@ Reference< css::io::XInputStream >
Reference< css::io::XInputStream >
SAL_CALL CachedContentResultSet
::getCharacterStream( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::io::XInputStream> >(
&css::sdbc::XRow::getCharacterStream, columnIndex);
@@ -2078,8 +1974,6 @@ Any SAL_CALL CachedContentResultSet
::getObject( sal_Int32 columnIndex,
const Reference<
css::container::XNameAccess >& typeMap )
- throw( SQLException,
- RuntimeException, std::exception )
{
//if you change this function please pay attention to
//function template rowOriginGet, where this is similar implemented
@@ -2126,8 +2020,6 @@ Any SAL_CALL CachedContentResultSet
//virtual
Reference< XRef > SAL_CALL CachedContentResultSet
::getRef( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::sdbc::XRef> >(
&css::sdbc::XRow::getRef, columnIndex);
@@ -2136,8 +2028,6 @@ Reference< XRef > SAL_CALL CachedContentResultSet
//virtual
Reference< XBlob > SAL_CALL CachedContentResultSet
::getBlob( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::sdbc::XBlob> >(
&css::sdbc::XRow::getBlob, columnIndex);
@@ -2146,8 +2036,6 @@ Reference< XBlob > SAL_CALL CachedContentResultSet
//virtual
Reference< XClob > SAL_CALL CachedContentResultSet
::getClob( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::sdbc::XClob> >(
&css::sdbc::XRow::getClob, columnIndex);
@@ -2156,8 +2044,6 @@ Reference< XClob > SAL_CALL CachedContentResultSet
//virtual
Reference< XArray > SAL_CALL CachedContentResultSet
::getArray( sal_Int32 columnIndex )
- throw( SQLException,
- RuntimeException, std::exception )
{
return rowOriginGet< css::uno::Reference<css::sdbc::XArray> >(
&css::sdbc::XRow::getArray, columnIndex);
@@ -2212,7 +2098,6 @@ void SAL_CALL CachedContentResultSetFactory::release()
}
css::uno::Any SAL_CALL CachedContentResultSetFactory::queryInterface( const css::uno::Type & rType )
- throw( css::uno::RuntimeException, std::exception )
{
css::uno::Any aRet = cppu::queryInterface( rType,
(static_cast< XTypeProvider* >(this)),
@@ -2238,7 +2123,6 @@ XSERVICEINFO_COMMOM_IMPL( CachedContentResultSetFactory,
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL
CachedContentResultSetFactory_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr )
- throw( css::uno::Exception )
{
css::lang::XServiceInfo* pX =
static_cast<css::lang::XServiceInfo*>(new CachedContentResultSetFactory( ucbhelper::getComponentContext(rSMgr) ));
@@ -2266,7 +2150,6 @@ Reference< XResultSet > SAL_CALL CachedContentResultSetFactory
::createCachedContentResultSet(
const Reference< XResultSet > & xSource,
const Reference< XContentIdentifierMapping > & xMapping )
- throw( css::uno::RuntimeException, std::exception )
{
Reference< XResultSet > xRet;
xRet = new CachedContentResultSet( m_xContext, xSource, xMapping );