summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xtable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xtable.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xtable.cxx80
1 files changed, 40 insertions, 40 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xtable.cxx b/connectivity/source/drivers/postgresql/pq_xtable.cxx
index 7a14cbfc497f..4b8d4518c1f4 100644
--- a/connectivity/source/drivers/postgresql/pq_xtable.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xtable.cxx
@@ -76,7 +76,7 @@ using com::sun::star::sdbc::SQLException;
namespace pq_sdbc_driver
{
Table::Table( const ::rtl::Reference< RefCountedMutex > & refMutex,
- const Reference< com::sun::star::sdbc::XConnection > & connection,
+ const Reference< css::sdbc::XConnection > & connection,
ConnectionSettings *pSettings)
: ReflectionBase(
getStatics().refl.table.implName,
@@ -97,7 +97,7 @@ Reference< XPropertySet > Table::createDataDescriptor( ) throw (RuntimeExceptio
return Reference< XPropertySet > ( pTable );
}
-Reference< XNameAccess > Table::getColumns( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XNameAccess > Table::getColumns( ) throw (css::uno::RuntimeException, std::exception)
{
if( ! m_columns.is() )
{
@@ -112,7 +112,7 @@ Reference< XNameAccess > Table::getColumns( ) throw (::com::sun::star::uno::Run
return m_columns;
}
-Reference< XNameAccess > Table::getIndexes() throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XNameAccess > Table::getIndexes() throw (css::uno::RuntimeException, std::exception)
{
if( ! m_indexes.is() )
{
@@ -126,7 +126,7 @@ Reference< XNameAccess > Table::getIndexes() throw (::com::sun::star::uno::Runti
return m_indexes;
}
-Reference< XIndexAccess > Table::getKeys( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XIndexAccess > Table::getKeys( ) throw (css::uno::RuntimeException, std::exception)
{
if( ! m_keys.is() )
{
@@ -141,9 +141,9 @@ Reference< XIndexAccess > Table::getKeys( ) throw (::com::sun::star::uno::Runti
}
void Table::rename( const OUString& newName )
- throw (::com::sun::star::sdbc::SQLException,
- ::com::sun::star::container::ElementExistException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw (css::sdbc::SQLException,
+ css::container::ElementExistException,
+ css::uno::RuntimeException, std::exception)
{
MutexGuard guard( m_refMutex->mutex );
Statics & st = getStatics();
@@ -172,7 +172,7 @@ void Table::rename( const OUString& newName )
{
// maintain view list (really strange API !)
Any a = m_pSettings->pViewsImpl->getByName( fullOldName );
- Reference< com::sun::star::sdbcx::XRename > Xrename;
+ Reference< css::sdbcx::XRename > Xrename;
a >>= Xrename;
if( Xrename.is() )
{
@@ -198,7 +198,7 @@ void Table::rename( const OUString& newName )
disposeNoThrow( statement );
schema = newSchemaName;
}
- catch( com::sun::star::sdbc::SQLException &e )
+ catch( css::sdbc::SQLException &e )
{
OUString buf( e.Message + "(NOTE: Only postgresql server >= V8.1 support changing a table's schema)" );
e.Message = buf;
@@ -231,8 +231,8 @@ void Table::alterColumnByName(
const Reference< XPropertySet >& descriptor )
throw (SQLException,NoSuchElementException,RuntimeException, std::exception)
{
- Reference< com::sun::star::container::XNameAccess > columns =
- Reference< com::sun::star::container::XNameAccess > ( getColumns(), UNO_QUERY );
+ Reference< css::container::XNameAccess > columns =
+ Reference< css::container::XNameAccess > ( getColumns(), UNO_QUERY );
OUString newName = extractStringProperty(descriptor, getStatics().NAME );
::pq_sdbc_driver::alterColumnByDescriptor(
@@ -240,7 +240,7 @@ void Table::alterColumnByName(
extractStringProperty( this, getStatics().NAME ),
m_pSettings,
m_conn->createStatement(),
- Reference< com::sun::star::beans::XPropertySet>( columns->getByName( colName ), UNO_QUERY) ,
+ Reference< css::beans::XPropertySet>( columns->getByName( colName ), UNO_QUERY) ,
descriptor );
if( colName != newName )
@@ -252,12 +252,12 @@ void Table::alterColumnByName(
void Table::alterColumnByIndex(
sal_Int32 index,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor )
+ const css::uno::Reference< css::beans::XPropertySet >& descriptor )
throw (SQLException,IndexOutOfBoundsException,RuntimeException, std::exception)
{
- Reference< com::sun::star::container::XIndexAccess > columns =
- Reference< com::sun::star::container::XIndexAccess>( getColumns(), UNO_QUERY );
- Reference< com::sun::star::beans::XPropertySet> column(columns->getByIndex( index ), UNO_QUERY );
+ Reference< css::container::XIndexAccess > columns =
+ Reference< css::container::XIndexAccess>( getColumns(), UNO_QUERY );
+ Reference< css::beans::XPropertySet> column(columns->getByIndex( index ), UNO_QUERY );
::pq_sdbc_driver::alterColumnByDescriptor(
extractStringProperty( this, getStatics().SCHEMA_NAME ),
extractStringProperty( this, getStatics().NAME ),
@@ -277,11 +277,11 @@ Sequence<Type > Table::getTypes() throw( RuntimeException, std::exception )
if( !pCollection )
{
static cppu::OTypeCollection collection(
- cppu::UnoType<com::sun::star::sdbcx::XIndexesSupplier>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XKeysSupplier>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XColumnsSupplier>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XRename>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XAlterTable>::get(),
+ cppu::UnoType<css::sdbcx::XIndexesSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XKeysSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XColumnsSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XRename>::get(),
+ cppu::UnoType<css::sdbcx::XAlterTable>::get(),
ReflectionBase::getTypes());
pCollection = &collection;
}
@@ -302,23 +302,23 @@ Any Table::queryInterface( const Type & reqType ) throw (RuntimeException, std::
if( ! ret.hasValue() )
ret = ::cppu::queryInterface(
reqType,
- static_cast< com::sun::star::sdbcx::XIndexesSupplier * > ( this ),
- static_cast< com::sun::star::sdbcx::XKeysSupplier * > ( this ),
- static_cast< com::sun::star::sdbcx::XColumnsSupplier * > ( this ),
- static_cast< com::sun::star::sdbcx::XRename * > ( this ),
- static_cast< com::sun::star::sdbcx::XAlterTable * > ( this )
+ static_cast< css::sdbcx::XIndexesSupplier * > ( this ),
+ static_cast< css::sdbcx::XKeysSupplier * > ( this ),
+ static_cast< css::sdbcx::XColumnsSupplier * > ( this ),
+ static_cast< css::sdbcx::XRename * > ( this ),
+ static_cast< css::sdbcx::XAlterTable * > ( this )
);
return ret;
}
-::com::sun::star::uno::Any Table::getPropertyValue(const OUString& aPropertyName)
- throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
+css::uno::Any Table::getPropertyValue(const OUString& aPropertyName)
+ throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
{
return ReflectionBase::getPropertyValue( aPropertyName );
}
-OUString Table::getName( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+OUString Table::getName( ) throw (css::uno::RuntimeException, std::exception)
{
Statics & st = getStatics();
return concatQualified(
@@ -326,7 +326,7 @@ OUString Table::getName( ) throw (::com::sun::star::uno::RuntimeException, std:
extractStringProperty( this, st.NAME ) );
}
-void Table::setName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+void Table::setName( const OUString& aName ) throw (css::uno::RuntimeException, std::exception)
{
rename( aName );
}
@@ -334,7 +334,7 @@ void Table::setName( const OUString& aName ) throw (::com::sun::star::uno::Runti
TableDescriptor::TableDescriptor(
const ::rtl::Reference< RefCountedMutex > & refMutex,
- const Reference< com::sun::star::sdbc::XConnection > & connection,
+ const Reference< css::sdbc::XConnection > & connection,
ConnectionSettings *pSettings)
: ReflectionBase(
getStatics().refl.tableDescriptor.implName,
@@ -346,7 +346,7 @@ TableDescriptor::TableDescriptor(
{
}
-Reference< XNameAccess > TableDescriptor::getColumns( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XNameAccess > TableDescriptor::getColumns( ) throw (css::uno::RuntimeException, std::exception)
{
if( ! m_columns.is() )
{
@@ -355,7 +355,7 @@ Reference< XNameAccess > TableDescriptor::getColumns( ) throw (::com::sun::star
return m_columns;
}
-Reference< XNameAccess > TableDescriptor::getIndexes() throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XNameAccess > TableDescriptor::getIndexes() throw (css::uno::RuntimeException, std::exception)
{
if( ! m_indexes.is() )
{
@@ -367,7 +367,7 @@ Reference< XNameAccess > TableDescriptor::getIndexes() throw (::com::sun::star::
return m_indexes;
}
-Reference< XIndexAccess > TableDescriptor::getKeys( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
+Reference< XIndexAccess > TableDescriptor::getKeys( ) throw (css::uno::RuntimeException, std::exception)
{
if( ! m_keys.is() )
{
@@ -389,9 +389,9 @@ Sequence<Type > TableDescriptor::getTypes() throw( RuntimeException, std::except
if( !pCollection )
{
static cppu::OTypeCollection collection(
- cppu::UnoType<com::sun::star::sdbcx::XIndexesSupplier>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XKeysSupplier>::get(),
- cppu::UnoType<com::sun::star::sdbcx::XColumnsSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XIndexesSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XKeysSupplier>::get(),
+ cppu::UnoType<css::sdbcx::XColumnsSupplier>::get(),
ReflectionBase::getTypes());
pCollection = &collection;
}
@@ -412,9 +412,9 @@ Any TableDescriptor::queryInterface( const Type & reqType ) throw (RuntimeExcept
if( ! ret.hasValue() )
ret = ::cppu::queryInterface(
reqType,
- static_cast< com::sun::star::sdbcx::XIndexesSupplier * > ( this ),
- static_cast< com::sun::star::sdbcx::XKeysSupplier * > ( this ),
- static_cast< com::sun::star::sdbcx::XColumnsSupplier * > ( this ));
+ static_cast< css::sdbcx::XIndexesSupplier * > ( this ),
+ static_cast< css::sdbcx::XKeysSupplier * > ( this ),
+ static_cast< css::sdbcx::XColumnsSupplier * > ( this ));
return ret;
}