summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xkeys.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-27 12:31:29 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-30 08:37:11 +0000
commita52231c78526e14977d2129fa1abe812de567f03 (patch)
tree8d38fd537ebb43a72b41f4b838bc0effb9d05769 /connectivity/source/drivers/postgresql/pq_xkeys.cxx
parenta499d1b980be1eb2bd6ccfa07b1d87c02fcb1343 (diff)
com::sun::star->css in connectivity
Change-Id: I9489e92dc89a6d83a26ff4f0d9aad26acd28ad9f Reviewed-on: https://gerrit.libreoffice.org/25537 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xkeys.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkeys.cxx64
1 files changed, 32 insertions, 32 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
index 7929accb60ae..7d5979eb75a7 100644
--- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
@@ -50,7 +50,7 @@
using osl::MutexGuard;
-using com::sun::star::beans::XPropertySet;
+using css::beans::XPropertySet;
using com::sun::star::uno::makeAny;
using com::sun::star::uno::UNO_QUERY;
@@ -69,7 +69,7 @@ namespace pq_sdbc_driver
Keys::Keys(
const ::rtl::Reference< RefCountedMutex > & refMutex,
- const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
+ const css::uno::Reference< css::sdbc::XConnection > & origin,
ConnectionSettings *pSettings,
const OUString &schemaName,
const OUString &tableName)
@@ -83,30 +83,30 @@ Keys::~Keys()
static sal_Int32 string2keytype( const OUString &type )
{
- sal_Int32 ret = com::sun::star::sdbcx::KeyType::UNIQUE;
+ sal_Int32 ret = css::sdbcx::KeyType::UNIQUE;
if ( type == "p" )
- ret = com::sun::star::sdbcx::KeyType::PRIMARY;
+ ret = css::sdbcx::KeyType::PRIMARY;
else if ( type == "f" )
- ret = com::sun::star::sdbcx::KeyType::FOREIGN;
+ ret = css::sdbcx::KeyType::FOREIGN;
return ret;
}
static sal_Int32 string2keyrule( const OUString & rule )
{
- sal_Int32 ret = com::sun::star::sdbc::KeyRule::NO_ACTION;
+ sal_Int32 ret = css::sdbc::KeyRule::NO_ACTION;
if( rule == "r" )
- ret = com::sun::star::sdbc::KeyRule::RESTRICT;
+ ret = css::sdbc::KeyRule::RESTRICT;
else if( rule == "c" )
- ret = com::sun::star::sdbc::KeyRule::CASCADE;
+ ret = css::sdbc::KeyRule::CASCADE;
else if( rule == "n" )
- ret = com::sun::star::sdbc::KeyRule::SET_NULL;
+ ret = css::sdbc::KeyRule::SET_NULL;
else if( rule == "d" )
- ret = com::sun::star::sdbc::KeyRule::SET_DEFAULT;
+ ret = css::sdbc::KeyRule::SET_DEFAULT;
return ret;
}
void Keys::refresh()
- throw (::com::sun::star::uno::RuntimeException, std::exception)
+ throw (css::uno::RuntimeException, std::exception)
{
try
{
@@ -153,7 +153,7 @@ void Keys::refresh()
{
Key * pKey =
new Key( m_refMutex, m_origin, m_pSettings , m_schemaName, m_tableName );
- Reference< com::sun::star::beans::XPropertySet > prop = pKey;
+ Reference< css::beans::XPropertySet > prop = pKey;
pKey->setPropertyValue_NoBroadcast_public(
st.NAME, makeAny( xRow->getString( 1 ) ) );
@@ -170,7 +170,7 @@ void Keys::refresh()
mainMap,
string2intarray( xRow->getString( 7 ) ) ) ) );
- if( com::sun::star::sdbcx::KeyType::FOREIGN == keyType )
+ if( css::sdbcx::KeyType::FOREIGN == keyType )
{
OUStringBuffer buf( 128 );
buf.append( xRow->getString( 6 ) + "." + xRow->getString( 5 ) );
@@ -196,7 +196,7 @@ void Keys::refresh()
}
m_name2index.swap( map );
}
- catch ( com::sun::star::sdbc::SQLException & e )
+ catch ( css::sdbc::SQLException & e )
{
throw RuntimeException( e.Message , e.Context );
}
@@ -206,10 +206,10 @@ void Keys::refresh()
void Keys::appendByDescriptor(
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor )
- throw (::com::sun::star::sdbc::SQLException,
- ::com::sun::star::container::ElementExistException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ const css::uno::Reference< css::beans::XPropertySet >& descriptor )
+ throw (css::sdbc::SQLException,
+ css::container::ElementExistException,
+ css::uno::RuntimeException, std::exception)
{
osl::MutexGuard guard( m_refMutex->mutex );
@@ -226,9 +226,9 @@ void Keys::appendByDescriptor(
void Keys::dropByIndex( sal_Int32 index )
- throw (::com::sun::star::sdbc::SQLException,
- ::com::sun::star::lang::IndexOutOfBoundsException,
- ::com::sun::star::uno::RuntimeException, std::exception)
+ throw (css::sdbc::SQLException,
+ css::lang::IndexOutOfBoundsException,
+ css::uno::RuntimeException, std::exception)
{
osl::MutexGuard guard( m_refMutex->mutex );
if( index < 0 || index >= (sal_Int32)m_values.size() )
@@ -236,7 +236,7 @@ void Keys::dropByIndex( sal_Int32 index )
OUStringBuffer buf( 128 );
buf.append( "TABLES: Index out of range (allowed 0 to " + OUString::number(m_values.size() -1) +
", got " + OUString::number( index ) + ")" );
- throw com::sun::star::lang::IndexOutOfBoundsException(
+ throw css::lang::IndexOutOfBoundsException(
buf.makeStringAndClear(), *this );
}
@@ -256,21 +256,21 @@ void Keys::dropByIndex( sal_Int32 index )
}
-::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > Keys::createDataDescriptor()
- throw (::com::sun::star::uno::RuntimeException, std::exception)
+css::uno::Reference< css::beans::XPropertySet > Keys::createDataDescriptor()
+ throw (css::uno::RuntimeException, std::exception)
{
return new KeyDescriptor( m_refMutex, m_origin, m_pSettings );
}
-Reference< com::sun::star::container::XIndexAccess > Keys::create(
+Reference< css::container::XIndexAccess > Keys::create(
const ::rtl::Reference< RefCountedMutex > & refMutex,
- const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
+ const css::uno::Reference< css::sdbc::XConnection > & origin,
ConnectionSettings *pSettings,
const OUString & schemaName,
const OUString & tableName)
{
Keys *pKeys = new Keys( refMutex, origin, pSettings, schemaName, tableName );
- Reference< com::sun::star::container::XIndexAccess > ret = pKeys;
+ Reference< css::container::XIndexAccess > ret = pKeys;
pKeys->refresh();
return ret;
@@ -278,21 +278,21 @@ Reference< com::sun::star::container::XIndexAccess > Keys::create(
KeyDescriptors::KeyDescriptors(
const ::rtl::Reference< RefCountedMutex > & refMutex,
- const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
+ const css::uno::Reference< css::sdbc::XConnection > & origin,
ConnectionSettings *pSettings)
: Container( refMutex, origin, pSettings, getStatics().KEY )
{}
-Reference< com::sun::star::container::XIndexAccess > KeyDescriptors::create(
+Reference< css::container::XIndexAccess > KeyDescriptors::create(
const ::rtl::Reference< RefCountedMutex > & refMutex,
- const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
+ const css::uno::Reference< css::sdbc::XConnection > & origin,
ConnectionSettings *pSettings)
{
return new KeyDescriptors( refMutex, origin, pSettings );
}
-::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > KeyDescriptors::createDataDescriptor()
- throw (::com::sun::star::uno::RuntimeException, std::exception)
+css::uno::Reference< css::beans::XPropertySet > KeyDescriptors::createDataDescriptor()
+ throw (css::uno::RuntimeException, std::exception)
{
return new KeyDescriptor( m_refMutex, m_origin, m_pSettings );
}