diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-19 11:43:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-19 14:28:13 +0100 |
commit | d5c86be04ee4ab4dba14bc70adc91bf5888dc31c (patch) | |
tree | dfdcb1010028531fa8f95e9f5f4bca2d3d085ded /mysqlc | |
parent | f9d3e0f57c173494d250aadd0022abb738634f43 (diff) |
No need for RTL_USING in addition to LIBO_INTERNAL_ONLY
Change-Id: Iaa65658aed6bb4abb20a4d95dc9c6caf7c1c764b
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_connection.cxx | 80 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_connection.hxx | 38 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.cxx | 208 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.hxx | 74 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_driver.cxx | 50 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_driver.hxx | 16 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_general.cxx | 20 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_general.hxx | 6 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.cxx | 26 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.hxx | 16 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_propertyids.cxx | 6 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_propertyids.hxx | 6 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_resultset.cxx | 36 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_resultset.hxx | 12 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_resultsetmetadata.cxx | 32 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_resultsetmetadata.hxx | 18 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_services.cxx | 12 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_statement.cxx | 32 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_statement.hxx | 16 |
19 files changed, 352 insertions, 352 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 00de2bd1ea3b..bf134e50aaf7 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -90,7 +90,7 @@ void SAL_CALL OConnection::release() relase_ChildImpl(); } -void OConnection::construct(const OUString& url, const Sequence< PropertyValue >& info) +void OConnection::construct(const rtl::OUString& url, const Sequence< PropertyValue >& info) throw(SQLException) { OSL_TRACE("OConnection::construct"); @@ -98,10 +98,10 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > sal_Int32 nIndex; bool bEmbedded = false; - OUString token; - OUString aHostName("localhost"); + rtl::OUString token; + rtl::OUString aHostName("localhost"); sal_Int32 nPort = 3306; - OUString aDbName; + rtl::OUString aDbName; m_settings.encoding = m_rDriver.getDefaultEncoding(); m_settings.quoteIdentifier.clear(); @@ -120,7 +120,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > token = url.getToken(0, '/', nIndex); if (!token.isEmpty()) { sal_Int32 nIndex1 = 0; - OUString hostandport = token.getToken(0,':', nIndex1); + rtl::OUString hostandport = token.getToken(0,':', nIndex1); if (!hostandport.isEmpty()) { aHostName = hostandport; hostandport = token.getToken(0, ':', nIndex1); @@ -137,7 +137,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > // get user and password for mysql connection const PropertyValue *pIter = info.getConstArray(); const PropertyValue *pEnd = pIter + info.getLength(); - OUString aUser, aPass, sUnixSocket, sNamedPipe; + rtl::OUString aUser, aPass, sUnixSocket, sNamedPipe; bool unixSocketPassed = false; bool namedPipePassed = false; @@ -163,20 +163,20 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > if (!bEmbedded) { try { sql::ConnectOptionsMap connProps; - std::string host_str = OUStringToOString(aHostName, m_settings.encoding).getStr(); - std::string user_str = OUStringToOString(aUser, m_settings.encoding).getStr(); - std::string pass_str = OUStringToOString(aPass, m_settings.encoding).getStr(); - std::string schema_str = OUStringToOString(aDbName, m_settings.encoding).getStr(); + std::string host_str = rtl::OUStringToOString(aHostName, m_settings.encoding).getStr(); + std::string user_str = rtl::OUStringToOString(aUser, m_settings.encoding).getStr(); + std::string pass_str = rtl::OUStringToOString(aPass, m_settings.encoding).getStr(); + std::string schema_str = rtl::OUStringToOString(aDbName, m_settings.encoding).getStr(); connProps["hostName"] = sql::ConnectPropertyVal(host_str); connProps["userName"] = sql::ConnectPropertyVal(user_str); connProps["password"] = sql::ConnectPropertyVal(pass_str); connProps["schema"] = sql::ConnectPropertyVal(schema_str); connProps["port"] = sql::ConnectPropertyVal((int)(nPort)); if (unixSocketPassed) { - sql::SQLString socket_str = OUStringToOString(sUnixSocket, m_settings.encoding).getStr(); + sql::SQLString socket_str = rtl::OUStringToOString(sUnixSocket, m_settings.encoding).getStr(); connProps["socket"] = socket_str; } else if (namedPipePassed) { - sql::SQLString pipe_str = OUStringToOString(sNamedPipe, m_settings.encoding).getStr(); + sql::SQLString pipe_str = rtl::OUStringToOString(sNamedPipe, m_settings.encoding).getStr(); connProps["socket"] = pipe_str; } @@ -195,14 +195,14 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > } m_settings.schema = aDbName; - OSL_TRACE("%s", OUStringToOString(m_settings.schema, getConnectionEncoding()).getStr()); + OSL_TRACE("%s", rtl::OUStringToOString(m_settings.schema, getConnectionEncoding()).getStr()); // Check if the server is 4.1 or above if (this->getMysqlVersion() < 40100) { throw SQLException( "MariaDB LibreOffice Connector requires MySQL Server 4.1 or above", *this, - OUString(), + rtl::OUString(), 0, Any()); } @@ -211,20 +211,20 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > stmt->executeUpdate("SET NAMES utf8"); } -OUString OConnection::getImplementationName() throw (css::uno::RuntimeException, std::exception) +rtl::OUString OConnection::getImplementationName() throw (css::uno::RuntimeException, std::exception) { - return OUString("com.sun.star.sdbc.drivers.mysqlc.OConnection"); + return rtl::OUString("com.sun.star.sdbc.drivers.mysqlc.OConnection"); } -css::uno::Sequence<OUString> OConnection::getSupportedServiceNames() +css::uno::Sequence<rtl::OUString> OConnection::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence<OUString> s(1); + css::uno::Sequence<rtl::OUString> s(1); s[0] = "com.sun.star.sdbc.Connection"; return s; } -sal_Bool OConnection::supportsService(OUString const & ServiceName) +sal_Bool OConnection::supportsService(rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); @@ -250,20 +250,20 @@ Reference< XStatement > SAL_CALL OConnection::createStatement() return xReturn; } -Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const OUString& _sSql) +Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const rtl::OUString& _sSql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::prepareStatement"); MutexGuard aGuard(m_aMutex); checkDisposed(OConnection_BASE::rBHelper.bDisposed); - const OUString sSqlStatement = transFormPreparedStatement( _sSql ); + const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql ); Reference< XPreparedStatement > xStatement; try { // create a statement // the statement can only be executed more than once xStatement = new OPreparedStatement(this, - m_settings.cppConnection->prepareStatement(OUStringToOString(sSqlStatement, getConnectionEncoding()).getStr())); + m_settings.cppConnection->prepareStatement(rtl::OUStringToOString(sSqlStatement, getConnectionEncoding()).getStr())); m_aStatements.push_back( WeakReferenceHelper( xStatement ) ); } catch (const sql::SQLException & e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); @@ -271,7 +271,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const OUS return xStatement; } -Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const OUString& /*_sSql*/ ) +Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const rtl::OUString& /*_sSql*/ ) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::prepareCall"); @@ -282,14 +282,14 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const OUString return Reference< XPreparedStatement >(); } -OUString SAL_CALL OConnection::nativeSQL(const OUString& _sSql) +rtl::OUString SAL_CALL OConnection::nativeSQL(const rtl::OUString& _sSql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::nativeSQL"); MutexGuard aGuard(m_aMutex); - const OUString sSqlStatement = transFormPreparedStatement( _sSql ); - OUString sNativeSQL; + const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql ); + rtl::OUString sNativeSQL; try { sNativeSQL = mysqlc_sdbc_driver::convert(m_settings.cppConnection->nativeSQL(mysqlc_sdbc_driver::convert(sSqlStatement, getConnectionEncoding())), getConnectionEncoding()); @@ -408,7 +408,7 @@ sal_Bool SAL_CALL OConnection::isReadOnly() return (m_settings.readOnly); } -void SAL_CALL OConnection::setCatalog(const OUString& catalog) +void SAL_CALL OConnection::setCatalog(const rtl::OUString& catalog) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::setCatalog"); @@ -416,21 +416,21 @@ void SAL_CALL OConnection::setCatalog(const OUString& catalog) checkDisposed(OConnection_BASE::rBHelper.bDisposed); try { -// m_settings.cppConnection->setCatalog(OUStringToOString(catalog, m_settings.encoding).getStr()); - m_settings.cppConnection->setSchema(OUStringToOString(catalog, getConnectionEncoding()).getStr()); +// m_settings.cppConnection->setCatalog(rtl::OUStringToOString(catalog, m_settings.encoding).getStr()); + m_settings.cppConnection->setSchema(rtl::OUStringToOString(catalog, getConnectionEncoding()).getStr()); } catch (sql::SQLException & e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -OUString SAL_CALL OConnection::getCatalog() +rtl::OUString SAL_CALL OConnection::getCatalog() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::getCatalog"); MutexGuard aGuard(m_aMutex); checkDisposed(OConnection_BASE::rBHelper.bDisposed); - OUString catalog; + rtl::OUString catalog; try { catalog = mysqlc_sdbc_driver::convert(m_settings.cppConnection->getSchema(), getConnectionEncoding()); } catch (const sql::SQLException & e) { @@ -583,15 +583,15 @@ void OConnection::disposing() /* ToDo - upcast the connection to MySQL_Connection and use ::getSessionVariable() */ -OUString OConnection::getMysqlVariable(const char *varname) +rtl::OUString OConnection::getMysqlVariable(const char *varname) throw(SQLException, RuntimeException) { OSL_TRACE("OConnection::getMysqlVariable"); MutexGuard aGuard(m_aMutex); checkDisposed(OConnection_BASE::rBHelper.bDisposed); - OUString ret; - OUStringBuffer aStatement; + rtl::OUString ret; + rtl::OUStringBuffer aStatement; aStatement.appendAscii( "SHOW SESSION VARIABLES LIKE '" ); aStatement.appendAscii( varname ); aStatement.append( '\'' ); @@ -629,12 +629,12 @@ sal_Int32 OConnection::getMysqlVersion() } // TODO: Not used -//sal_Int32 OConnection::sdbcColumnType(OUString typeName) +//sal_Int32 OConnection::sdbcColumnType(rtl::OUString typeName) //{ // OSL_TRACE("OConnection::sdbcColumnType"); // int i = 0; // while (mysqlc_types[i].typeName) { -// if (OUString::createFromAscii(mysqlc_types[i].typeName).equals( +// if (rtl::OUString::createFromAscii(mysqlc_types[i].typeName).equals( // typeName.toAsciiUpperCase())) // { // return mysqlc_types[i].dataType; @@ -644,16 +644,16 @@ sal_Int32 OConnection::getMysqlVersion() // return 0; //} -OUString OConnection::transFormPreparedStatement(const OUString& _sSQL) +rtl::OUString OConnection::transFormPreparedStatement(const rtl::OUString& _sSQL) { - OUString sSqlStatement = _sSQL; + rtl::OUString sSqlStatement = _sSQL; if ( !m_xParameterSubstitution.is() ) { try { Sequence< Any > aArgs(1); Reference< XConnection> xCon = this; - aArgs[0] <<= NamedValue(OUString("ActiveConnection"), makeAny(xCon)); + aArgs[0] <<= NamedValue(rtl::OUString("ActiveConnection"), makeAny(xCon)); - m_xParameterSubstitution.set(m_rDriver.getFactory()->createInstanceWithArguments(OUString("org.openoffice.comp.helper.ParameterSubstitution"),aArgs),UNO_QUERY); + m_xParameterSubstitution.set(m_rDriver.getFactory()->createInstanceWithArguments(rtl::OUString("org.openoffice.comp.helper.ParameterSubstitution"),aArgs),UNO_QUERY); } catch(const Exception&) {} } if ( m_xParameterSubstitution.is() ) { diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx index 5a20051984c3..8d4c0b625655 100644 --- a/mysqlc/source/mysqlc_connection.hxx +++ b/mysqlc/source/mysqlc_connection.hxx @@ -74,9 +74,9 @@ namespace connectivity { rtl_TextEncoding encoding; std::unique_ptr<sql::Connection> cppConnection; - OUString schema; - OUString quoteIdentifier; - OUString connectionURL; + rtl::OUString schema; + rtl::OUString quoteIdentifier; + rtl::OUString connectionURL; bool readOnly; }; @@ -110,8 +110,8 @@ namespace connectivity // for this Connection SQLWarning m_aLastWarning; // Last SQLWarning generated by an operation - OUString m_aURL; // URL of connection - OUString m_sUser; // the user name + rtl::OUString m_aURL; // URL of connection + rtl::OUString m_sUser; // the user name MysqlCDriver& m_rDriver; // Pointer to the owning driver object sql::Driver* cppDriver; @@ -122,13 +122,13 @@ namespace connectivity void buildTypeInfo() throw(SQLException); public: - OUString getMysqlVariable(const char *varname) + rtl::OUString getMysqlVariable(const char *varname) throw(SQLException, RuntimeException); sal_Int32 getMysqlVersion() throw(SQLException, RuntimeException); - virtual void construct(const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) + virtual void construct(const rtl::OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(SQLException); OConnection(MysqlCDriver& _rDriver, sql::Driver * cppDriver); @@ -147,14 +147,14 @@ namespace connectivity virtual void SAL_CALL release() throw() SAL_OVERRIDE; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() + virtual rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( - OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) + rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Sequence<OUString> SAL_CALL + virtual css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -162,13 +162,13 @@ namespace connectivity my_XStatementRef SAL_CALL createStatement() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - my_XPreparedStatementRef SAL_CALL prepareStatement(const OUString& sql) + my_XPreparedStatementRef SAL_CALL prepareStatement(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - my_XPreparedStatementRef SAL_CALL prepareCall(const OUString& sql) + my_XPreparedStatementRef SAL_CALL prepareCall(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL nativeSQL(const OUString& sql) + rtl::OUString SAL_CALL nativeSQL(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL setAutoCommit(sal_Bool autoCommit) @@ -195,10 +195,10 @@ namespace connectivity sal_Bool SAL_CALL isReadOnly() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - void SAL_CALL setCatalog(const OUString& catalog) + void SAL_CALL setCatalog(const rtl::OUString& catalog) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getCatalog() + rtl::OUString SAL_CALL getCatalog() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL setTransactionIsolation(sal_Int32 level) @@ -222,19 +222,19 @@ namespace connectivity throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // TODO: Not used - //sal_Int32 sdbcColumnType(OUString typeName); + //sal_Int32 sdbcColumnType(rtl::OUString typeName); inline const ConnectionSettings& getConnectionSettings() const { return m_settings; } - OUString transFormPreparedStatement(const OUString& _sSQL); + rtl::OUString transFormPreparedStatement(const rtl::OUString& _sSQL); // should we use the catalog on filebased databases inline bool isCatalogUsed() const { return m_bUseCatalog; } - inline OUString getUserName() const { return m_sUser; } + inline rtl::OUString getUserName() const { return m_sUser; } inline const MysqlCDriver& getDriver() const { return m_rDriver;} inline rtl_TextEncoding getTextEncoding() const { return m_settings.encoding; } }; /* OConnection */ // TODO: Not used. - //inline OUString getPattern(OUString p) { return (p.getLength()) ? p : ASC2OU("%"); } + //inline rtl::OUString getPattern(rtl::OUString p) { return (p.getLength()) ? p : ASC2OU("%"); } } /* mysqlc */ } /* connectivity */ #endif // INCLUDED_MYSQLC_SOURCE_MYSQLC_CONNECTION_HXX diff --git a/mysqlc/source/mysqlc_databasemetadata.cxx b/mysqlc/source/mysqlc_databasemetadata.cxx index 5fc49b028d9e..9aa9d9323ec8 100644 --- a/mysqlc/source/mysqlc_databasemetadata.cxx +++ b/mysqlc/source/mysqlc_databasemetadata.cxx @@ -97,10 +97,10 @@ ODatabaseMetaData::~ODatabaseMetaData() OSL_TRACE("ODatabaseMetaData::~ODatabaseMetaData"); } -OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const std::string& (sql::DatabaseMetaData::*_Method)() ) +rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const std::string& (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); - OUString stringMetaData; + rtl::OUString stringMetaData; try { stringMetaData = mysqlc_sdbc_driver::convert((meta->*_Method)(), m_rConnection.getConnectionEncoding()); } catch (const sql::MethodNotImplementedException &) { @@ -113,10 +113,10 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, return stringMetaData; } -OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, std::string (sql::DatabaseMetaData::*_Method)() ) +rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, std::string (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); - OUString stringMetaData; + rtl::OUString stringMetaData; try { stringMetaData = mysqlc_sdbc_driver::convert((meta->*_Method)(), m_rConnection.getConnectionEncoding()); } catch (const sql::MethodNotImplementedException &) { @@ -129,10 +129,10 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, return stringMetaData; } -OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const sql::SQLString& (sql::DatabaseMetaData::*_Method)() ) +rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const sql::SQLString& (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); - OUString stringMetaData; + rtl::OUString stringMetaData; try { stringMetaData = mysqlc_sdbc_driver::convert((meta->*_Method)(), m_rConnection.getConnectionEncoding()); } catch (const sql::MethodNotImplementedException &) { @@ -145,10 +145,10 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, return stringMetaData; } -OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, sql::SQLString (sql::DatabaseMetaData::*_Method)() ) +rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, sql::SQLString (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); - OUString stringMetaData; + rtl::OUString stringMetaData; try { stringMetaData = mysqlc_sdbc_driver::convert((meta->*_Method)(), m_rConnection.getConnectionEncoding()); } catch (const sql::MethodNotImplementedException &) { @@ -220,7 +220,7 @@ bool ODatabaseMetaData::impl_getRSTypeMetaData(const sal_Char* _methodName, bool return impl_getBoolMetaData(_methodName, _Method, resultSetType); } -OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator() +rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getCatalogSeparator", &sql::DatabaseMetaData::getCatalogSeparator); @@ -364,13 +364,13 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns() return impl_getBoolMetaData("supportsNonNullableColumns", &sql::DatabaseMetaData::supportsNonNullableColumns); } -OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() +rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getCatalogTerm", &sql::DatabaseMetaData::getCatalogTerm); } -OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() +rtl::OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() throw(SQLException, RuntimeException, std::exception) { if (identifier_quote_string_set == false) { @@ -380,7 +380,7 @@ OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() return identifier_quote_string; } -OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters() +rtl::OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getExtraNameCharacters", &sql::DatabaseMetaData::getExtraNameCharacters); @@ -787,53 +787,53 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL() return impl_getBoolMetaData("supportsANSI92IntermediateSQL", &sql::DatabaseMetaData::supportsANSI92IntermediateSQL); } -OUString SAL_CALL ODatabaseMetaData::getURL() +rtl::OUString SAL_CALL ODatabaseMetaData::getURL() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getURL"); return m_rConnection.getConnectionSettings().connectionURL; } -OUString SAL_CALL ODatabaseMetaData::getUserName() +rtl::OUString SAL_CALL ODatabaseMetaData::getUserName() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getUserName", &sql::DatabaseMetaData::getUserName); } -OUString SAL_CALL ODatabaseMetaData::getDriverName() +rtl::OUString SAL_CALL ODatabaseMetaData::getDriverName() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getDriverName"); - OUString aValue( "MySQL Connector/OO.org" ); + rtl::OUString aValue( "MySQL Connector/OO.org" ); return aValue; } -OUString SAL_CALL ODatabaseMetaData::getDriverVersion() +rtl::OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getDriverVersion"); - return OUString( "0.9.2" ); + return rtl::OUString( "0.9.2" ); } -OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion() +rtl::OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getDatabaseProductVersion", &sql::DatabaseMetaData::getDatabaseProductVersion); } -OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName() +rtl::OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getDatabaseProductName", &sql::DatabaseMetaData::getDatabaseProductName); } -OUString SAL_CALL ODatabaseMetaData::getProcedureTerm() +rtl::OUString SAL_CALL ODatabaseMetaData::getProcedureTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getProcedureTerm", &sql::DatabaseMetaData::getProcedureTerm); } -OUString SAL_CALL ODatabaseMetaData::getSchemaTerm() +rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSchemaTerm", &sql::DatabaseMetaData::getSchemaTerm); @@ -874,37 +874,37 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion() return MARIADBC_VERSION_MINOR; } -OUString SAL_CALL ODatabaseMetaData::getSQLKeywords() +rtl::OUString SAL_CALL ODatabaseMetaData::getSQLKeywords() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSQLKeywords", &sql::DatabaseMetaData::getSQLKeywords); } -OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape() +rtl::OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSearchStringEscape", &sql::DatabaseMetaData::getSearchStringEscape); } -OUString SAL_CALL ODatabaseMetaData::getStringFunctions() +rtl::OUString SAL_CALL ODatabaseMetaData::getStringFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getStringFunctions", &sql::DatabaseMetaData::getStringFunctions); } -OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions() +rtl::OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getTimeDateFunctions", &sql::DatabaseMetaData::getTimeDateFunctions); } -OUString SAL_CALL ODatabaseMetaData::getSystemFunctions() +rtl::OUString SAL_CALL ODatabaseMetaData::getSystemFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSystemFunctions", &sql::DatabaseMetaData::getSystemFunctions); } -OUString SAL_CALL ODatabaseMetaData::getNumericFunctions() +rtl::OUString SAL_CALL ODatabaseMetaData::getNumericFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getNumericFunctions", &sql::DatabaseMetaData::getNumericFunctions); @@ -1199,19 +1199,19 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas() Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges( const Any& catalog, - const OUString& schema, - const OUString& table, - const OUString& columnNamePattern) + const rtl::OUString& schema, + const rtl::OUString& table, + const rtl::OUString& columnNamePattern) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getColumnPrivileges"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()), - cNamePattern(OUStringToOString(columnNamePattern, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()), + cNamePattern(rtl::OUStringToOString(columnNamePattern, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); boost::scoped_ptr< sql::ResultSet> rset( meta->getColumnPrivileges(cat, sch, tab, cNamePattern.compare("")? cNamePattern:wild)); @@ -1239,18 +1239,18 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns( const Any& catalog, - const OUString& schemaPattern, - const OUString& tableNamePattern, - const OUString& columnNamePattern) + const rtl::OUString& schemaPattern, + const rtl::OUString& tableNamePattern, + const rtl::OUString& columnNamePattern) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getColumns"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sPattern(OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), - tNamePattern(OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()), - cNamePattern(OUStringToOString(columnNamePattern, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sPattern(rtl::OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), + tNamePattern(rtl::OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()), + cNamePattern(rtl::OUStringToOString(columnNamePattern, m_rConnection.getConnectionEncoding()).getStr()); try { boost::scoped_ptr< sql::ResultSet> rset( meta->getColumns(cat, @@ -1285,9 +1285,9 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( const Any& catalog, - const OUString& schemaPattern, - const OUString& tableNamePattern, - const Sequence< OUString >& types ) + const rtl::OUString& schemaPattern, + const rtl::OUString& tableNamePattern, + const Sequence< rtl::OUString >& types ) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getTables"); @@ -1295,16 +1295,16 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( Reference< XResultSet > xResultSet(getOwnConnection(). getDriver().getFactory()->createInstance( - OUString("org.openoffice.comp.helper.DatabaseMetaDataResultSet")),UNO_QUERY); + rtl::OUString("org.openoffice.comp.helper.DatabaseMetaDataResultSet")),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sPattern(OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), - tNamePattern(OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sPattern(rtl::OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), + tNamePattern(rtl::OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()); std::list<sql::SQLString> tabTypes; - for (const OUString *pStart = types.getConstArray(), *p = pStart, *pEnd = pStart + nLength; p != pEnd; ++p) { - tabTypes.push_back(OUStringToOString(*p, m_rConnection.getConnectionEncoding()).getStr()); + for (const rtl::OUString *pStart = types.getConstArray(), *p = pStart, *pEnd = pStart + nLength; p != pEnd; ++p) { + tabTypes.push_back(rtl::OUStringToOString(*p, m_rConnection.getConnectionEncoding()).getStr()); } try { @@ -1344,9 +1344,9 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns( const Any& /* catalog */, - const OUString& /* schemaPattern */, - const OUString& /* procedureNamePattern */, - const OUString& /* columnNamePattern */) + const rtl::OUString& /* schemaPattern */, + const rtl::OUString& /* procedureNamePattern */, + const rtl::OUString& /* columnNamePattern */) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getProcedureColumns"); @@ -1356,17 +1356,17 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures( const Any& catalog, - const OUString& schemaPattern, - const OUString& procedureNamePattern) + const rtl::OUString& schemaPattern, + const rtl::OUString& procedureNamePattern) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getProcedures"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sPattern(OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), - pNamePattern(OUStringToOString(procedureNamePattern, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sPattern(rtl::OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), + pNamePattern(rtl::OUStringToOString(procedureNamePattern, m_rConnection.getConnectionEncoding()).getStr()); try { @@ -1398,8 +1398,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns( const Any& /* catalog */, - const OUString& /* schema */, - const OUString& /* table */) + const rtl::OUString& /* schema */, + const rtl::OUString& /* table */) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getVersionColumns"); @@ -1411,16 +1411,16 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys( const Any& catalog , - const OUString& schema , - const OUString& table ) + const rtl::OUString& schema , + const rtl::OUString& table ) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getExportedKeys"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1448,8 +1448,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( const Any& catalog, - const OUString& schema, - const OUString& table) + const rtl::OUString& schema, + const rtl::OUString& table) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getImportedKeys"); @@ -1457,9 +1457,9 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1487,17 +1487,17 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( const Any& catalog, - const OUString& schema, - const OUString& table) + const rtl::OUString& schema, + const rtl::OUString& table) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getPrimaryKeys"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1525,8 +1525,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( const Any& catalog, - const OUString& schema, - const OUString& table, + const rtl::OUString& schema, + const rtl::OUString& table, sal_Bool unique, sal_Bool approximate) throw(SQLException, RuntimeException, std::exception) @@ -1535,9 +1535,9 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1565,8 +1565,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( const Any& catalog, - const OUString& schema, - const OUString& table, + const rtl::OUString& schema, + const rtl::OUString& table, sal_Int32 scope, sal_Bool nullable) throw(SQLException, RuntimeException, std::exception) @@ -1575,9 +1575,9 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sch(OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), - tab(OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sch(rtl::OUStringToOString(schema, m_rConnection.getConnectionEncoding()).getStr()), + tab(rtl::OUStringToOString(table, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1605,17 +1605,17 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( const Any& catalog, - const OUString& schemaPattern, - const OUString& tableNamePattern) + const rtl::OUString& schemaPattern, + const rtl::OUString& tableNamePattern) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getTablePrivileges"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string cat(catalog.hasValue()? OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), - sPattern(OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), - tPattern(OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()); + std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), + sPattern(rtl::OUStringToOString(schemaPattern, m_rConnection.getConnectionEncoding()).getStr()), + tPattern(rtl::OUStringToOString(tableNamePattern, m_rConnection.getConnectionEncoding()).getStr()); try { static bool fakeTablePrivileges = false; @@ -1632,7 +1632,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( aRow.push_back(makeAny( tableNamePattern )); // TABLE_NAME aRow.push_back(Any()); // GRANTOR aRow.push_back(userName); // GRANTEE - aRow.push_back(makeAny( OUString::createFromAscii( allPrivileges[i] ) )); // PRIVILEGE + aRow.push_back(makeAny( rtl::OUString::createFromAscii( allPrivileges[i] ) )); // PRIVILEGE aRow.push_back(Any()); // IS_GRANTABLE rRows.push_back(aRow); @@ -1664,23 +1664,23 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference( const Any& primaryCatalog, - const OUString& primarySchema, - const OUString& primaryTable, + const rtl::OUString& primarySchema, + const rtl::OUString& primaryTable, const Any& foreignCatalog, - const OUString& foreignSchema, - const OUString& foreignTable) + const rtl::OUString& foreignSchema, + const rtl::OUString& foreignTable) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getCrossReference"); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); std::vector< std::vector< Any > > rRows; - std::string primaryCat(primaryCatalog.hasValue()? OUStringToOString(getStringFromAny(primaryCatalog), m_rConnection.getConnectionEncoding()).getStr():""), - foreignCat(foreignCatalog.hasValue()? OUStringToOString(getStringFromAny(foreignCatalog), m_rConnection.getConnectionEncoding()).getStr():""), - pSchema(OUStringToOString(primarySchema, m_rConnection.getConnectionEncoding()).getStr()), - pTable(OUStringToOString(primaryTable, m_rConnection.getConnectionEncoding()).getStr()), - fSchema(OUStringToOString(foreignSchema, m_rConnection.getConnectionEncoding()).getStr()), - fTable(OUStringToOString(foreignTable, m_rConnection.getConnectionEncoding()).getStr()); + std::string primaryCat(primaryCatalog.hasValue()? rtl::OUStringToOString(getStringFromAny(primaryCatalog), m_rConnection.getConnectionEncoding()).getStr():""), + foreignCat(foreignCatalog.hasValue()? rtl::OUStringToOString(getStringFromAny(foreignCatalog), m_rConnection.getConnectionEncoding()).getStr():""), + pSchema(rtl::OUStringToOString(primarySchema, m_rConnection.getConnectionEncoding()).getStr()), + pTable(rtl::OUStringToOString(primaryTable, m_rConnection.getConnectionEncoding()).getStr()), + fSchema(rtl::OUStringToOString(foreignSchema, m_rConnection.getConnectionEncoding()).getStr()), + fTable(rtl::OUStringToOString(foreignTable, m_rConnection.getConnectionEncoding()).getStr()); try { rtl_TextEncoding encoding = m_rConnection.getConnectionEncoding(); @@ -1708,8 +1708,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference( Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /* catalog */, - const OUString& /* schemaPattern */, - const OUString& /* typeNamePattern */, + const rtl::OUString& /* schemaPattern */, + const rtl::OUString& /* typeNamePattern */, const Sequence< sal_Int32 >& /* types */) throw(SQLException, RuntimeException, std::exception) { diff --git a/mysqlc/source/mysqlc_databasemetadata.hxx b/mysqlc/source/mysqlc_databasemetadata.hxx index 46dde6cc376a..4f4013d9ffb8 100644 --- a/mysqlc/source/mysqlc_databasemetadata.hxx +++ b/mysqlc/source/mysqlc_databasemetadata.hxx @@ -48,14 +48,14 @@ namespace connectivity bool m_bUseCatalog; protected: sql::DatabaseMetaData * meta; - OUString identifier_quote_string; + rtl::OUString identifier_quote_string; bool identifier_quote_string_set; private: - OUString impl_getStringMetaData( const sal_Char* _methodName, const std::string& (sql::DatabaseMetaData::*_Method)() ); - OUString impl_getStringMetaData( const sal_Char* _methodName, std::string (sql::DatabaseMetaData::*_Method)() ); - OUString impl_getStringMetaData( const sal_Char* _methodName, const sql::SQLString& (sql::DatabaseMetaData::*_Method)() ); - OUString impl_getStringMetaData( const sal_Char* _methodName, sql::SQLString (sql::DatabaseMetaData::*_Method)() ); + rtl::OUString impl_getStringMetaData( const sal_Char* _methodName, const std::string& (sql::DatabaseMetaData::*_Method)() ); + rtl::OUString impl_getStringMetaData( const sal_Char* _methodName, std::string (sql::DatabaseMetaData::*_Method)() ); + rtl::OUString impl_getStringMetaData( const sal_Char* _methodName, const sql::SQLString& (sql::DatabaseMetaData::*_Method)() ); + rtl::OUString impl_getStringMetaData( const sal_Char* _methodName, sql::SQLString (sql::DatabaseMetaData::*_Method)() ); sal_Int32 impl_getInt32MetaData( const sal_Char* _methodName, unsigned int (sql::DatabaseMetaData::*_Method)() ); bool impl_getBoolMetaData( const sal_Char* _methodName, bool (sql::DatabaseMetaData::*_Method)() ); bool impl_getBoolMetaData( const sal_Char* _methodName, bool (sql::DatabaseMetaData::*_Method)(int), sal_Int32 _arg ); @@ -71,17 +71,17 @@ namespace connectivity // XDatabaseMetaData sal_Bool SAL_CALL allProceduresAreCallable() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL allTablesAreSelectable() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getURL() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getUserName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getURL() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getUserName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isReadOnly() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL nullsAreSortedHigh() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL nullsAreSortedLow() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL nullsAreSortedAtStart() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL nullsAreSortedAtEnd() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getDatabaseProductName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getDatabaseProductVersion() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getDriverName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getDriverVersion() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getDatabaseProductName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getDatabaseProductVersion() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getDriverName() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getDriverVersion() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getDriverMajorVersion() throw(my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getDriverMinorVersion() throw(my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL usesLocalFiles() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; @@ -94,14 +94,14 @@ namespace connectivity sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL storesMixedCaseQuotedIdentifiers() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getIdentifierQuoteString() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getSQLKeywords() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getNumericFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getStringFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getSystemFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getTimeDateFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getSearchStringEscape() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getExtraNameCharacters() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getIdentifierQuoteString() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getSQLKeywords() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getNumericFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getStringFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getSystemFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getTimeDateFunctions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getSearchStringEscape() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getExtraNameCharacters() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsAlterTableWithAddColumn() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsAlterTableWithDropColumn() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsColumnAliasing() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; @@ -130,11 +130,11 @@ namespace connectivity sal_Bool SAL_CALL supportsOuterJoins() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsFullOuterJoins() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsLimitedOuterJoins() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getSchemaTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getProcedureTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getCatalogTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getSchemaTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getProcedureTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getCatalogTerm() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isCatalogAtStart() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getCatalogSeparator() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getCatalogSeparator() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsSchemasInDataManipulation() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsSchemasInProcedureCalls() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsSchemasInTableDefinitions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; @@ -190,23 +190,23 @@ namespace connectivity sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly()throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getProcedures(const Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getProcedureColumns(const Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern, const OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getTables(const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const ::com::sun::star::uno::Sequence< OUString >& types) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getProcedures(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& procedureNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getProcedureColumns(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& procedureNamePattern, const rtl::OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getTables(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& tableNamePattern, const ::com::sun::star::uno::Sequence< rtl::OUString >& types) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; my_XResultSetRef SAL_CALL getSchemas() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; my_XResultSetRef SAL_CALL getCatalogs() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; my_XResultSetRef SAL_CALL getTableTypes() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getColumns(const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getColumnPrivileges(const Any& catalog, const OUString& schema, const OUString& table, const OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getTablePrivileges(const Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getBestRowIdentifier(const Any& catalog, const OUString& schema, const OUString& table, sal_Int32 scope, sal_Bool nullable) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getVersionColumns(const Any& catalog, const OUString& schema, const OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getPrimaryKeys(const Any& catalog, const OUString& schema, const OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getImportedKeys(const Any& catalog, const OUString& schema, const OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getExportedKeys(const Any& catalog, const OUString& schema, const OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getCrossReference(const Any& primaryCatalog, const OUString& primarySchema, const OUString& primaryTable, const Any& foreignCatalog, const OUString& foreignSchema, const OUString& foreignTable) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getColumns(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& tableNamePattern, const rtl::OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getColumnPrivileges(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table, const rtl::OUString& columnNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getTablePrivileges(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& tableNamePattern) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getBestRowIdentifier(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table, sal_Int32 scope, sal_Bool nullable) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getVersionColumns(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getPrimaryKeys(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getImportedKeys(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getExportedKeys(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getCrossReference(const Any& primaryCatalog, const rtl::OUString& primarySchema, const rtl::OUString& primaryTable, const Any& foreignCatalog, const rtl::OUString& foreignSchema, const rtl::OUString& foreignTable) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; my_XResultSetRef SAL_CALL getTypeInfo() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getIndexInfo(const Any& catalog, const OUString& schema, const OUString& table, sal_Bool unique, sal_Bool approximate) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getIndexInfo(const Any& catalog, const rtl::OUString& schema, const rtl::OUString& table, sal_Bool unique, sal_Bool approximate) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsResultSetType(sal_Int32 setType) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsResultSetConcurrency(sal_Int32 setType, sal_Int32 concurrency) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL ownUpdatesAreVisible(sal_Int32 setType) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; @@ -219,7 +219,7 @@ namespace connectivity sal_Bool SAL_CALL deletesAreDetected(sal_Int32 setType) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL insertsAreDetected(sal_Int32 setType) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsBatchUpdates() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; - my_XResultSetRef SAL_CALL getUDTs(const Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const ::com::sun::star::uno::Sequence< sal_Int32 >& types) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; + my_XResultSetRef SAL_CALL getUDTs(const Any& catalog, const rtl::OUString& schemaPattern, const rtl::OUString& typeNamePattern, const ::com::sun::star::uno::Sequence< sal_Int32 >& types) throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection() throw(my_SQLException, my_RuntimeException, std::exception) SAL_OVERRIDE; }; } diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx index 5737bcef7783..b05983c30f93 100644 --- a/mysqlc/source/mysqlc_driver.cxx +++ b/mysqlc/source/mysqlc_driver.cxx @@ -72,38 +72,38 @@ void MysqlCDriver::disposing() } // static ServiceInfo -OUString MysqlCDriver::getImplementationName_Static() +rtl::OUString MysqlCDriver::getImplementationName_Static() throw(RuntimeException) { OSL_TRACE("MysqlCDriver::getImplementationName_Static"); - return OUString( "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver" ); + return rtl::OUString( "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver" ); } -Sequence< OUString > MysqlCDriver::getSupportedServiceNames_Static() +Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static() throw(RuntimeException) { OSL_TRACE("MysqlCDriver::getSupportedServiceNames_Static"); // which service is supported // for more information @see com.sun.star.sdbc.Driver - Sequence< OUString > aSNS(1); + Sequence< rtl::OUString > aSNS(1); aSNS[0] = "com.sun.star.sdbc.Driver"; return aSNS; } -OUString SAL_CALL MysqlCDriver::getImplementationName() +rtl::OUString SAL_CALL MysqlCDriver::getImplementationName() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getImplementationName"); return getImplementationName_Static(); } -sal_Bool SAL_CALL MysqlCDriver::supportsService(const OUString& _rServiceName) +sal_Bool SAL_CALL MysqlCDriver::supportsService(const rtl::OUString& _rServiceName) throw(RuntimeException, std::exception) { return cppu::supportsService(this, _rServiceName); } -Sequence< OUString > SAL_CALL MysqlCDriver::getSupportedServiceNames() +Sequence< rtl::OUString > SAL_CALL MysqlCDriver::getSupportedServiceNames() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getSupportedServiceNames"); @@ -120,7 +120,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw() #ifdef BUNDLE_MARIADB if ( !m_bAttemptedLoadCConn ) { - const OUString sModuleName(BUNDLE_MARIADB); + const rtl::OUString sModuleName(BUNDLE_MARIADB); m_hCConnModule = osl_loadModuleRelative( &thisModule, sModuleName.pData, 0 ); m_bAttemptedLoadCConn = true; } @@ -132,7 +132,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw() throw SQLException( "Unable to load the " BUNDLE_MARIADB " library.", *this, - OUString( "08001" ), // "unable to connect" + rtl::OUString( "08001" ), // "unable to connect" 0, Any() ); @@ -140,7 +140,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw() #endif if ( !m_bAttemptedLoadCppConn ) { - const OUString sModuleName(CPPCONN_LIB); + const rtl::OUString sModuleName(CPPCONN_LIB); m_hCppConnModule = osl_loadModuleRelative( &thisModule, sModuleName.pData, 0 ); m_bAttemptedLoadCppConn = true; } @@ -152,14 +152,14 @@ void MysqlCDriver::impl_initCppConn_lck_throw() throw SQLException( "Unable to load the " CPPCONN_LIB " library.", *this, - OUString( "08001" ), // "unable to connect" + rtl::OUString( "08001" ), // "unable to connect" 0, Any() ); } // find the factory symbol - const OUString sSymbolName = "sql_mysql_get_driver_instance"; + const rtl::OUString sSymbolName = "sql_mysql_get_driver_instance"; typedef void* (* FGetMySQLDriver)(); const FGetMySQLDriver pFactoryFunction = (FGetMySQLDriver)( osl_getFunctionSymbol( m_hCppConnModule, sSymbolName.pData ) ); @@ -169,7 +169,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw() throw SQLException( CPPCONN_LIB " is invalid: missing the driver factory function.", *this, - OUString( "08001" ), // "unable to connect" + rtl::OUString( "08001" ), // "unable to connect" 0, Any() ); @@ -182,14 +182,14 @@ void MysqlCDriver::impl_initCppConn_lck_throw() throw SQLException( "Unable to obtain the MySQL_Driver instance from Connector/C++.", *this, - OUString( "08001" ), // "unable to connect" + rtl::OUString( "08001" ), // "unable to connect" 0, Any() ); } } -Reference< XConnection > SAL_CALL MysqlCDriver::connect(const OUString& url, const Sequence< PropertyValue >& info) +Reference< XConnection > SAL_CALL MysqlCDriver::connect(const rtl::OUString& url, const Sequence< PropertyValue >& info) throw(SQLException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -222,14 +222,14 @@ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const OUString& url, con return xConn; } -sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const OUString& url) +sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const rtl::OUString& url) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::acceptsURL"); return url.startsWith("sdbc:mysqlc:"); } -Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const OUString& url, const Sequence< PropertyValue >& /* info */) +Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const rtl::OUString& url, const Sequence< PropertyValue >& /* info */) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getPropertyInfo"); @@ -237,18 +237,18 @@ Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const OUSt ::std::vector< DriverPropertyInfo > aDriverInfo; aDriverInfo.push_back(DriverPropertyInfo( - OUString("Hostname") - ,OUString("Name of host") + rtl::OUString("Hostname") + ,rtl::OUString("Name of host") ,sal_True - ,OUString("localhost") - ,Sequence< OUString >()) + ,rtl::OUString("localhost") + ,Sequence< rtl::OUString >()) ); aDriverInfo.push_back(DriverPropertyInfo( - OUString("Port") - ,OUString("Port") + rtl::OUString("Port") + ,rtl::OUString("Port") ,sal_True - ,OUString("3306") - ,Sequence< OUString >()) + ,rtl::OUString("3306") + ,Sequence< rtl::OUString >()) ); return Sequence< DriverPropertyInfo >(&(aDriverInfo[0]),aDriverInfo.size()); } diff --git a/mysqlc/source/mysqlc_driver.hxx b/mysqlc/source/mysqlc_driver.hxx index 8d2b95bae6ed..60bafc2387b4 100644 --- a/mysqlc/source/mysqlc_driver.hxx +++ b/mysqlc/source/mysqlc_driver.hxx @@ -81,20 +81,20 @@ namespace connectivity // OComponentHelper void SAL_CALL disposing(void) SAL_OVERRIDE; // XInterface - static OUString getImplementationName_Static() throw(RuntimeException); - static Sequence< OUString > getSupportedServiceNames_Static() throw(RuntimeException); + static rtl::OUString getImplementationName_Static() throw(RuntimeException); + static Sequence< rtl::OUString > getSupportedServiceNames_Static() throw(RuntimeException); // XServiceInfo - OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception) SAL_OVERRIDE; - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(RuntimeException, std::exception) SAL_OVERRIDE; - Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception) SAL_OVERRIDE; + sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw(RuntimeException, std::exception) SAL_OVERRIDE; + Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException, std::exception) SAL_OVERRIDE; // XDriver - Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connect(const OUString& url, const Sequence< ::com::sun::star::beans::PropertyValue >& info) + Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connect(const rtl::OUString& url, const Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Bool SAL_CALL acceptsURL(const OUString& url) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - Sequence< ::com::sun::star::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo(const OUString& url, const Sequence< ::com::sun::star::beans::PropertyValue >& info) + sal_Bool SAL_CALL acceptsURL(const rtl::OUString& url) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + Sequence< ::com::sun::star::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo(const rtl::OUString& url, const Sequence< ::com::sun::star::beans::PropertyValue >& info) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getMajorVersion() throw(RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/mysqlc/source/mysqlc_general.cxx b/mysqlc/source/mysqlc_general.cxx index 185087875fad..885bb021d485 100644 --- a/mysqlc/source/mysqlc_general.cxx +++ b/mysqlc/source/mysqlc_general.cxx @@ -35,11 +35,11 @@ namespace mysqlc_sdbc_driver void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext, const Any* _pNextException ) throw (SQLException) { - const OUString sMessage = OUString::createFromAscii( _pAsciiFeatureName ) + ": feature not implemented."; + const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": feature not implemented."; throw SQLException( sMessage, _rxContext, - OUString("HYC00"), + rtl::OUString("HYC00"), 0, _pNextException ? *_pNextException : Any() ); @@ -48,11 +48,11 @@ void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, co void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext, const Any* _pNextException ) throw (SQLException) { - const OUString sMessage = OUString::createFromAscii( _pAsciiFeatureName ) + ": invalid arguments."; + const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": invalid arguments."; throw SQLException( sMessage, _rxContext, - OUString("HYC00"), + rtl::OUString("HYC00"), 0, _pNextException ? *_pNextException : Any() ); @@ -69,9 +69,9 @@ void translateAndThrow(const ::sql::SQLException& _error, const ::com::sun::star ); } -OUString getStringFromAny(const Any& _rAny) +rtl::OUString getStringFromAny(const Any& _rAny) { - OUString nReturn; + rtl::OUString nReturn; OSL_VERIFY( _rAny >>= nReturn ); return nReturn; } @@ -147,14 +147,14 @@ int mysqlToOOOType(int cppConnType) return com::sun::star::sdbc::DataType::VARCHAR; } -OUString convert(const ::std::string& _string, const rtl_TextEncoding encoding) +rtl::OUString convert(const ::std::string& _string, const rtl_TextEncoding encoding) { - return OUString( _string.c_str(), _string.size(), encoding ); + return rtl::OUString( _string.c_str(), _string.size(), encoding ); } -::std::string convert(const OUString& _string, const rtl_TextEncoding encoding) +::std::string convert(const rtl::OUString& _string, const rtl_TextEncoding encoding) { - return ::std::string( OUStringToOString( _string, encoding ).getStr() ); + return ::std::string( rtl::OUStringToOString( _string, encoding ).getStr() ); } diff --git a/mysqlc/source/mysqlc_general.hxx b/mysqlc/source/mysqlc_general.hxx index acf17be78c01..d78f823c964a 100644 --- a/mysqlc/source/mysqlc_general.hxx +++ b/mysqlc/source/mysqlc_general.hxx @@ -29,7 +29,7 @@ namespace mysqlc_sdbc_driver { - OUString getStringFromAny(const ::com::sun::star::uno::Any& _rAny); + rtl::OUString getStringFromAny(const ::com::sun::star::uno::Any& _rAny); void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, @@ -50,9 +50,9 @@ namespace mysqlc_sdbc_driver int mysqlToOOOType(int mysqlType) throw (); - OUString convert(const ::std::string& _string, const rtl_TextEncoding encoding); + rtl::OUString convert(const ::std::string& _string, const rtl_TextEncoding encoding); - ::std::string convert(const OUString& _string, const rtl_TextEncoding encoding); + ::std::string convert(const rtl::OUString& _string, const rtl_TextEncoding encoding); } #endif diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx index 6806ac9d503b..144994848797 100644 --- a/mysqlc/source/mysqlc_preparedstatement.cxx +++ b/mysqlc/source/mysqlc_preparedstatement.cxx @@ -57,21 +57,21 @@ static inline char * my_i_to_a(char * buf, size_t buf_size, int a) return buf; } -OUString OPreparedStatement::getImplementationName() +rtl::OUString OPreparedStatement::getImplementationName() throw (css::uno::RuntimeException, std::exception) { - return OUString("com.sun.star.sdbcx.mysqlc.PreparedStatement"); + return rtl::OUString("com.sun.star.sdbcx.mysqlc.PreparedStatement"); } -css::uno::Sequence<OUString> OPreparedStatement::getSupportedServiceNames() +css::uno::Sequence<rtl::OUString> OPreparedStatement::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence<OUString> s(1); + css::uno::Sequence<rtl::OUString> s(1); s[0] = "com.sun.star.sdbc.PreparedStatement"; return s; } -sal_Bool OPreparedStatement::supportsService(OUString const & ServiceName) +sal_Bool OPreparedStatement::supportsService(rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); @@ -202,7 +202,7 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate() return affectedRows; } -void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const OUString& x) +void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const rtl::OUString& x) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OPreparedStatement::setString"); @@ -211,7 +211,7 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const OUString& checkParameterIndex(parameter); try { - std::string stringie(OUStringToOString(x, m_pConnection->getConnectionEncoding()).getStr()); + std::string stringie(rtl::OUStringToOString(x, m_pConnection->getConnectionEncoding()).getStr()); static_cast<sql::PreparedStatement *>(cppStatement)->setString(parameter, stringie); } catch (const sql::MethodNotImplementedException &) { mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearParameters", *this); @@ -230,19 +230,19 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection() return m_pConnection; } -Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery(const OUString& sql) +Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { return OCommonStatement::executeQuery( sql ); } -sal_Int32 SAL_CALL OPreparedStatement::executeUpdate(const OUString& sql) +sal_Int32 SAL_CALL OPreparedStatement::executeUpdate(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { return OCommonStatement::executeUpdate( sql ); } -sal_Bool SAL_CALL OPreparedStatement::execute( const OUString& sql ) +sal_Bool SAL_CALL OPreparedStatement::execute( const rtl::OUString& sql ) throw(SQLException, RuntimeException, std::exception) { return OCommonStatement::execute( sql ); @@ -674,7 +674,7 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c } } -void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /* sqlType */, const OUString& /* typeName */) +void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /* sqlType */, const rtl::OUString& /* typeName */) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OPreparedStatement::setObjectNull"); @@ -819,8 +819,8 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 column) { OSL_TRACE("OPreparedStatement::checkColumnIndex"); if (column < 1 || column > (sal_Int32) m_paramCount) { - OUString buf( "Parameter index out of range" ); - throw SQLException(buf, *this, OUString(), 1, Any ()); + rtl::OUString buf( "Parameter index out of range" ); + throw SQLException(buf, *this, rtl::OUString(), 1, Any ()); } } diff --git a/mysqlc/source/mysqlc_preparedstatement.hxx b/mysqlc/source/mysqlc_preparedstatement.hxx index 0e50dcd2168e..b037c1c4205e 100644 --- a/mysqlc/source/mysqlc_preparedstatement.hxx +++ b/mysqlc/source/mysqlc_preparedstatement.hxx @@ -62,14 +62,14 @@ namespace connectivity throw (::com::sun::star::uno::Exception, std::exception) SAL_OVERRIDE; virtual ~OPreparedStatement(); public: - virtual OUString SAL_CALL getImplementationName() + virtual rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( - OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) + rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Sequence<OUString> SAL_CALL + virtual css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -91,17 +91,17 @@ namespace connectivity Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // XStatement - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL executeQuery(const OUString& sql) + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL executeQuery(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Int32 SAL_CALL executeUpdate(const OUString& sql) + sal_Int32 SAL_CALL executeUpdate(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Bool SAL_CALL execute( const OUString& sql ) + sal_Bool SAL_CALL execute( const rtl::OUString& sql ) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // XParameters void SAL_CALL setNull(sal_Int32 parameter, sal_Int32 sqlType) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - void SAL_CALL setObjectNull(sal_Int32 parameter, sal_Int32 sqlType, const OUString& typeName) + void SAL_CALL setObjectNull(sal_Int32 parameter, sal_Int32 sqlType, const rtl::OUString& typeName) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL setBoolean(sal_Int32 parameter, sal_Bool x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; @@ -118,7 +118,7 @@ namespace connectivity void SAL_CALL setDouble(sal_Int32 parameter, double x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - void SAL_CALL setString(sal_Int32 parameter, const OUString& x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + void SAL_CALL setString(sal_Int32 parameter, const rtl::OUString& x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL setBytes(sal_Int32 parameter, const ::com::sun::star::uno::Sequence< sal_Int8 >& x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/mysqlc/source/mysqlc_propertyids.cxx b/mysqlc/source/mysqlc_propertyids.cxx index 4671ac4d8142..0e88419649a1 100644 --- a/mysqlc/source/mysqlc_propertyids.cxx +++ b/mysqlc/source/mysqlc_propertyids.cxx @@ -96,9 +96,9 @@ OPropertyMap::~OPropertyMap() } } -OUString OPropertyMap::getNameByIndex(sal_Int32 idx) const +rtl::OUString OPropertyMap::getNameByIndex(sal_Int32 idx) const { - OUString sRet; + rtl::OUString sRet; ::std::map<sal_Int32 , rtl_uString*>::const_iterator aIter = m_aPropertyMap.find(idx); if (aIter == m_aPropertyMap.end()) { sRet = const_cast<OPropertyMap*>(this)->fillValue(idx); @@ -168,7 +168,7 @@ static const property_callback property_callbacks[PROPERTY_ID_LAST] = getPROPERTY_PRIVILEGES, }; -OUString OPropertyMap::fillValue(sal_Int32 idx) +rtl::OUString OPropertyMap::fillValue(sal_Int32 idx) { rtl_uString* pStr = NULL; rtl_uString_newFromAscii(&pStr, property_callbacks[idx]()); diff --git a/mysqlc/source/mysqlc_propertyids.hxx b/mysqlc/source/mysqlc_propertyids.hxx index 35e5502e3ea1..a2295a642abe 100644 --- a/mysqlc/source/mysqlc_propertyids.hxx +++ b/mysqlc/source/mysqlc_propertyids.hxx @@ -33,13 +33,13 @@ namespace mysqlc { ::std::map<sal_Int32 , rtl_uString*> m_aPropertyMap; - OUString fillValue(sal_Int32 _nIndex); + rtl::OUString fillValue(sal_Int32 _nIndex); public: OPropertyMap() { } ~OPropertyMap(); - OUString getNameByIndex(sal_Int32 _nIndex) const; + rtl::OUString getNameByIndex(sal_Int32 _nIndex) const; static OPropertyMap& getPropMap() { @@ -57,7 +57,7 @@ namespace mysqlc sal_Int32 nLength; UStringDescription(PVFN _fCharFkt); - operator OUString() const { return OUString(pZeroTerminatedName,nLength,RTL_TEXTENCODING_ASCII_US); } + operator rtl::OUString() const { return rtl::OUString(pZeroTerminatedName,nLength,RTL_TEXTENCODING_ASCII_US); } ~UStringDescription(); private: UStringDescription(); diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index 8f080970e261..e0527ce73c96 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -49,24 +49,24 @@ using ::osl::MutexGuard; #include <stdio.h> -OUString SAL_CALL OResultSet::getImplementationName() +rtl::OUString SAL_CALL OResultSet::getImplementationName() throw (RuntimeException, std::exception) { OSL_TRACE("OResultSet::getImplementationName"); - return OUString( "com.sun.star.sdbcx.mysqlc.ResultSet" ); + return rtl::OUString( "com.sun.star.sdbcx.mysqlc.ResultSet" ); } -Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames() +Sequence< rtl::OUString > SAL_CALL OResultSet::getSupportedServiceNames() throw(RuntimeException, std::exception) { OSL_TRACE("OResultSet::getSupportedServiceNames"); - Sequence< OUString > aSupported(2); + Sequence< rtl::OUString > aSupported(2); aSupported[0] = "com.sun.star.sdbc.ResultSet"; aSupported[1] = "com.sun.star.sdbcx.ResultSet"; return (aSupported); } -sal_Bool SAL_CALL OResultSet::supportsService(const OUString& _rServiceName) +sal_Bool SAL_CALL OResultSet::supportsService(const rtl::OUString& _rServiceName) throw(RuntimeException, std::exception) { return cppu::supportsService(this, _rServiceName); @@ -128,7 +128,7 @@ Sequence< Type > SAL_CALL OResultSet::getTypes() return concatSequences(aTypes.getTypes(), OResultSet_BASE::getTypes()); } -sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) +sal_Int32 SAL_CALL OResultSet::findColumn(const rtl::OUString& columnName) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::findColumn"); @@ -150,7 +150,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) throw SQLException( "The column name '" + columnName + "' is not valid.", *this, - OUString("42S22"), + rtl::OUString("42S22"), 0, Any() ); @@ -238,8 +238,8 @@ Date SAL_CALL OResultSet::getDate(sal_Int32 column) Date d; try { - OUString dateString = getString(column); - OUString token; + rtl::OUString dateString = getString(column); + rtl::OUString token; sal_Int32 nIndex = 0, i=0; do { @@ -438,7 +438,7 @@ sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column) return 0; // fool compiler } -OUString SAL_CALL OResultSet::getString(sal_Int32 column) +rtl::OUString SAL_CALL OResultSet::getString(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::getString"); @@ -450,14 +450,14 @@ OUString SAL_CALL OResultSet::getString(sal_Int32 column) try { sql::SQLString val = m_result->getString(column); if (!m_result->wasNull()) { - return OUString( val.c_str(), val.length(), m_encoding ); + return rtl::OUString( val.c_str(), val.length(), m_encoding ); } else { - return OUString(); + return rtl::OUString(); } } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } Time SAL_CALL OResultSet::getTime(sal_Int32 column) @@ -469,8 +469,8 @@ Time SAL_CALL OResultSet::getTime(sal_Int32 column) checkColumnIndex(column); Time t; - OUString timeString = getString(column); - OUString token; + rtl::OUString timeString = getString(column); + rtl::OUString token; sal_Int32 nIndex, i=0; nIndex = timeString.indexOf(' ') + 1; @@ -922,7 +922,7 @@ void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateDouble", *this); } -void SAL_CALL OResultSet::updateString(sal_Int32 column, const OUString& /* x */) +void SAL_CALL OResultSet::updateString(sal_Int32 column, const rtl::OUString& /* x */) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::updateString"); @@ -1216,8 +1216,8 @@ void OResultSet::checkColumnIndex(sal_Int32 index) OSL_TRACE("OResultSet::checkColumnIndex"); if ((index < 1 || index > (int) fieldCount)) { /* static object for efficiency or thread safety is a problem ? */ - OUString buf( "index out of range" ); - throw SQLException(buf, *this, OUString(), 1, Any()); + rtl::OUString buf( "index out of range" ); + throw SQLException(buf, *this, rtl::OUString(), 1, Any()); } } diff --git a/mysqlc/source/mysqlc_resultset.hxx b/mysqlc/source/mysqlc_resultset.hxx index 6c742c5e6790..33c7a417729e 100644 --- a/mysqlc/source/mysqlc_resultset.hxx +++ b/mysqlc/source/mysqlc_resultset.hxx @@ -93,14 +93,14 @@ namespace connectivity virtual ~OResultSet(); public: - virtual OUString SAL_CALL getImplementationName() + virtual rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( - OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) + rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Sequence<OUString> SAL_CALL + virtual css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -159,7 +159,7 @@ namespace connectivity // XRow sal_Bool SAL_CALL wasNull() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getString(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getString(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL getBoolean(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Int8 SAL_CALL getByte(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; @@ -228,7 +228,7 @@ namespace connectivity void SAL_CALL updateLong(sal_Int32 column, sal_Int64 x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL updateFloat(sal_Int32 column, float x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL updateDouble(sal_Int32 column, double x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - void SAL_CALL updateString(sal_Int32 column, const OUString& x) + void SAL_CALL updateString(sal_Int32 column, const rtl::OUString& x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL updateBytes(sal_Int32 column, const ::com::sun::star::uno::Sequence< sal_Int8 >& x) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; @@ -248,7 +248,7 @@ namespace connectivity throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // XColumnLocate - sal_Int32 SAL_CALL findColumn(const OUString& columnName) + sal_Int32 SAL_CALL findColumn(const rtl::OUString& columnName) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; // XRowLocate diff --git a/mysqlc/source/mysqlc_resultsetmetadata.cxx b/mysqlc/source/mysqlc_resultsetmetadata.cxx index 0cb91f735821..26f76afd55fe 100644 --- a/mysqlc/source/mysqlc_resultsetmetadata.cxx +++ b/mysqlc/source/mysqlc_resultsetmetadata.cxx @@ -99,7 +99,7 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) return sal_False; // fool compiler } -OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getSchemaName"); @@ -112,10 +112,10 @@ OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getColumnName"); @@ -128,10 +128,10 @@ OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getTableName"); @@ -144,10 +144,10 @@ OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getCatalogName"); @@ -160,10 +160,10 @@ OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getColumnTypeName"); @@ -176,10 +176,10 @@ OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getColumnLabel"); @@ -192,16 +192,16 @@ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } - return OUString(); // fool compiler + return rtl::OUString(); // fool compiler } -OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) +rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSetMetaData::getColumnServiceName"); checkColumnIndex(column); - OUString aRet = OUString(); + rtl::OUString aRet = rtl::OUString(); return aRet; } @@ -370,13 +370,13 @@ void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex) OSL_TRACE("OResultSetMetaData::checkColumnIndex"); if (columnIndex < 1 || columnIndex > (sal_Int32) meta->getColumnCount()) { - OUStringBuffer buf; + rtl::OUStringBuffer buf; buf.appendAscii( "Column index out of range (expected 1 to " ); buf.append( sal_Int32( meta->getColumnCount() ) ); buf.appendAscii( ", got " ); buf.append( sal_Int32( columnIndex ) ); buf.append( '.' ); - throw SQLException( buf.makeStringAndClear(), *this, OUString(), 1, Any() ); + throw SQLException( buf.makeStringAndClear(), *this, rtl::OUString(), 1, Any() ); } } diff --git a/mysqlc/source/mysqlc_resultsetmetadata.hxx b/mysqlc/source/mysqlc_resultsetmetadata.hxx index 8f83b427949d..ef4c53efd60d 100644 --- a/mysqlc/source/mysqlc_resultsetmetadata.hxx +++ b/mysqlc/source/mysqlc_resultsetmetadata.hxx @@ -51,9 +51,9 @@ namespace connectivity { } - inline OUString convert( const ::std::string& _string ) const + inline rtl::OUString convert( const ::std::string& _string ) const { - return OUString( _string.c_str(), _string.size(), m_encoding ); + return rtl::OUString( _string.c_str(), _string.size(), m_encoding ); } /// Avoid ambigous cast error from the compiler. @@ -73,25 +73,25 @@ namespace connectivity sal_Int32 SAL_CALL getColumnDisplaySize(sal_Int32 column)throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getColumnLabel(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getColumnName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getSchemaName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getColumnLabel(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getColumnName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getSchemaName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getPrecision(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getScale(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getTableName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getCatalogName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getTableName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getCatalogName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Int32 SAL_CALL getColumnType(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getColumnTypeName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getColumnTypeName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isReadOnly(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isWritable(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL isDefinitelyWritable(sal_Int32 column)throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - OUString SAL_CALL getColumnServiceName(sal_Int32 column)throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; + rtl::OUString SAL_CALL getColumnServiceName(sal_Int32 column)throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void checkColumnIndex(sal_Int32 columnIndex) throw (SQLException, RuntimeException); }; diff --git a/mysqlc/source/mysqlc_services.cxx b/mysqlc/source/mysqlc_services.cxx index e2dc48c889a2..ee249a6584aa 100644 --- a/mysqlc/source/mysqlc_services.cxx +++ b/mysqlc/source/mysqlc_services.cxx @@ -34,9 +34,9 @@ using ::com::sun::star::lang::XMultiServiceFactory; typedef Reference< XSingleServiceFactory > (SAL_CALL *createFactoryFunc) ( const Reference< XMultiServiceFactory > & rServiceManager, - const OUString & rComponentName, + const rtl::OUString & rComponentName, ::cppu::ComponentInstantiation pCreateFunction, - const Sequence< OUString > & rServiceNames, + const Sequence< rtl::OUString > & rServiceNames, rtl_ModuleCount* ); @@ -44,19 +44,19 @@ struct ProviderRequest { Reference< XSingleServiceFactory > xRet; Reference< XMultiServiceFactory > const xServiceManager; - OUString const sImplementationName; + rtl::OUString const sImplementationName; ProviderRequest( void* pServiceManager, sal_Char const* pImplementationName ) : xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager)) - , sImplementationName(OUString::createFromAscii(pImplementationName)) + , sImplementationName(rtl::OUString::createFromAscii(pImplementationName)) { } inline bool CREATE_PROVIDER( - const OUString& Implname, - const Sequence< OUString > & Services, + const rtl::OUString& Implname, + const Sequence< rtl::OUString > & Services, ::cppu::ComponentInstantiation Factory, createFactoryFunc creator ) diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index 1a0c34818974..7e42758c26a7 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -148,35 +148,35 @@ void SAL_CALL OStatement::clearBatch() // if you support batches clear it here } -sal_Bool SAL_CALL OCommonStatement::execute(const OUString& sql) +sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OCommonStatement::execute"); MutexGuard aGuard(m_aMutex); checkDisposed(rBHelper.bDisposed); - const OUString sSqlStatement = m_pConnection->transFormPreparedStatement( sql ); + const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement( sql ); bool success = false; try { - success = cppStatement->execute(OUStringToOString(sSqlStatement, m_pConnection->getConnectionSettings().encoding).getStr())? sal_True:sal_False; + success = cppStatement->execute(rtl::OUStringToOString(sSqlStatement, m_pConnection->getConnectionSettings().encoding).getStr())? sal_True:sal_False; } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding()); } return success; } -Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const OUString& sql) +Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OCommonStatement::executeQuery"); MutexGuard aGuard(m_aMutex); checkDisposed(rBHelper.bDisposed); - const OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); + const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); Reference< XResultSet > xResultSet; try { - std::unique_ptr< sql::ResultSet > rset(cppStatement->executeQuery(OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr())); + std::unique_ptr< sql::ResultSet > rset(cppStatement->executeQuery(rtl::OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr())); xResultSet = new OResultSet(this, rset.get(), m_pConnection->getConnectionEncoding()); rset.release(); } catch (const sql::SQLException &e) { @@ -214,7 +214,7 @@ Any SAL_CALL OStatement::queryInterface(const Type & rType) return (aRet); } -void SAL_CALL OStatement::addBatch(const OUString& sql) +void SAL_CALL OStatement::addBatch(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OStatement::addBatch"); @@ -235,17 +235,17 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch() return aRet; } -sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const OUString& sql) +sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OCommonStatement::executeUpdate"); MutexGuard aGuard(m_aMutex); checkDisposed(rBHelper.bDisposed); - const OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); + const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); sal_Int32 affectedRows = 0; try { - affectedRows = cppStatement->executeUpdate(OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr()); + affectedRows = cppStatement->executeUpdate(rtl::OUStringToOString(sSqlStatement, m_pConnection->getConnectionEncoding()).getStr()); } catch (const sql::SQLException &e) { mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding()); } @@ -310,7 +310,7 @@ void SAL_CALL OCommonStatement::clearWarnings() Sequence< Property > aProps(10); Property* pProperties = aProps.getArray(); sal_Int32 nPos = 0; - pProperties[nPos++] = Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME), PROPERTY_ID_CURSORNAME, cppu::UnoType<OUString>::get(), 0); + pProperties[nPos++] = Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_CURSORNAME), PROPERTY_ID_CURSORNAME, cppu::UnoType<rtl::OUString>::get(), 0); pProperties[nPos++] = Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_ESCAPEPROCESSING), PROPERTY_ID_ESCAPEPROCESSING, ::getBooleanCppuType(), 0); pProperties[nPos++] = Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHDIRECTION), PROPERTY_ID_FETCHDIRECTION, cppu::UnoType<sal_Int32>::get(), 0); pProperties[nPos++] = Property(OPropertyMap::getPropMap().getNameByIndex(PROPERTY_ID_FETCHSIZE), PROPERTY_ID_FETCHSIZE, cppu::UnoType<sal_Int32>::get(), 0); @@ -384,20 +384,20 @@ void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) con } } -OUString OStatement::getImplementationName() throw (css::uno::RuntimeException, std::exception) +rtl::OUString OStatement::getImplementationName() throw (css::uno::RuntimeException, std::exception) { - return OUString("com.sun.star.sdbcx.OStatement"); + return rtl::OUString("com.sun.star.sdbcx.OStatement"); } -css::uno::Sequence<OUString> OStatement::getSupportedServiceNames() +css::uno::Sequence<rtl::OUString> OStatement::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence<OUString> s(1); + css::uno::Sequence<rtl::OUString> s(1); s[0] = "com.sun.star.sdbc.Statement"; return s; } -sal_Bool OStatement::supportsService(OUString const & ServiceName) +sal_Bool OStatement::supportsService(rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); diff --git a/mysqlc/source/mysqlc_statement.hxx b/mysqlc/source/mysqlc_statement.hxx index 68e4107b9c5e..1bf3093587cb 100644 --- a/mysqlc/source/mysqlc_statement.hxx +++ b/mysqlc/source/mysqlc_statement.hxx @@ -71,7 +71,7 @@ namespace connectivity SQLWarning m_aLastWarning; protected: - ::std::list< OUString> m_aBatchList; + ::std::list< rtl::OUString> m_aBatchList; OConnection* m_pConnection; // The owning Connection object @@ -123,13 +123,13 @@ namespace connectivity throw(RuntimeException, std::exception) SAL_OVERRIDE; // XStatement - ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL executeQuery(const OUString& sql) + ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > SAL_CALL executeQuery(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Int32 SAL_CALL executeUpdate(const OUString& sql) + sal_Int32 SAL_CALL executeUpdate(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; - sal_Bool SAL_CALL execute( const OUString& sql ) + sal_Bool SAL_CALL execute( const rtl::OUString& sql ) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL getConnection() @@ -175,14 +175,14 @@ namespace connectivity OStatement(OConnection* _pConnection, sql::Statement *_cppStatement) : OCommonStatement(_pConnection, _cppStatement) {} - virtual OUString SAL_CALL getImplementationName() + virtual rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( - OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) + rtl::OUString const & ServiceName) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual css::uno::Sequence<OUString> SAL_CALL + virtual css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -193,7 +193,7 @@ namespace connectivity void SAL_CALL release() throw() SAL_OVERRIDE; // XBatchExecution - void SAL_CALL addBatch(const OUString& sql) + void SAL_CALL addBatch(const rtl::OUString& sql) throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; void SAL_CALL clearBatch() throw(SQLException, RuntimeException, std::exception) SAL_OVERRIDE; |