OSL_TRACE->SAL in framework..sal

Change-Id: I9a897af88aa9f6f7ca98ce521c69b5a4ee8462e9
Reviewed-on: https://gerrit.libreoffice.org/31903
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2016-12-12 15:05:28 +02:00
parent 81f2a9f464
commit a005fbeddc
45 changed files with 64 additions and 621 deletions

View File

@ -126,7 +126,6 @@ void SAL_CALL GenericStatusbarController::paint(
::sal_Int32 /*nStyle*/ ) ::sal_Int32 /*nStyle*/ )
throw ( RuntimeException, std::exception ) throw ( RuntimeException, std::exception )
{ {
OSL_TRACE("framework::GenericStatusbarController::paint");
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
const Reference< awt::XGraphics2 > xGraphics2(xGraphics, UNO_QUERY); const Reference< awt::XGraphics2 > xGraphics2(xGraphics, UNO_QUERY);

View File

@ -64,7 +64,6 @@ MacrosMenuController::MacrosMenuController( const css::uno::Reference< css::uno:
MacrosMenuController::~MacrosMenuController() MacrosMenuController::~MacrosMenuController()
{ {
OSL_TRACE("calling dtor");
} }
// private function // private function
@ -98,7 +97,6 @@ void SAL_CALL MacrosMenuController::disposing( const EventObject& ) throw ( Runt
Reference< css::awt::XMenuListener > xHolder(static_cast<OWeakObject *>(this), UNO_QUERY ); Reference< css::awt::XMenuListener > xHolder(static_cast<OWeakObject *>(this), UNO_QUERY );
osl::MutexGuard aLock( m_aMutex ); osl::MutexGuard aLock( m_aMutex );
OSL_TRACE("disposing");
m_xFrame.clear(); m_xFrame.clear();
m_xDispatch.clear(); m_xDispatch.clear();
m_xContext.clear(); m_xContext.clear();
@ -106,7 +104,6 @@ void SAL_CALL MacrosMenuController::disposing( const EventObject& ) throw ( Runt
if ( m_xPopupMenu.is() ) if ( m_xPopupMenu.is() )
{ {
m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener >(static_cast<OWeakObject *>(this), UNO_QUERY )); m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener >(static_cast<OWeakObject *>(this), UNO_QUERY ));
OSL_TRACE("removed listener");
} }
m_xPopupMenu.clear(); m_xPopupMenu.clear();
} }

View File

@ -293,8 +293,6 @@ void SAL_CALL RecentFilesMenuController::itemSelected( const css::awt::MenuEvent
if ( xPopupMenu.is() ) if ( xPopupMenu.is() )
{ {
const OUString aCommand( xPopupMenu->getCommand( rEvent.MenuId ) ); const OUString aCommand( xPopupMenu->getCommand( rEvent.MenuId ) );
OSL_TRACE( "RecentFilesMenuController::itemSelected() - Command : %s",
OUStringToOString( aCommand, RTL_TEXTENCODING_UTF8 ).getStr() );
if ( aCommand == CMD_CLEAR_LIST ) if ( aCommand == CMD_CLEAR_LIST )
{ {

View File

@ -377,7 +377,7 @@ namespace canvas
( arg>TargetLimits::max() ) ) // overflow will happen ( arg>TargetLimits::max() ) ) // overflow will happen
{ {
# if OSL_DEBUG_LEVEL > 2 # if OSL_DEBUG_LEVEL > 2
OSL_TRACE("numeric_cast detected data loss"); SAL_WARN("canvas", "numeric_cast detected data loss");
#endif #endif
throw css::uno::RuntimeException( throw css::uno::RuntimeException(
"numeric_cast detected data loss", "numeric_cast detected data loss",
@ -460,8 +460,7 @@ namespace canvas
if( !mbCaseSensitive && if( !mbCaseSensitive &&
aStr != aStr.toAsciiLowerCase() ) aStr != aStr.toAsciiLowerCase() )
{ {
OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase", SAL_WARN("canvas", "ValueMap::ValueMap(): Key is not lowercase " << pMap->maKey);
pMap->maKey);
OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" ); OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" );
} }
@ -472,9 +471,8 @@ namespace canvas
if( !mapComparator(pMap[0], pMap[1]) && if( !mapComparator(pMap[0], pMap[1]) &&
mapComparator(pMap[1], pMap[0]) ) mapComparator(pMap[1], pMap[0]) )
{ {
OSL_TRACE("ValueMap::ValueMap(): Map is not sorted, keys %s and %s are wrong", SAL_WARN("canvas", "ValueMap::ValueMap(): Map is not sorted, keys are wrong, "
pMap[0].maKey, << pMap[0].maKey << " and " << pMap[1].maKey);
pMap[1].maKey);
OSL_FAIL( "ValueMap::ValueMap(): Map is not sorted" ); OSL_FAIL( "ValueMap::ValueMap(): Map is not sorted" );
} }
@ -482,8 +480,7 @@ namespace canvas
if( !mbCaseSensitive && if( !mbCaseSensitive &&
aStr2 != aStr2.toAsciiLowerCase() ) aStr2 != aStr2.toAsciiLowerCase() )
{ {
OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase", SAL_WARN("canvas", "ValueMap::ValueMap(): Key is not lowercase" << pMap[1].maKey);
pMap[1].maKey);
OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" ); OSL_FAIL( "ValueMap::ValueMap(): Key is not lowercase" );
} }
} }

View File

@ -1,59 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CANVAS_DEBUG_HXX
#define INCLUDED_CANVAS_DEBUG_HXX
// shared_ptr debugging
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
# include <sal/config.h>
# include <osl/diagnose.h>
# include <memory>
::std::size_t find_unreachable_objects( bool );
# if OSL_DEBUG_LEVEL > 2
# define SHARED_PTR_LEFTOVERS(a) OSL_TRACE("%s\n%s: Unreachable objects still use %d bytes\n", \
OSL_THIS_FUNC, a, \
find_unreachable_objects(true) )
# else
/** This macro shows how much memory is still used by shared_ptrs
Use this macro at places in the code where normally all shared_ptr
objects should have been deleted. You'll get the number of bytes
still contained in those objects, which quite possibly are prevented
from deletion by circular references.
*/
# define SHARED_PTR_LEFTOVERS(a) OSL_TRACE("%s\n%s: Unreachable objects still use %d bytes\n", \
OSL_THIS_FUNC, a, \
find_unreachable_objects(false) )
# endif
#else
# define SHARED_PTR_LEFTOVERS(a) ((void)0)
#endif
#endif // ! defined(INCLUDED_CANVAS_DEBUG_HXX)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -20,6 +20,7 @@ certain functionality.
@section SAL @section SAL
@li @c sal
@li @c sal.bootstrap - SAL bootstrap @li @c sal.bootstrap - SAL bootstrap
@li @c sal.debug - SAL debugging functionality @li @c sal.debug - SAL debugging functionality
@li @c sal.file @li @c sal.file
@ -551,6 +552,7 @@ certain functionality.
@li @c drawinglayer @li @c drawinglayer
@li @c dtrans @li @c dtrans
@li @c helpcompiler @li @c helpcompiler
@li @c javaunohelper
@li @c jvmaccess @li @c jvmaccess
@li @c lingucomponent @li @c lingucomponent
@li @c linguistic @li @c linguistic

View File

@ -124,10 +124,6 @@ namespace io_acceptor
IllegalArgumentException, IllegalArgumentException,
RuntimeException, std::exception) RuntimeException, std::exception)
{ {
OSL_TRACE(
"acceptor %s\n",
OUStringToOString(
sConnectionDescription, RTL_TEXTENCODING_ASCII_US).getStr());
// if there is a thread alread accepting in this object, throw an exception. // if there is a thread alread accepting in this object, throw an exception.
struct BeingInAccept guard( &m_bInAccept, sConnectionDescription ); struct BeingInAccept guard( &m_bInAccept, sConnectionDescription );
@ -205,11 +201,6 @@ namespace io_acceptor
else else
{ {
OUString delegatee = "com.sun.star.connection.Acceptor." + aDesc.getName(); OUString delegatee = "com.sun.star.connection.Acceptor." + aDesc.getName();
OSL_TRACE(
"trying to get service %s\n",
OUStringToOString(
delegatee, RTL_TEXTENCODING_ASCII_US).getStr());
_xAcceptor.set(_xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY); _xAcceptor.set(_xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY);
if(!_xAcceptor.is()) if(!_xAcceptor.is())

View File

@ -73,11 +73,6 @@ namespace stoc_connector
Reference< XConnection > SAL_CALL OConnector::connect( const OUString& sConnectionDescription ) Reference< XConnection > SAL_CALL OConnector::connect( const OUString& sConnectionDescription )
throw( NoConnectException, ConnectionSetupException, RuntimeException, std::exception) throw( NoConnectException, ConnectionSetupException, RuntimeException, std::exception)
{ {
OSL_TRACE(
"connector %s\n",
OUStringToOString(
sConnectionDescription, RTL_TEXTENCODING_ASCII_US).getStr());
// split string into tokens // split string into tokens
try try
{ {
@ -143,13 +138,8 @@ namespace stoc_connector
} }
else else
{ {
OUString delegatee("com.sun.star.connection.Connector."); OUString delegatee= "com.sun.star.connection.Connector." + aDesc.getName();
delegatee += aDesc.getName();
OSL_TRACE(
"connector: trying to get service %s\n",
OUStringToOString(
delegatee, RTL_TEXTENCODING_ASCII_US).getStr());
Reference<XConnector> xConnector( Reference<XConnector> xConnector(
_xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY ); _xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY );

View File

@ -150,9 +150,9 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
jclass c = jni_env->FindClass( "com/sun/star/uno/RuntimeException" ); jclass c = jni_env->FindClass( "com/sun/star/uno/RuntimeException" );
if (nullptr != c) if (nullptr != c)
{ {
SAL_WARN("javaunohelper", "forwarding RuntimeException: " << exc.Message );
OString cstr( OUStringToOString( OString cstr( OUStringToOString(
exc.Message, RTL_TEXTENCODING_JAVA_UTF8 ) ); exc.Message, RTL_TEXTENCODING_JAVA_UTF8 ) );
OSL_TRACE( __FILE__": forwarding RuntimeException: %s", cstr.getStr() );
jni_env->ThrowNew( c, cstr.getStr() ); jni_env->ThrowNew( c, cstr.getStr() );
} }
} }
@ -161,9 +161,9 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
jclass c = jni_env->FindClass( "com/sun/star/uno/Exception" ); jclass c = jni_env->FindClass( "com/sun/star/uno/Exception" );
if (nullptr != c) if (nullptr != c)
{ {
SAL_WARN("javaunohelper", "forwarding Exception: " << exc.Message );
OString cstr( OUStringToOString( OString cstr( OUStringToOString(
exc.Message, RTL_TEXTENCODING_JAVA_UTF8 ) ); exc.Message, RTL_TEXTENCODING_JAVA_UTF8 ) );
OSL_TRACE( __FILE__": forwarding Exception: %s", cstr.getStr() );
jni_env->ThrowNew( c, cstr.getStr() ); jni_env->ThrowNew( c, cstr.getStr() );
} }
} }

View File

@ -441,7 +441,6 @@ OString MergeDataFile::CreateKey(const OString& rTYP, const OString& rGID,
sKey += rLID; sKey += rLID;
sKey += sStroke; sKey += sStroke;
sKey += lcl_NormalizeFilename(rFilename); sKey += lcl_NormalizeFilename(rFilename);
OSL_TRACE("created key: %s", sKey.getStr());
if(bCaseSensitive) if(bCaseSensitive)
return sKey; // officecfg case sensitive identifier return sKey; // officecfg case sensitive identifier
return sKey.toAsciiUpperCase(); return sKey.toAsciiUpperCase();

View File

@ -68,13 +68,11 @@ OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver)
,cppDriver(_cppDriver) ,cppDriver(_cppDriver)
,m_bClosed(false) ,m_bClosed(false)
{ {
OSL_TRACE("OConnection::OConnection");
m_rDriver.acquire(); m_rDriver.acquire();
} }
OConnection::~OConnection() OConnection::~OConnection()
{ {
OSL_TRACE("OConnection::~OConnection");
if (!isClosed()) { if (!isClosed()) {
close(); close();
} }
@ -84,14 +82,12 @@ OConnection::~OConnection()
void SAL_CALL OConnection::release() void SAL_CALL OConnection::release()
throw() throw()
{ {
OSL_TRACE("OConnection::release");
release_ChildImpl(); release_ChildImpl();
} }
void OConnection::construct(const rtl::OUString& url, const Sequence< PropertyValue >& info) void OConnection::construct(const rtl::OUString& url, const Sequence< PropertyValue >& info)
throw(SQLException) throw(SQLException)
{ {
OSL_TRACE("OConnection::construct");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
sal_Int32 nIndex; sal_Int32 nIndex;
@ -178,12 +174,6 @@ void OConnection::construct(const rtl::OUString& url, const Sequence< PropertyVa
connProps["socket"] = pipe_str; connProps["socket"] = pipe_str;
} }
OSL_TRACE("hostName=%s", host_str.c_str());
OSL_TRACE("port=%i", int(nPort));
OSL_TRACE("userName=%s", user_str.c_str());
OSL_TRACE("password=%s", pass_str.c_str());
OSL_TRACE("schema=%s", schema_str.c_str());
m_settings.cppConnection.reset(cppDriver->connect(connProps)); m_settings.cppConnection.reset(cppDriver->connect(connProps));
} catch (const sql::SQLException &e) { } catch (const sql::SQLException &e) {
mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding());
@ -193,7 +183,6 @@ void OConnection::construct(const rtl::OUString& url, const Sequence< PropertyVa
} }
m_settings.schema = aDbName; m_settings.schema = aDbName;
OSL_TRACE("%s", rtl::OUStringToOString(m_settings.schema, getConnectionEncoding()).getStr());
// Check if the server is 4.1 or above // Check if the server is 4.1 or above
if (this->getMysqlVersion() < 40100) { if (this->getMysqlVersion() < 40100) {
@ -231,7 +220,6 @@ sal_Bool OConnection::supportsService(rtl::OUString const & ServiceName)
Reference< XStatement > SAL_CALL OConnection::createStatement() Reference< XStatement > SAL_CALL OConnection::createStatement()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::createStatement");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -251,7 +239,6 @@ Reference< XStatement > SAL_CALL OConnection::createStatement()
Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const rtl::OUString& _sSql) Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const rtl::OUString& _sSql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::prepareStatement");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql ); const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql );
@ -272,7 +259,6 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const rtl
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const rtl::OUString& /*_sSql*/ ) Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const rtl::OUString& /*_sSql*/ )
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::prepareCall");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -283,7 +269,6 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const rtl::OUS
rtl::OUString SAL_CALL OConnection::nativeSQL(const rtl::OUString& _sSql) rtl::OUString SAL_CALL OConnection::nativeSQL(const rtl::OUString& _sSql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::nativeSQL");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql ); const rtl::OUString sSqlStatement = transFormPreparedStatement( _sSql );
@ -300,7 +285,6 @@ rtl::OUString SAL_CALL OConnection::nativeSQL(const rtl::OUString& _sSql)
void SAL_CALL OConnection::setAutoCommit(sal_Bool autoCommit) void SAL_CALL OConnection::setAutoCommit(sal_Bool autoCommit)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::setAutoCommit");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
try { try {
@ -313,7 +297,6 @@ void SAL_CALL OConnection::setAutoCommit(sal_Bool autoCommit)
sal_Bool SAL_CALL OConnection::getAutoCommit() sal_Bool SAL_CALL OConnection::getAutoCommit()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::getAutoCommit");
// you have to distinguish which if you are in autocommit mode or not // you have to distinguish which if you are in autocommit mode or not
// at normal case true should be fine here // at normal case true should be fine here
@ -332,7 +315,6 @@ sal_Bool SAL_CALL OConnection::getAutoCommit()
void SAL_CALL OConnection::commit() void SAL_CALL OConnection::commit()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::commit");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
try { try {
@ -345,7 +327,6 @@ void SAL_CALL OConnection::commit()
void SAL_CALL OConnection::rollback() void SAL_CALL OConnection::rollback()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::rollback");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
try { try {
@ -358,7 +339,6 @@ void SAL_CALL OConnection::rollback()
sal_Bool SAL_CALL OConnection::isClosed() sal_Bool SAL_CALL OConnection::isClosed()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::isClosed");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
// just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent)
@ -368,7 +348,6 @@ sal_Bool SAL_CALL OConnection::isClosed()
Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData() Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::getMetaData");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -388,7 +367,6 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData()
void SAL_CALL OConnection::setReadOnly(sal_Bool readOnly) void SAL_CALL OConnection::setReadOnly(sal_Bool readOnly)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::setReadOnly");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -398,7 +376,6 @@ void SAL_CALL OConnection::setReadOnly(sal_Bool readOnly)
sal_Bool SAL_CALL OConnection::isReadOnly() sal_Bool SAL_CALL OConnection::isReadOnly()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::isReadOnly");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -409,7 +386,6 @@ sal_Bool SAL_CALL OConnection::isReadOnly()
void SAL_CALL OConnection::setCatalog(const rtl::OUString& catalog) void SAL_CALL OConnection::setCatalog(const rtl::OUString& catalog)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::setCatalog");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -424,7 +400,6 @@ void SAL_CALL OConnection::setCatalog(const rtl::OUString& catalog)
rtl::OUString SAL_CALL OConnection::getCatalog() rtl::OUString SAL_CALL OConnection::getCatalog()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::getCatalog");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -440,7 +415,6 @@ rtl::OUString SAL_CALL OConnection::getCatalog()
void SAL_CALL OConnection::setTransactionIsolation(sal_Int32 level) void SAL_CALL OConnection::setTransactionIsolation(sal_Int32 level)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::setTransactionIsolation");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -475,7 +449,6 @@ void SAL_CALL OConnection::setTransactionIsolation(sal_Int32 level)
sal_Int32 SAL_CALL OConnection::getTransactionIsolation() sal_Int32 SAL_CALL OConnection::getTransactionIsolation()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::getTransactionIsolation");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -497,7 +470,6 @@ sal_Int32 SAL_CALL OConnection::getTransactionIsolation()
Reference<XNameAccess> SAL_CALL OConnection::getTypeMap() Reference<XNameAccess> SAL_CALL OConnection::getTypeMap()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::getTypeMap");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -508,7 +480,6 @@ Reference<XNameAccess> SAL_CALL OConnection::getTypeMap()
void SAL_CALL OConnection::setTypeMap(const Reference<XNameAccess >& typeMap) void SAL_CALL OConnection::setTypeMap(const Reference<XNameAccess >& typeMap)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::setTypeMap");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -519,7 +490,6 @@ void SAL_CALL OConnection::setTypeMap(const Reference<XNameAccess >& typeMap)
void SAL_CALL OConnection::close() void SAL_CALL OConnection::close()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::close");
/* /*
we need block, because the mutex is a local variable, we need block, because the mutex is a local variable,
which will guard the block which will guard the block
@ -537,7 +507,6 @@ Any SAL_CALL OConnection::getWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
Any x = Any(); Any x = Any();
OSL_TRACE("OConnection::getWarnings");
// when you collected some warnings -> return it // when you collected some warnings -> return it
return x; return x;
} }
@ -545,13 +514,11 @@ Any SAL_CALL OConnection::getWarnings()
void SAL_CALL OConnection::clearWarnings() void SAL_CALL OConnection::clearWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OConnection::clearWarnings");
// you should clear your collected warnings here# // you should clear your collected warnings here#
} }
void OConnection::disposing() void OConnection::disposing()
{ {
OSL_TRACE("OConnection::disposing");
// we noticed that we should be destroied in near future so we have to dispose our statements // we noticed that we should be destroied in near future so we have to dispose our statements
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
@ -573,7 +540,6 @@ void OConnection::disposing()
sal_Int32 OConnection::getMysqlVersion() sal_Int32 OConnection::getMysqlVersion()
throw(SQLException, RuntimeException) throw(SQLException, RuntimeException)
{ {
OSL_TRACE("OConnection::getMysqlVersion");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OConnection_BASE::rBHelper.bDisposed); checkDisposed(OConnection_BASE::rBHelper.bDisposed);
@ -591,7 +557,7 @@ sal_Int32 OConnection::getMysqlVersion()
// TODO: Not used // TODO: Not used
//sal_Int32 OConnection::sdbcColumnType(rtl::OUString typeName) //sal_Int32 OConnection::sdbcColumnType(rtl::OUString typeName)
//{ //{
// OSL_TRACE("OConnection::sdbcColumnType"); // SAL_WARNx("mysqlc", "OConnection::sdbcColumnType");
// int i = 0; // int i = 0;
// while (mysqlc_types[i].typeName) { // while (mysqlc_types[i].typeName) {
// if (rtl::OUString::createFromAscii(mysqlc_types[i].typeName).equals( // if (rtl::OUString::createFromAscii(mysqlc_types[i].typeName).equals(

View File

@ -82,7 +82,6 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection& _rCon)
,meta(_rCon.getConnectionSettings().cppConnection->getMetaData()) ,meta(_rCon.getConnectionSettings().cppConnection->getMetaData())
,identifier_quote_string_set(false) ,identifier_quote_string_set(false)
{ {
OSL_TRACE("ODatabaseMetaData::ODatabaseMetaData");
osl_atomic_increment(&m_refCount); osl_atomic_increment(&m_refCount);
m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable()); m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable());
osl_atomic_decrement(&m_refCount); osl_atomic_decrement(&m_refCount);
@ -90,12 +89,10 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection& _rCon)
ODatabaseMetaData::~ODatabaseMetaData() ODatabaseMetaData::~ODatabaseMetaData()
{ {
OSL_TRACE("ODatabaseMetaData::~ODatabaseMetaData");
} }
rtl::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);
rtl::OUString stringMetaData; rtl::OUString stringMetaData;
try { try {
stringMetaData = mysqlc_sdbc_driver::convert((meta->*Method)(), m_rConnection.getConnectionEncoding()); stringMetaData = mysqlc_sdbc_driver::convert((meta->*Method)(), m_rConnection.getConnectionEncoding());
@ -111,7 +108,6 @@ rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodN
rtl::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);
rtl::OUString stringMetaData; rtl::OUString stringMetaData;
try { try {
stringMetaData = mysqlc_sdbc_driver::convert((meta->*Method)(), m_rConnection.getConnectionEncoding()); stringMetaData = mysqlc_sdbc_driver::convert((meta->*Method)(), m_rConnection.getConnectionEncoding());
@ -127,7 +123,6 @@ rtl::OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodN
sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName, unsigned int (sql::DatabaseMetaData::*Method)() ) sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName, unsigned int (sql::DatabaseMetaData::*Method)() )
{ {
OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName);
sal_Int32 int32MetaData(0); sal_Int32 int32MetaData(0);
try { try {
int32MetaData = (meta->*Method)(); int32MetaData = (meta->*Method)();
@ -143,7 +138,6 @@ sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName,
bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*Method)() ) bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*Method)() )
{ {
OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName);
bool boolMetaData(false); bool boolMetaData(false);
try { try {
boolMetaData = (meta->*Method)(); boolMetaData = (meta->*Method)();
@ -159,7 +153,6 @@ bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (
bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*Method)(int), sal_Int32 _arg ) bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*Method)(int), sal_Int32 _arg )
{ {
OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName);
bool boolMetaData(false); bool boolMetaData(false);
try { try {
boolMetaData = (meta->*Method)( _arg ); boolMetaData = (meta->*Method)( _arg );
@ -581,7 +574,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames()
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /* fromType */, sal_Int32 /* toType */) sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /* fromType */, sal_Int32 /* toType */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::supportsConvert");
try { try {
/* ToDo -> use supportsConvert( fromType, toType) */ /* ToDo -> use supportsConvert( fromType, toType) */
return meta->supportsConvert(); return meta->supportsConvert();
@ -754,7 +746,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL()
rtl::OUString SAL_CALL ODatabaseMetaData::getURL() rtl::OUString SAL_CALL ODatabaseMetaData::getURL()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getURL");
return m_rConnection.getConnectionSettings().connectionURL; return m_rConnection.getConnectionSettings().connectionURL;
} }
@ -767,7 +758,6 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getUserName()
rtl::OUString SAL_CALL ODatabaseMetaData::getDriverName() rtl::OUString SAL_CALL ODatabaseMetaData::getDriverName()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getDriverName");
rtl::OUString aValue( "MySQL Connector/OO.org" ); rtl::OUString aValue( "MySQL Connector/OO.org" );
return aValue; return aValue;
} }
@ -775,7 +765,6 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getDriverName()
rtl::OUString SAL_CALL ODatabaseMetaData::getDriverVersion() rtl::OUString SAL_CALL ODatabaseMetaData::getDriverVersion()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getDriverVersion");
return rtl::OUString( "0.9.2" ); return rtl::OUString( "0.9.2" );
} }
@ -806,14 +795,12 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm()
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion() sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getDriverMajorVersion");
return MARIADBC_VERSION_MAJOR; return MARIADBC_VERSION_MAJOR;
} }
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation() sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getDefaultTransactionIsolation");
try { try {
switch (meta->getDefaultTransactionIsolation()) { switch (meta->getDefaultTransactionIsolation()) {
case sql::TRANSACTION_SERIALIZABLE: return TransactionIsolation::SERIALIZABLE; case sql::TRANSACTION_SERIALIZABLE: return TransactionIsolation::SERIALIZABLE;
@ -834,7 +821,6 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion() sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getDriverMinorVersion");
return MARIADBC_VERSION_MINOR; return MARIADBC_VERSION_MINOR;
} }
@ -937,7 +923,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType)
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(sal_Int32 setType, sal_Int32 concurrency) sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(sal_Int32 setType, sal_Int32 concurrency)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::supportsResultSetConcurrency");
/* TODO: Check this out */ /* TODO: Check this out */
try { try {
return meta->supportsResultSetConcurrency(setType, concurrency==css::sdbc::TransactionIsolation::READ_COMMITTED? return meta->supportsResultSetConcurrency(setType, concurrency==css::sdbc::TransactionIsolation::READ_COMMITTED?
@ -1017,7 +1002,6 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates()
Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection() Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getConnection");
return &m_rConnection; return &m_rConnection;
} }
@ -1031,7 +1015,6 @@ Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection()
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes() Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getTableTypes");
const char * table_types[] = {"TABLE", "VIEW"}; const char * table_types[] = {"TABLE", "VIEW"};
sal_Int32 requiredVersion[] = {0, 50000}; sal_Int32 requiredVersion[] = {0, 50000};
@ -1053,7 +1036,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes()
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getTypeInfo");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1093,8 +1075,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getCatalogs");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1125,8 +1105,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs()
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas() Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getSchemas");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1168,7 +1146,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
const rtl::OUString& columnNamePattern) const rtl::OUString& columnNamePattern)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getColumnPrivileges");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1208,7 +1185,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
const rtl::OUString& columnNamePattern) const rtl::OUString& columnNamePattern)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getColumns");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""),
@ -1254,7 +1230,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
const Sequence< rtl::OUString >& types ) const Sequence< rtl::OUString >& types )
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getTables");
sal_Int32 nLength = types.getLength(); sal_Int32 nLength = types.getLength();
Reference< XResultSet > xResultSet(getOwnConnection(). Reference< XResultSet > xResultSet(getOwnConnection().
@ -1313,7 +1288,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
const rtl::OUString& /* columnNamePattern */) const rtl::OUString& /* columnNamePattern */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getProcedureColumns");
// Currently there is no information available // Currently there is no information available
return nullptr; return nullptr;
} }
@ -1324,7 +1298,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
const rtl::OUString& procedureNamePattern) const rtl::OUString& procedureNamePattern)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getProcedures");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1366,7 +1339,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
const rtl::OUString& /* table */) const rtl::OUString& /* table */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getVersionColumns");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
lcl_setRows_throw(xResultSet, 16,rRows); lcl_setRows_throw(xResultSet, 16,rRows);
@ -1379,7 +1351,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
const rtl::OUString& table ) const rtl::OUString& table )
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getExportedKeys");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""), std::string cat(catalog.hasValue()? rtl::OUStringToOString(getStringFromAny(catalog), m_rConnection.getConnectionEncoding()).getStr():""),
@ -1416,8 +1387,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
const rtl::OUString& table) const rtl::OUString& table)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getImportedKeys");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1455,7 +1424,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
const rtl::OUString& table) const rtl::OUString& table)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getPrimaryKeys");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1495,7 +1463,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
sal_Bool approximate) sal_Bool approximate)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getIndexInfo");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1535,7 +1502,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
sal_Bool nullable) sal_Bool nullable)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getBestRowIdentifier");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1573,7 +1539,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
const rtl::OUString& tableNamePattern) const rtl::OUString& tableNamePattern)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getTablePrivileges");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1635,7 +1600,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
const rtl::OUString& foreignTable) const rtl::OUString& foreignTable)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getCrossReference");
Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY); Reference< XResultSet > xResultSet(getOwnConnection().getDriver().getFactory()->createInstance("org.openoffice.comp.helper.DatabaseMetaDataResultSet"),UNO_QUERY);
std::vector< std::vector< Any > > rRows; std::vector< std::vector< Any > > rRows;
@ -1677,7 +1641,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs(
const Sequence< sal_Int32 >& /* types */) const Sequence< sal_Int32 >& /* types */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("ODatabaseMetaData::getUDTs");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("ODatabaseMetaData::getUDTs", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("ODatabaseMetaData::getUDTs", *this);
return nullptr; return nullptr;
} }

View File

@ -49,13 +49,11 @@ MysqlCDriver::MysqlCDriver(const Reference< XMultiServiceFactory >& _rxFactory)
,m_bAttemptedLoadCppConn( false ) ,m_bAttemptedLoadCppConn( false )
#endif #endif
{ {
OSL_TRACE("MysqlCDriver::MysqlCDriver");
cppDriver = nullptr; cppDriver = nullptr;
} }
void MysqlCDriver::disposing() void MysqlCDriver::disposing()
{ {
OSL_TRACE("MysqlCDriver::disposing");
::osl::MutexGuard aGuard(m_aMutex); ::osl::MutexGuard aGuard(m_aMutex);
// when driver will be destroied so all our connections have to be destroied as well // when driver will be destroied so all our connections have to be destroied as well
@ -75,14 +73,12 @@ void MysqlCDriver::disposing()
rtl::OUString MysqlCDriver::getImplementationName_Static() rtl::OUString MysqlCDriver::getImplementationName_Static()
throw(RuntimeException) throw(RuntimeException)
{ {
OSL_TRACE("MysqlCDriver::getImplementationName_Static");
return rtl::OUString( "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver" ); return rtl::OUString( "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver" );
} }
Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static() Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static()
throw(RuntimeException) throw(RuntimeException)
{ {
OSL_TRACE("MysqlCDriver::getSupportedServiceNames_Static");
// which service is supported // which service is supported
// for more information @see com.sun.star.sdbc.Driver // for more information @see com.sun.star.sdbc.Driver
Sequence< rtl::OUString > aSNS(1); Sequence< rtl::OUString > aSNS(1);
@ -93,7 +89,6 @@ Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static()
rtl::OUString SAL_CALL MysqlCDriver::getImplementationName() rtl::OUString SAL_CALL MysqlCDriver::getImplementationName()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::getImplementationName");
return getImplementationName_Static(); return getImplementationName_Static();
} }
@ -106,7 +101,6 @@ sal_Bool SAL_CALL MysqlCDriver::supportsService(const rtl::OUString& _rServiceNa
Sequence< rtl::OUString > SAL_CALL MysqlCDriver::getSupportedServiceNames() Sequence< rtl::OUString > SAL_CALL MysqlCDriver::getSupportedServiceNames()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::getSupportedServiceNames");
return getSupportedServiceNames_Static(); return getSupportedServiceNames_Static();
} }
@ -196,7 +190,6 @@ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const rtl::OUString& url
{ {
::osl::MutexGuard aGuard( m_aMutex ); ::osl::MutexGuard aGuard( m_aMutex );
OSL_TRACE("MysqlCDriver::connect");
if (!acceptsURL(url)) { if (!acceptsURL(url)) {
return nullptr; return nullptr;
} }
@ -227,14 +220,12 @@ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const rtl::OUString& url
sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const rtl::OUString& url) sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const rtl::OUString& url)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::acceptsURL");
return url.startsWith("sdbc:mysqlc:"); return url.startsWith("sdbc:mysqlc:");
} }
Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const rtl::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) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::getPropertyInfo");
if (acceptsURL(url)) { if (acceptsURL(url)) {
::std::vector< DriverPropertyInfo > aDriverInfo; ::std::vector< DriverPropertyInfo > aDriverInfo;
@ -261,14 +252,12 @@ Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const rtl:
sal_Int32 SAL_CALL MysqlCDriver::getMajorVersion() sal_Int32 SAL_CALL MysqlCDriver::getMajorVersion()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::getMajorVersion");
return MARIADBC_VERSION_MAJOR; return MARIADBC_VERSION_MAJOR;
} }
sal_Int32 SAL_CALL MysqlCDriver::getMinorVersion() sal_Int32 SAL_CALL MysqlCDriver::getMinorVersion()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("MysqlCDriver::getMinorVersion");
return MARIADBC_VERSION_MINOR; return MARIADBC_VERSION_MINOR;
} }

View File

@ -79,7 +79,6 @@ sal_Bool OPreparedStatement::supportsService(rtl::OUString const & ServiceName)
OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedStatement * _cppPrepStmt) OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedStatement * _cppPrepStmt)
:OCommonStatement(_pConnection, _cppPrepStmt) :OCommonStatement(_pConnection, _cppPrepStmt)
{ {
OSL_TRACE("OPreparedStatement::OPreparedStatement");
m_pConnection = _pConnection; m_pConnection = _pConnection;
m_pConnection->acquire(); m_pConnection->acquire();
@ -92,27 +91,23 @@ OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedS
OPreparedStatement::~OPreparedStatement() OPreparedStatement::~OPreparedStatement()
{ {
OSL_TRACE("OPreparedStatement::~OPreparedStatement");
} }
void SAL_CALL OPreparedStatement::acquire() void SAL_CALL OPreparedStatement::acquire()
throw() throw()
{ {
OSL_TRACE("OPreparedStatement::acquire");
OCommonStatement::acquire(); OCommonStatement::acquire();
} }
void SAL_CALL OPreparedStatement::release() void SAL_CALL OPreparedStatement::release()
throw() throw()
{ {
OSL_TRACE("OPreparedStatement::release");
OCommonStatement::release(); OCommonStatement::release();
} }
Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType) Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType)
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::queryInterface");
Any aRet = OCommonStatement::queryInterface(rType); Any aRet = OCommonStatement::queryInterface(rType);
if (!aRet.hasValue()) { if (!aRet.hasValue()) {
aRet = OPreparedStatement_BASE::queryInterface(rType); aRet = OPreparedStatement_BASE::queryInterface(rType);
@ -123,14 +118,12 @@ Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType)
Sequence< Type > SAL_CALL OPreparedStatement::getTypes() Sequence< Type > SAL_CALL OPreparedStatement::getTypes()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::getTypes");
return concatSequences(OPreparedStatement_BASE::getTypes(), OCommonStatement::getTypes()); return concatSequences(OPreparedStatement_BASE::getTypes(), OCommonStatement::getTypes());
} }
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData() Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::getMetaData");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -152,8 +145,6 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
void SAL_CALL OPreparedStatement::close() void SAL_CALL OPreparedStatement::close()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::close");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -172,7 +163,6 @@ void SAL_CALL OPreparedStatement::close()
sal_Bool SAL_CALL OPreparedStatement::execute() sal_Bool SAL_CALL OPreparedStatement::execute()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::execute");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -188,7 +178,6 @@ sal_Bool SAL_CALL OPreparedStatement::execute()
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate() sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::executeUpdate");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -204,7 +193,6 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const rtl::OUString& x) void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const rtl::OUString& x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setString");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -222,7 +210,6 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const rtl::OUSt
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection() Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::getConnection");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -232,7 +219,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery() Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::executeQuery");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -249,7 +235,6 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 parameter, sal_Bool x) void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 parameter, sal_Bool x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setBoolean");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -266,7 +251,6 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 parameter, sal_Bool x)
void SAL_CALL OPreparedStatement::setByte(sal_Int32 parameter, sal_Int8 x) void SAL_CALL OPreparedStatement::setByte(sal_Int32 parameter, sal_Int8 x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setByte");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -283,7 +267,6 @@ void SAL_CALL OPreparedStatement::setByte(sal_Int32 parameter, sal_Int8 x)
void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData) void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setDate");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -308,7 +291,6 @@ void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData
void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal) void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setTime");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -333,7 +315,6 @@ void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal)
void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 parameter, const DateTime& aVal) void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 parameter, const DateTime& aVal)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setTimestamp");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -366,7 +347,6 @@ void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 parameter, const DateTi
void SAL_CALL OPreparedStatement::setDouble(sal_Int32 parameter, double x) void SAL_CALL OPreparedStatement::setDouble(sal_Int32 parameter, double x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setDouble");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -383,7 +363,6 @@ void SAL_CALL OPreparedStatement::setDouble(sal_Int32 parameter, double x)
void SAL_CALL OPreparedStatement::setFloat(sal_Int32 parameter, float x) void SAL_CALL OPreparedStatement::setFloat(sal_Int32 parameter, float x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setFloat");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -400,7 +379,6 @@ void SAL_CALL OPreparedStatement::setFloat(sal_Int32 parameter, float x)
void SAL_CALL OPreparedStatement::setInt(sal_Int32 parameter, sal_Int32 x) void SAL_CALL OPreparedStatement::setInt(sal_Int32 parameter, sal_Int32 x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setInt");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -417,7 +395,6 @@ void SAL_CALL OPreparedStatement::setInt(sal_Int32 parameter, sal_Int32 x)
void SAL_CALL OPreparedStatement::setLong(sal_Int32 parameter, sal_Int64 aVal) void SAL_CALL OPreparedStatement::setLong(sal_Int32 parameter, sal_Int64 aVal)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setLong");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -434,7 +411,6 @@ void SAL_CALL OPreparedStatement::setLong(sal_Int32 parameter, sal_Int64 aVal)
void SAL_CALL OPreparedStatement::setNull(sal_Int32 parameter, sal_Int32 sqlType) void SAL_CALL OPreparedStatement::setNull(sal_Int32 parameter, sal_Int32 sqlType)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setNull");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -451,7 +427,6 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 parameter, sal_Int32 sqlType
void SAL_CALL OPreparedStatement::setClob(sal_Int32 parameter, const Reference< XClob >& /* x */) void SAL_CALL OPreparedStatement::setClob(sal_Int32 parameter, const Reference< XClob >& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setClob");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -462,7 +437,6 @@ void SAL_CALL OPreparedStatement::setClob(sal_Int32 parameter, const Reference<
void SAL_CALL OPreparedStatement::setBlob(sal_Int32 parameter, const Reference< XBlob >& /* x */) void SAL_CALL OPreparedStatement::setBlob(sal_Int32 parameter, const Reference< XBlob >& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setBlob");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -473,7 +447,6 @@ void SAL_CALL OPreparedStatement::setBlob(sal_Int32 parameter, const Reference<
void SAL_CALL OPreparedStatement::setArray(sal_Int32 parameter, const Reference< XArray >& /* x */) void SAL_CALL OPreparedStatement::setArray(sal_Int32 parameter, const Reference< XArray >& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setArray");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -484,7 +457,6 @@ void SAL_CALL OPreparedStatement::setArray(sal_Int32 parameter, const Reference<
void SAL_CALL OPreparedStatement::setRef(sal_Int32 parameter, const Reference< XRef >& /* x */) void SAL_CALL OPreparedStatement::setRef(sal_Int32 parameter, const Reference< XRef >& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setRef");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -524,7 +496,6 @@ namespace
void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, const Any& _value, sal_Int32 _targetSqlType, sal_Int32 /* scale */) void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, const Any& _value, sal_Int32 _targetSqlType, sal_Int32 /* scale */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setObjectWithInfo");
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkParameterIndex( _parameterIndex ); checkParameterIndex( _parameterIndex );
@ -658,7 +629,6 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /* sqlType */, const rtl::OUString& /* typeName */) void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /* sqlType */, const rtl::OUString& /* typeName */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setObjectNull");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -669,7 +639,6 @@ void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /
void SAL_CALL OPreparedStatement::setObject(sal_Int32 parameter, const Any& /* x */) void SAL_CALL OPreparedStatement::setObject(sal_Int32 parameter, const Any& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setObject");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -680,7 +649,6 @@ void SAL_CALL OPreparedStatement::setObject(sal_Int32 parameter, const Any& /* x
void SAL_CALL OPreparedStatement::setShort(sal_Int32 parameter, sal_Int16 x) void SAL_CALL OPreparedStatement::setShort(sal_Int32 parameter, sal_Int16 x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setShort");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -697,7 +665,6 @@ void SAL_CALL OPreparedStatement::setShort(sal_Int32 parameter, sal_Int16 x)
void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence< sal_Int8 >& x) void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence< sal_Int8 >& x)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setBytes");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -717,7 +684,6 @@ void SAL_CALL OPreparedStatement::setCharacterStream(sal_Int32 parameter,
sal_Int32 /* length */) sal_Int32 /* length */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setCharacterStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -730,7 +696,6 @@ void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter,
sal_Int32 /* length */) sal_Int32 /* length */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setBinaryStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
checkParameterIndex(parameter); checkParameterIndex(parameter);
@ -741,7 +706,6 @@ void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter,
void SAL_CALL OPreparedStatement::clearParameters() void SAL_CALL OPreparedStatement::clearParameters()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::clearParameters");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkDisposed(OPreparedStatement::rBHelper.bDisposed);
@ -757,21 +721,18 @@ void SAL_CALL OPreparedStatement::clearParameters()
void SAL_CALL OPreparedStatement::clearBatch() void SAL_CALL OPreparedStatement::clearBatch()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::clearBatch");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", *this);
} }
void SAL_CALL OPreparedStatement::addBatch() void SAL_CALL OPreparedStatement::addBatch()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::addBatch");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this);
} }
Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch() Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OPreparedStatement::executeBatch");
Sequence< sal_Int32 > aRet= Sequence< sal_Int32 > (); Sequence< sal_Int32 > aRet= Sequence< sal_Int32 > ();
return aRet; return aRet;
} }
@ -779,7 +740,6 @@ Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)
throw(Exception, std::exception) throw(Exception, std::exception)
{ {
OSL_TRACE("OPreparedStatement::setFastPropertyValue_NoBroadcast");
switch(nHandle) switch(nHandle)
{ {
case PROPERTY_ID_RESULTSETCONCURRENCY: case PROPERTY_ID_RESULTSETCONCURRENCY:
@ -798,7 +758,6 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
void OPreparedStatement::checkParameterIndex(sal_Int32 column) void OPreparedStatement::checkParameterIndex(sal_Int32 column)
{ {
OSL_TRACE("OPreparedStatement::checkColumnIndex");
if (column < 1 || column > (sal_Int32) m_paramCount) { if (column < 1 || column > (sal_Int32) m_paramCount) {
rtl::OUString buf( "Parameter index out of range" ); rtl::OUString buf( "Parameter index out of range" );
throw SQLException(buf, *this, rtl::OUString(), 1, Any ()); throw SQLException(buf, *this, rtl::OUString(), 1, Any ());

View File

@ -52,14 +52,12 @@ using ::osl::MutexGuard;
rtl::OUString SAL_CALL OResultSet::getImplementationName() rtl::OUString SAL_CALL OResultSet::getImplementationName()
throw (RuntimeException, std::exception) throw (RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getImplementationName");
return rtl::OUString( "com.sun.star.sdbcx.mysqlc.ResultSet" ); return rtl::OUString( "com.sun.star.sdbcx.mysqlc.ResultSet" );
} }
Sequence< rtl::OUString > SAL_CALL OResultSet::getSupportedServiceNames() Sequence< rtl::OUString > SAL_CALL OResultSet::getSupportedServiceNames()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getSupportedServiceNames");
Sequence< rtl::OUString > aSupported(2); Sequence< rtl::OUString > aSupported(2);
aSupported[0] = "com.sun.star.sdbc.ResultSet"; aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet"; aSupported[1] = "com.sun.star.sdbcx.ResultSet";
@ -81,7 +79,6 @@ OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_Te
,fieldCount( 0 ) ,fieldCount( 0 )
,m_encoding( _encoding ) ,m_encoding( _encoding )
{ {
OSL_TRACE("OResultSet::OResultSet");
try { try {
sql::ResultSetMetaData * rs_meta = m_result->getMetaData(); sql::ResultSetMetaData * rs_meta = m_result->getMetaData();
fieldCount = rs_meta->getColumnCount(); fieldCount = rs_meta->getColumnCount();
@ -92,12 +89,10 @@ OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_Te
OResultSet::~OResultSet() OResultSet::~OResultSet()
{ {
OSL_TRACE("OResultSet::~OResultSet");
} }
void OResultSet::disposing() void OResultSet::disposing()
{ {
OSL_TRACE("OResultSet::disposing");
OPropertySetHelper::disposing(); OPropertySetHelper::disposing();
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
@ -109,7 +104,6 @@ void OResultSet::disposing()
Any SAL_CALL OResultSet::queryInterface(const Type & rType) Any SAL_CALL OResultSet::queryInterface(const Type & rType)
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::queryInterface");
Any aRet = OPropertySetHelper::queryInterface(rType); Any aRet = OPropertySetHelper::queryInterface(rType);
if (!aRet.hasValue()) { if (!aRet.hasValue()) {
aRet = OResultSet_BASE::queryInterface(rType); aRet = OResultSet_BASE::queryInterface(rType);
@ -120,7 +114,6 @@ Any SAL_CALL OResultSet::queryInterface(const Type & rType)
Sequence< Type > SAL_CALL OResultSet::getTypes() Sequence< Type > SAL_CALL OResultSet::getTypes()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getTypes");
OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(), OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(),
cppu::UnoType<XFastPropertySet>::get(), cppu::UnoType<XFastPropertySet>::get(),
cppu::UnoType<XPropertySet>::get()); cppu::UnoType<XPropertySet>::get());
@ -131,7 +124,6 @@ Sequence< Type > SAL_CALL OResultSet::getTypes()
sal_Int32 SAL_CALL OResultSet::findColumn(const rtl::OUString& columnName) sal_Int32 SAL_CALL OResultSet::findColumn(const rtl::OUString& columnName)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::findColumn");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -159,7 +151,6 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const rtl::OUString& columnName)
Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column) Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getBinaryStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -171,7 +162,6 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column)
Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 column) Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getCharacterStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -183,7 +173,6 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 colu
sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 column) sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getBoolean");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -199,7 +188,6 @@ sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 column)
sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 column) sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getByte");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -215,8 +203,6 @@ sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 column)
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column) Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getBytes");
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
@ -231,7 +217,6 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column)
Date SAL_CALL OResultSet::getDate(sal_Int32 column) Date SAL_CALL OResultSet::getDate(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getDate");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -267,7 +252,6 @@ Date SAL_CALL OResultSet::getDate(sal_Int32 column)
double SAL_CALL OResultSet::getDouble(sal_Int32 column) double SAL_CALL OResultSet::getDouble(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getDouble");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -283,7 +267,6 @@ double SAL_CALL OResultSet::getDouble(sal_Int32 column)
float SAL_CALL OResultSet::getFloat(sal_Int32 column) float SAL_CALL OResultSet::getFloat(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getFloat");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -299,7 +282,6 @@ float SAL_CALL OResultSet::getFloat(sal_Int32 column)
sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 column) sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getInt");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -315,7 +297,6 @@ sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 column)
sal_Int32 SAL_CALL OResultSet::getRow() sal_Int32 SAL_CALL OResultSet::getRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -330,7 +311,6 @@ sal_Int32 SAL_CALL OResultSet::getRow()
sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 column) sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getLong");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -346,7 +326,6 @@ sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 column)
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData() Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getMetaData");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
try { try {
@ -364,7 +343,6 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData()
Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column) Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getArray");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -376,7 +354,6 @@ Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column)
Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column) Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getClob");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -388,7 +365,6 @@ Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column)
Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column) Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getBlob");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -400,7 +376,6 @@ Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column)
Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column) Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getRef");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -412,7 +387,6 @@ Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column)
Any SAL_CALL OResultSet::getObject(sal_Int32 column, const Reference< XNameAccess >& /* typeMap */) Any SAL_CALL OResultSet::getObject(sal_Int32 column, const Reference< XNameAccess >& /* typeMap */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getObject");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -426,7 +400,6 @@ Any SAL_CALL OResultSet::getObject(sal_Int32 column, const Reference< XNameAcces
sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column) sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getShort");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -441,7 +414,6 @@ sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column)
rtl::OUString SAL_CALL OResultSet::getString(sal_Int32 column) rtl::OUString SAL_CALL OResultSet::getString(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getString");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -463,7 +435,6 @@ rtl::OUString SAL_CALL OResultSet::getString(sal_Int32 column)
Time SAL_CALL OResultSet::getTime(sal_Int32 column) Time SAL_CALL OResultSet::getTime(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getTime");
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
@ -497,7 +468,6 @@ Time SAL_CALL OResultSet::getTime(sal_Int32 column)
DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 column) DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getTimestamp");
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
@ -518,7 +488,6 @@ DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 column)
sal_Bool SAL_CALL OResultSet::isBeforeFirst() sal_Bool SAL_CALL OResultSet::isBeforeFirst()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::isBeforeFirst");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -533,7 +502,6 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst()
sal_Bool SAL_CALL OResultSet::isAfterLast() sal_Bool SAL_CALL OResultSet::isAfterLast()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::isAfterLast");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -548,7 +516,6 @@ sal_Bool SAL_CALL OResultSet::isAfterLast()
sal_Bool SAL_CALL OResultSet::isFirst() sal_Bool SAL_CALL OResultSet::isFirst()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::isFirst");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -563,7 +530,6 @@ sal_Bool SAL_CALL OResultSet::isFirst()
sal_Bool SAL_CALL OResultSet::isLast() sal_Bool SAL_CALL OResultSet::isLast()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::isLast");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -578,7 +544,6 @@ sal_Bool SAL_CALL OResultSet::isLast()
void SAL_CALL OResultSet::beforeFirst() void SAL_CALL OResultSet::beforeFirst()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::beforeFirst");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -592,7 +557,6 @@ void SAL_CALL OResultSet::beforeFirst()
void SAL_CALL OResultSet::afterLast() void SAL_CALL OResultSet::afterLast()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::afterLast");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -605,7 +569,6 @@ void SAL_CALL OResultSet::afterLast()
void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exception) void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::close");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -620,7 +583,6 @@ void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exc
sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std::exception) sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::first");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -635,7 +597,6 @@ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std:
sal_Bool SAL_CALL OResultSet::last() sal_Bool SAL_CALL OResultSet::last()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::last");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -650,7 +611,6 @@ sal_Bool SAL_CALL OResultSet::last()
sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 row) sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 row)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::absolute");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -665,7 +625,6 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 row)
sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::relative");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -680,7 +639,6 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row)
sal_Bool SAL_CALL OResultSet::previous() sal_Bool SAL_CALL OResultSet::previous()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::previous");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -695,7 +653,6 @@ sal_Bool SAL_CALL OResultSet::previous()
Reference< XInterface > SAL_CALL OResultSet::getStatement() Reference< XInterface > SAL_CALL OResultSet::getStatement()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getStatement");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -705,7 +662,6 @@ Reference< XInterface > SAL_CALL OResultSet::getStatement()
sal_Bool SAL_CALL OResultSet::rowDeleted() sal_Bool SAL_CALL OResultSet::rowDeleted()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::rowDeleted");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -715,7 +671,6 @@ sal_Bool SAL_CALL OResultSet::rowDeleted()
sal_Bool SAL_CALL OResultSet::rowInserted() sal_Bool SAL_CALL OResultSet::rowInserted()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::rowInserted");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -725,7 +680,6 @@ sal_Bool SAL_CALL OResultSet::rowInserted()
sal_Bool SAL_CALL OResultSet::rowUpdated() sal_Bool SAL_CALL OResultSet::rowUpdated()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::rowUpdated");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -735,7 +689,6 @@ sal_Bool SAL_CALL OResultSet::rowUpdated()
sal_Bool SAL_CALL OResultSet::next() sal_Bool SAL_CALL OResultSet::next()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::next");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -750,7 +703,6 @@ sal_Bool SAL_CALL OResultSet::next()
sal_Bool SAL_CALL OResultSet::wasNull() sal_Bool SAL_CALL OResultSet::wasNull()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::wasNull");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -765,7 +717,6 @@ sal_Bool SAL_CALL OResultSet::wasNull()
void SAL_CALL OResultSet::cancel() void SAL_CALL OResultSet::cancel()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::cancel");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
} }
@ -773,13 +724,11 @@ void SAL_CALL OResultSet::cancel()
void SAL_CALL OResultSet::clearWarnings() void SAL_CALL OResultSet::clearWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::clearWarnings");
} }
Any SAL_CALL OResultSet::getWarnings() Any SAL_CALL OResultSet::getWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getWarnings");
Any aRet= Any(); Any aRet= Any();
return aRet; return aRet;
} }
@ -787,7 +736,6 @@ Any SAL_CALL OResultSet::getWarnings()
void SAL_CALL OResultSet::insertRow() void SAL_CALL OResultSet::insertRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::insertRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
// you only have to implement this if you want to insert new rows // you only have to implement this if you want to insert new rows
@ -797,7 +745,6 @@ void SAL_CALL OResultSet::insertRow()
void SAL_CALL OResultSet::updateRow() void SAL_CALL OResultSet::updateRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -808,7 +755,6 @@ void SAL_CALL OResultSet::updateRow()
void SAL_CALL OResultSet::deleteRow() void SAL_CALL OResultSet::deleteRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::deleteRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::deleteRow", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::deleteRow", *this);
@ -817,7 +763,6 @@ void SAL_CALL OResultSet::deleteRow()
void SAL_CALL OResultSet::cancelRowUpdates() void SAL_CALL OResultSet::cancelRowUpdates()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::cancelRowUpdates");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::cancelRowUpdates", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::cancelRowUpdates", *this);
@ -826,7 +771,6 @@ void SAL_CALL OResultSet::cancelRowUpdates()
void SAL_CALL OResultSet::moveToInsertRow() void SAL_CALL OResultSet::moveToInsertRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::moveToInsertRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -837,7 +781,6 @@ void SAL_CALL OResultSet::moveToInsertRow()
void SAL_CALL OResultSet::moveToCurrentRow() void SAL_CALL OResultSet::moveToCurrentRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::moveToCurrentRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
} }
@ -845,7 +788,6 @@ void SAL_CALL OResultSet::moveToCurrentRow()
void SAL_CALL OResultSet::updateNull(sal_Int32 column) void SAL_CALL OResultSet::updateNull(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateNull");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -855,7 +797,6 @@ void SAL_CALL OResultSet::updateNull(sal_Int32 column)
void SAL_CALL OResultSet::updateBoolean(sal_Int32 column, sal_Bool /* x */) void SAL_CALL OResultSet::updateBoolean(sal_Int32 column, sal_Bool /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateBoolean");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -865,7 +806,6 @@ void SAL_CALL OResultSet::updateBoolean(sal_Int32 column, sal_Bool /* x */)
void SAL_CALL OResultSet::updateByte(sal_Int32 column, sal_Int8 /* x */) void SAL_CALL OResultSet::updateByte(sal_Int32 column, sal_Int8 /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateByte");
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkColumnIndex(column); checkColumnIndex(column);
@ -875,7 +815,6 @@ void SAL_CALL OResultSet::updateByte(sal_Int32 column, sal_Int8 /* x */)
void SAL_CALL OResultSet::updateShort(sal_Int32 column, sal_Int16 /* x */) void SAL_CALL OResultSet::updateShort(sal_Int32 column, sal_Int16 /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateShort");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -885,7 +824,6 @@ void SAL_CALL OResultSet::updateShort(sal_Int32 column, sal_Int16 /* x */)
void SAL_CALL OResultSet::updateInt(sal_Int32 column, sal_Int32 /* x */) void SAL_CALL OResultSet::updateInt(sal_Int32 column, sal_Int32 /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateInt");
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkColumnIndex(column); checkColumnIndex(column);
@ -895,7 +833,6 @@ void SAL_CALL OResultSet::updateInt(sal_Int32 column, sal_Int32 /* x */)
void SAL_CALL OResultSet::updateLong(sal_Int32 column, sal_Int64 /* x */) void SAL_CALL OResultSet::updateLong(sal_Int32 column, sal_Int64 /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateLong");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -905,7 +842,6 @@ void SAL_CALL OResultSet::updateLong(sal_Int32 column, sal_Int64 /* x */)
void SAL_CALL OResultSet::updateFloat(sal_Int32 column, float /* x */) void SAL_CALL OResultSet::updateFloat(sal_Int32 column, float /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateFloat");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -915,7 +851,6 @@ void SAL_CALL OResultSet::updateFloat(sal_Int32 column, float /* x */)
void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */) void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateDouble");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -925,7 +860,6 @@ void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */)
void SAL_CALL OResultSet::updateString(sal_Int32 column, const rtl::OUString& /* x */) void SAL_CALL OResultSet::updateString(sal_Int32 column, const rtl::OUString& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateString");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -935,7 +869,6 @@ void SAL_CALL OResultSet::updateString(sal_Int32 column, const rtl::OUString& /*
void SAL_CALL OResultSet::updateBytes(sal_Int32 column, const Sequence< sal_Int8 >& /* x */) void SAL_CALL OResultSet::updateBytes(sal_Int32 column, const Sequence< sal_Int8 >& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateBytes");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -945,7 +878,6 @@ void SAL_CALL OResultSet::updateBytes(sal_Int32 column, const Sequence< sal_Int8
void SAL_CALL OResultSet::updateDate(sal_Int32 column, const Date& /* x */) void SAL_CALL OResultSet::updateDate(sal_Int32 column, const Date& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateDate");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -955,7 +887,6 @@ void SAL_CALL OResultSet::updateDate(sal_Int32 column, const Date& /* x */)
void SAL_CALL OResultSet::updateTime(sal_Int32 column, const Time& /* x */) void SAL_CALL OResultSet::updateTime(sal_Int32 column, const Time& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateTime");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -965,7 +896,6 @@ void SAL_CALL OResultSet::updateTime(sal_Int32 column, const Time& /* x */)
void SAL_CALL OResultSet::updateTimestamp(sal_Int32 column, const DateTime& /* x */) void SAL_CALL OResultSet::updateTimestamp(sal_Int32 column, const DateTime& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateTimestamp");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -976,7 +906,6 @@ void SAL_CALL OResultSet::updateBinaryStream(sal_Int32 column, const Reference<
sal_Int32 /* length */) sal_Int32 /* length */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateBinaryStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -987,7 +916,6 @@ void SAL_CALL OResultSet::updateCharacterStream(sal_Int32 column, const Referenc
sal_Int32 /* length */) sal_Int32 /* length */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateCharacterStream");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -997,7 +925,6 @@ void SAL_CALL OResultSet::updateCharacterStream(sal_Int32 column, const Referenc
void SAL_CALL OResultSet::refreshRow() void SAL_CALL OResultSet::refreshRow()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::refreshRow");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::refreshRow", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::refreshRow", *this);
@ -1006,7 +933,6 @@ void SAL_CALL OResultSet::refreshRow()
void SAL_CALL OResultSet::updateObject(sal_Int32 column, const Any& /* x */) void SAL_CALL OResultSet::updateObject(sal_Int32 column, const Any& /* x */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateObject");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -1016,7 +942,6 @@ void SAL_CALL OResultSet::updateObject(sal_Int32 column, const Any& /* x */)
void SAL_CALL OResultSet::updateNumericObject(sal_Int32 column, const Any& /* x */, sal_Int32 /* scale */) void SAL_CALL OResultSet::updateNumericObject(sal_Int32 column, const Any& /* x */, sal_Int32 /* scale */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::updateNumericObject");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
checkColumnIndex(column); checkColumnIndex(column);
@ -1027,7 +952,6 @@ void SAL_CALL OResultSet::updateNumericObject(sal_Int32 column, const Any& /* x
Any SAL_CALL OResultSet::getBookmark() Any SAL_CALL OResultSet::getBookmark()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getBookmark");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
Any aRet = Any(); Any aRet = Any();
@ -1041,7 +965,6 @@ Any SAL_CALL OResultSet::getBookmark()
sal_Bool SAL_CALL OResultSet::moveToBookmark(const Any& /* bookmark */) sal_Bool SAL_CALL OResultSet::moveToBookmark(const Any& /* bookmark */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::moveToBookmark");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -1051,7 +974,6 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark(const Any& /* bookmark */)
sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark(const Any& /* bookmark */, sal_Int32 /* rows */) sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark(const Any& /* bookmark */, sal_Int32 /* rows */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::moveRelativeToBookmark");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -1062,7 +984,6 @@ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark(const Any& /* bookmark */,
sal_Int32 SAL_CALL OResultSet::compareBookmarks(const Any& /* n1 */, const Any& /* n2 */) sal_Int32 SAL_CALL OResultSet::compareBookmarks(const Any& /* n1 */, const Any& /* n2 */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::compareBookmarks");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@ -1074,14 +995,12 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks(const Any& /* n1 */, const Any&
sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks() sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::hasOrderedBookmarks");
return false; return false;
} }
sal_Int32 SAL_CALL OResultSet::hashBookmark(const Any& /* bookmark */) sal_Int32 SAL_CALL OResultSet::hashBookmark(const Any& /* bookmark */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::hashBookmark");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::hashBookmark", *this); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::hashBookmark", *this);
return 0; return 0;
} }
@ -1090,7 +1009,6 @@ sal_Int32 SAL_CALL OResultSet::hashBookmark(const Any& /* bookmark */)
Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows(const Sequence< Any >& /* rows */) Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows(const Sequence< Any >& /* rows */)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::deleteRows");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(OResultSet_BASE::rBHelper.bDisposed); checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
Sequence< sal_Int32 > aRet = Sequence< sal_Int32 >(); Sequence< sal_Int32 > aRet = Sequence< sal_Int32 >();
@ -1101,7 +1019,6 @@ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows(const Sequence< Any >& /*
IPropertyArrayHelper * OResultSet::createArrayHelper() const IPropertyArrayHelper * OResultSet::createArrayHelper() const
{ {
OSL_TRACE("OResultSet::createArrayHelper");
Sequence< Property > aProps(5); Sequence< Property > aProps(5);
Property* pProperties = aProps.getArray(); Property* pProperties = aProps.getArray();
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
@ -1119,7 +1036,6 @@ IPropertyArrayHelper * OResultSet::createArrayHelper() const
IPropertyArrayHelper & OResultSet::getInfoHelper() IPropertyArrayHelper & OResultSet::getInfoHelper()
{ {
OSL_TRACE("OResultSet::getInfoHelper");
return *getArrayHelper(); return *getArrayHelper();
} }
@ -1129,7 +1045,6 @@ sal_Bool OResultSet::convertFastPropertyValue(Any & /* rConvertedValue */,
const Any& /* rValue */) const Any& /* rValue */)
throw (css::lang::IllegalArgumentException) throw (css::lang::IllegalArgumentException)
{ {
OSL_TRACE("OResultSet::convertFastPropertyValue");
switch (nHandle) { switch (nHandle) {
case PROPERTY_ID_ISBOOKMARKABLE: case PROPERTY_ID_ISBOOKMARKABLE:
case PROPERTY_ID_CURSORNAME: case PROPERTY_ID_CURSORNAME:
@ -1147,7 +1062,6 @@ sal_Bool OResultSet::convertFastPropertyValue(Any & /* rConvertedValue */,
void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */) void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */)
throw (Exception, std::exception) throw (Exception, std::exception)
{ {
OSL_TRACE("OResultSet::setFastPropertyValue_NoBroadcast");
switch (nHandle) { switch (nHandle) {
case PROPERTY_ID_ISBOOKMARKABLE: case PROPERTY_ID_ISBOOKMARKABLE:
case PROPERTY_ID_CURSORNAME: case PROPERTY_ID_CURSORNAME:
@ -1165,7 +1079,6 @@ void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any&
void OResultSet::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const void OResultSet::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const
{ {
OSL_TRACE("OResultSet::getFastPropertyValue");
switch (nHandle) { switch (nHandle) {
case PROPERTY_ID_ISBOOKMARKABLE: case PROPERTY_ID_ISBOOKMARKABLE:
_rValue <<= false; _rValue <<= false;
@ -1193,27 +1106,23 @@ void OResultSet::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const
void SAL_CALL OResultSet::acquire() void SAL_CALL OResultSet::acquire()
throw() throw()
{ {
OSL_TRACE("OResultSet::acquire");
OResultSet_BASE::acquire(); OResultSet_BASE::acquire();
} }
void SAL_CALL OResultSet::release() void SAL_CALL OResultSet::release()
throw() throw()
{ {
OSL_TRACE("OResultSet::release");
OResultSet_BASE::release(); OResultSet_BASE::release();
} }
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo() throw(css::uno::RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSet::getPropertySetInfo");
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
} }
void OResultSet::checkColumnIndex(sal_Int32 index) void OResultSet::checkColumnIndex(sal_Int32 index)
throw (SQLException, RuntimeException) throw (SQLException, RuntimeException)
{ {
OSL_TRACE("OResultSet::checkColumnIndex");
if ((index < 1 || index > (int) fieldCount)) { if ((index < 1 || index > (int) fieldCount)) {
/* static object for efficiency or thread safety is a problem ? */ /* static object for efficiency or thread safety is a problem ? */
rtl::OUString buf( "index out of range" ); rtl::OUString buf( "index out of range" );

View File

@ -36,8 +36,6 @@ OResultSetMetaData::~OResultSetMetaData()
sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize(sal_Int32 column) sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnDisplaySize");
try { try {
meta->getColumnDisplaySize(column); meta->getColumnDisplaySize(column);
} catch (const sql::MethodNotImplementedException &) { } catch (const sql::MethodNotImplementedException &) {
@ -51,7 +49,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize(sal_Int32 column)
sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column) sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnType");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -72,7 +69,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column)
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount() sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnCount");
try { try {
return meta->getColumnCount(); return meta->getColumnCount();
} catch (const sql::MethodNotImplementedException &) { } catch (const sql::MethodNotImplementedException &) {
@ -86,7 +82,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount()
sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isCaseSensitive");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -102,7 +97,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getSchemaName");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -118,7 +112,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnName");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -134,7 +127,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getTableName");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -150,7 +142,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getCatalogName");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -166,7 +157,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnTypeName");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -182,7 +172,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnLabel");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -198,7 +187,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column)
rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getColumnServiceName");
checkColumnIndex(column); checkColumnIndex(column);
rtl::OUString aRet = rtl::OUString(); rtl::OUString aRet = rtl::OUString();
@ -208,7 +196,6 @@ rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column
sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isCurrency");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -224,7 +211,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isAutoIncrement");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -240,7 +226,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isSigned");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -256,7 +241,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column)
sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column) sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getPrecision");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -272,7 +256,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column)
sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column) sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column)
throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::getScale");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
return meta->getScale(column); return meta->getScale(column);
@ -287,7 +270,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column)
sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column) sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isNullable");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -303,7 +285,6 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isSearchable");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -319,7 +300,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isReadOnly");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -335,7 +315,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isDefinitelyWritable");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -351,7 +330,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column)
sal_Bool SAL_CALL OResultSetMetaData::isWritable(sal_Int32 column) sal_Bool SAL_CALL OResultSetMetaData::isWritable(sal_Int32 column)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OResultSetMetaData::isWritable");
checkColumnIndex(column); checkColumnIndex(column);
try { try {
@ -367,7 +345,6 @@ sal_Bool SAL_CALL OResultSetMetaData::isWritable(sal_Int32 column)
void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex) void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex)
throw (SQLException, RuntimeException) throw (SQLException, RuntimeException)
{ {
OSL_TRACE("OResultSetMetaData::checkColumnIndex");
if (columnIndex < 1 || columnIndex > (sal_Int32) meta->getColumnCount()) { if (columnIndex < 1 || columnIndex > (sal_Int32) meta->getColumnCount()) {
rtl::OUStringBuffer buf; rtl::OUStringBuffer buf;

View File

@ -60,18 +60,15 @@ OCommonStatement::OCommonStatement(OConnection* _pConnection, sql::Statement *_c
,m_pConnection(_pConnection) ,m_pConnection(_pConnection)
,cppStatement(_cppStatement) ,cppStatement(_cppStatement)
{ {
OSL_TRACE("OCommonStatement::OCommonStatement");
m_pConnection->acquire(); m_pConnection->acquire();
} }
OCommonStatement::~OCommonStatement() OCommonStatement::~OCommonStatement()
{ {
OSL_TRACE("OCommonStatement::~OCommonStatement");
} }
void OCommonStatement::disposeResultSet() void OCommonStatement::disposeResultSet()
{ {
OSL_TRACE("OCommonStatement::disposeResultSet");
// free the cursor if alive // free the cursor if alive
delete cppStatement; delete cppStatement;
cppStatement = nullptr; cppStatement = nullptr;
@ -79,7 +76,6 @@ void OCommonStatement::disposeResultSet()
void OCommonStatement::disposing() void OCommonStatement::disposing()
{ {
OSL_TRACE("OCommonStatement::disposing");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
disposeResultSet(); disposeResultSet();
@ -97,7 +93,6 @@ void OCommonStatement::disposing()
Any SAL_CALL OCommonStatement::queryInterface(const Type & rType) Any SAL_CALL OCommonStatement::queryInterface(const Type & rType)
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::queryInterface");
Any aRet = OCommonStatement_IBase::queryInterface(rType); Any aRet = OCommonStatement_IBase::queryInterface(rType);
if (!aRet.hasValue()) { if (!aRet.hasValue()) {
aRet = OPropertySetHelper::queryInterface(rType); aRet = OPropertySetHelper::queryInterface(rType);
@ -108,7 +103,6 @@ Any SAL_CALL OCommonStatement::queryInterface(const Type & rType)
Sequence< Type > SAL_CALL OCommonStatement::getTypes() Sequence< Type > SAL_CALL OCommonStatement::getTypes()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getTypes");
::cppu::OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(), ::cppu::OTypeCollection aTypes( cppu::UnoType<XMultiPropertySet>::get(),
cppu::UnoType<XFastPropertySet>::get(), cppu::UnoType<XFastPropertySet>::get(),
cppu::UnoType<XPropertySet>::get()); cppu::UnoType<XPropertySet>::get());
@ -119,7 +113,6 @@ Sequence< Type > SAL_CALL OCommonStatement::getTypes()
void SAL_CALL OCommonStatement::cancel() void SAL_CALL OCommonStatement::cancel()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::cancel");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
// cancel the current sql statement // cancel the current sql statement
@ -128,7 +121,6 @@ void SAL_CALL OCommonStatement::cancel()
void SAL_CALL OCommonStatement::close() void SAL_CALL OCommonStatement::close()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::close");
/* /*
We need a block for the checkDisposed call. We need a block for the checkDisposed call.
After the check we can call dispose() as we are not under lock ?? After the check we can call dispose() as we are not under lock ??
@ -143,14 +135,12 @@ void SAL_CALL OCommonStatement::close()
void SAL_CALL OStatement::clearBatch() void SAL_CALL OStatement::clearBatch()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OStatement::clearBatch");
// if you support batches clear it here // if you support batches clear it here
} }
sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql) sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::execute");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement( sql ); const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement( sql );
@ -167,8 +157,6 @@ sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql)
Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const rtl::OUString& sql) Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const rtl::OUString& sql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::executeQuery");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql);
@ -187,7 +175,6 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const rtl::OUStr
Reference< XConnection > SAL_CALL OCommonStatement::getConnection() Reference< XConnection > SAL_CALL OCommonStatement::getConnection()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getConnection");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -198,14 +185,12 @@ Reference< XConnection > SAL_CALL OCommonStatement::getConnection()
sal_Int32 SAL_CALL OCommonStatement::getUpdateCount() sal_Int32 SAL_CALL OCommonStatement::getUpdateCount()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getUpdateCount");
return 0; return 0;
} }
Any SAL_CALL OStatement::queryInterface(const Type & rType) Any SAL_CALL OStatement::queryInterface(const Type & rType)
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OStatement::queryInterface");
Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this)); Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
if (!aRet.hasValue()) { if (!aRet.hasValue()) {
aRet = OCommonStatement::queryInterface(rType); aRet = OCommonStatement::queryInterface(rType);
@ -216,7 +201,6 @@ Any SAL_CALL OStatement::queryInterface(const Type & rType)
void SAL_CALL OStatement::addBatch(const rtl::OUString& sql) void SAL_CALL OStatement::addBatch(const rtl::OUString& sql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OStatement::addBatch");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -226,7 +210,6 @@ void SAL_CALL OStatement::addBatch(const rtl::OUString& sql)
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch() Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OStatement::executeBatch");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -237,7 +220,6 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const rtl::OUString& sql) sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const rtl::OUString& sql)
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::executeUpdate");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql); const rtl::OUString sSqlStatement = m_pConnection->transFormPreparedStatement(sql);
@ -254,7 +236,6 @@ sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const rtl::OUString& sql)
Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet() Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getResultSet");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -272,7 +253,6 @@ Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet()
sal_Bool SAL_CALL OCommonStatement::getMoreResults() sal_Bool SAL_CALL OCommonStatement::getMoreResults()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getMoreResults");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -284,7 +264,6 @@ sal_Bool SAL_CALL OCommonStatement::getMoreResults()
Any SAL_CALL OCommonStatement::getWarnings() Any SAL_CALL OCommonStatement::getWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getWarnings");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -294,7 +273,6 @@ Any SAL_CALL OCommonStatement::getWarnings()
void SAL_CALL OCommonStatement::clearWarnings() void SAL_CALL OCommonStatement::clearWarnings()
throw(SQLException, RuntimeException, std::exception) throw(SQLException, RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::clearWarnings");
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed); checkDisposed(rBHelper.bDisposed);
@ -303,7 +281,6 @@ void SAL_CALL OCommonStatement::clearWarnings()
::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const ::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const
{ {
OSL_TRACE("OCommonStatement::createArrayHelper");
// this properties are define by the service statement // this properties are define by the service statement
// they must in alphabetic order // they must in alphabetic order
Sequence< Property > aProps(10); Sequence< Property > aProps(10);
@ -325,7 +302,6 @@ void SAL_CALL OCommonStatement::clearWarnings()
::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper() ::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper()
{ {
OSL_TRACE("OCommonStatement::getInfoHelper");
return *getArrayHelper(); return *getArrayHelper();
} }
@ -334,7 +310,6 @@ sal_Bool OCommonStatement::convertFastPropertyValue(
sal_Int32 /* nHandle */, const Any& /* rValue */) sal_Int32 /* nHandle */, const Any& /* rValue */)
throw (IllegalArgumentException) throw (IllegalArgumentException)
{ {
OSL_TRACE("OCommonStatement::convertFastPropertyValue");
bool bConverted = false; bool bConverted = false;
// here we have to try to convert // here we have to try to convert
return bConverted; return bConverted;
@ -343,7 +318,6 @@ sal_Bool OCommonStatement::convertFastPropertyValue(
void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */) void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */)
throw (Exception, std::exception) throw (Exception, std::exception)
{ {
OSL_TRACE("OCommonStatement::setFastPropertyValue_NoBroadcast");
// set the value to what ever is necessary // set the value to what ever is necessary
switch (nHandle) { switch (nHandle) {
case PROPERTY_ID_QUERYTIMEOUT: case PROPERTY_ID_QUERYTIMEOUT:
@ -363,7 +337,6 @@ void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const
void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const
{ {
OSL_TRACE("OCommonStatement::getFastPropertyValue");
switch (nHandle) { switch (nHandle) {
case PROPERTY_ID_QUERYTIMEOUT: case PROPERTY_ID_QUERYTIMEOUT:
case PROPERTY_ID_MAXFIELDSIZE: case PROPERTY_ID_MAXFIELDSIZE:
@ -405,35 +378,30 @@ sal_Bool OStatement::supportsService(rtl::OUString const & ServiceName)
void SAL_CALL OCommonStatement::acquire() void SAL_CALL OCommonStatement::acquire()
throw() throw()
{ {
OSL_TRACE("OCommonStatement::acquire");
OCommonStatement_IBase::acquire(); OCommonStatement_IBase::acquire();
} }
void SAL_CALL OCommonStatement::release() void SAL_CALL OCommonStatement::release()
throw() throw()
{ {
OSL_TRACE("OCommonStatement::release");
release_ChildImpl(); release_ChildImpl();
} }
void SAL_CALL OStatement::acquire() void SAL_CALL OStatement::acquire()
throw() throw()
{ {
OSL_TRACE("OStatement::acquire");
OCommonStatement::acquire(); OCommonStatement::acquire();
} }
void SAL_CALL OStatement::release() void SAL_CALL OStatement::release()
throw() throw()
{ {
OSL_TRACE("OStatement::release");
OCommonStatement::release(); OCommonStatement::release();
} }
Reference< css::beans::XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo() Reference< css::beans::XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
OSL_TRACE("OCommonStatement::getPropertySetInfo");
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
} }

View File

@ -409,7 +409,7 @@ static EnhancedCustomShapeParameter GetAdjCoordinate( CustomShapeProperties& rCu
} }
else else
{ {
OSL_TRACE("error: unhandled value '%s'", OUStringToOString( rValue, RTL_TEXTENCODING_ASCII_US ).getStr()); SAL_WARN("oox", "error: unhandled value " << rValue);
aRet.Value = Any( rValue ); aRet.Value = Any( rValue );
} }
} }

View File

@ -227,16 +227,13 @@ public:
case DGM_TOKEN( extLst ): case DGM_TOKEN( extLst ):
return nullptr; return nullptr;
case DGM_TOKEN( prSet ): case DGM_TOKEN( prSet ):
OSL_TRACE( "diagram property set for point");
return new PropertiesContext( *this, mrPoint, rAttribs ); return new PropertiesContext( *this, mrPoint, rAttribs );
case DGM_TOKEN( spPr ): case DGM_TOKEN( spPr ):
OSL_TRACE( "shape props for point");
if( !mrPoint.mpShape ) if( !mrPoint.mpShape )
mrPoint.mpShape.reset( new Shape() ); mrPoint.mpShape.reset( new Shape() );
return new ShapePropertiesContext( *this, *(mrPoint.mpShape) ); return new ShapePropertiesContext( *this, *(mrPoint.mpShape) );
case DGM_TOKEN( t ): case DGM_TOKEN( t ):
{ {
OSL_TRACE( "shape text body for point");
TextBodyPtr xTextBody( new TextBody ); TextBodyPtr xTextBody( new TextBody );
if( !mrPoint.mpShape ) if( !mrPoint.mpShape )
mrPoint.mpShape.reset( new Shape() ); mrPoint.mpShape.reset( new Shape() );

View File

@ -73,10 +73,10 @@ DiagramData::DiagramData()
void DiagramData::dump() void DiagramData::dump()
{ {
OSL_TRACE("Dgm: DiagramData # of cnx: %zu", maConnections.size() ); SAL_INFO("oox", "Dgm: DiagramData # of cnx: " << maConnections.size() );
std::for_each( maConnections.begin(), maConnections.end(), std::for_each( maConnections.begin(), maConnections.end(),
[] (dgm::Connection & rConnection) { rConnection.dump(); } ); [] (dgm::Connection & rConnection) { rConnection.dump(); } );
OSL_TRACE("Dgm: DiagramData # of pt: %zu", maPoints.size() ); SAL_INFO("oox", "Dgm: DiagramData # of pt: " << maPoints.size() );
std::for_each( maPoints.begin(), maPoints.end(), std::for_each( maPoints.begin(), maPoints.end(),
[] (dgm::Point & rPoint) { rPoint.dump(); } ); [] (dgm::Point & rPoint) { rPoint.dump(); } );
} }

View File

@ -37,7 +37,6 @@ DiagramDefinitionContext::DiagramDefinitionContext( ContextHandler2Helper& rPare
: ContextHandler2( rParent ) : ContextHandler2( rParent )
, mpLayout( pLayout ) , mpLayout( pLayout )
{ {
OSL_TRACE( "OOX: DiagramDefinitionContext::DiagramDefinitionContext()" );
mpLayout->setDefStyle( rAttributes.getString( XML_defStyle ).get() ); mpLayout->setDefStyle( rAttributes.getString( XML_defStyle ).get() );
OUString sValue = rAttributes.getString( XML_minVer ).get(); OUString sValue = rAttributes.getString( XML_minVer ).get();
if( sValue.isEmpty() ) if( sValue.isEmpty() )

View File

@ -80,9 +80,7 @@ void ConditionAttr::loadFromXAttr( const Reference< XFastAttributeList >& xAttr
void LayoutAtom::dump(int level) void LayoutAtom::dump(int level)
{ {
OSL_TRACE( "level = %d - %s of type %s", level, SAL_INFO("oox", "level = " << level << " - " << msName << " of type " << typeid(*this).name() );
OUSTRING_TO_CSTR( msName ),
typeid(*this).name() );
const std::vector<LayoutAtomPtr>& rChildren=getChildren(); const std::vector<LayoutAtomPtr>& rChildren=getChildren();
std::for_each( rChildren.begin(), rChildren.end(), std::for_each( rChildren.begin(), rChildren.end(),
[level] (LayoutAtomPtr const& pAtom) { pAtom->dump(level + 1); } ); [level] (LayoutAtomPtr const& pAtom) { pAtom->dump(level + 1); } );
@ -469,34 +467,14 @@ bool LayoutNode::setupShape( const ShapePtr& rShape, const Diagram& rDgm, sal_uI
// now, but docs are a bit unclear on this // now, but docs are a bit unclear on this
if( !msStyleLabel.isEmpty() ) if( !msStyleLabel.isEmpty() )
{ {
SAL_INFO(
"oox.drawingml", "setting style with label " << msStyleLabel);
const DiagramQStyleMap::const_iterator aStyle=rDgm.getStyles().find(msStyleLabel); const DiagramQStyleMap::const_iterator aStyle=rDgm.getStyles().find(msStyleLabel);
if( aStyle != rDgm.getStyles().end() ) if( aStyle != rDgm.getStyles().end() )
{ {
rShape->getShapeStyleRefs()[XML_fillRef] = aStyle->second.maFillStyle; rShape->getShapeStyleRefs()[XML_fillRef] = aStyle->second.maFillStyle;
SAL_INFO(
"oox.drawingml",
"added fill style with id "
<< aStyle->second.maFillStyle.mnThemedIdx);
rShape->getShapeStyleRefs()[XML_lnRef] = aStyle->second.maLineStyle; rShape->getShapeStyleRefs()[XML_lnRef] = aStyle->second.maLineStyle;
SAL_INFO(
"oox.drawingml",
"added line style with id "
<< aStyle->second.maLineStyle.mnThemedIdx);
rShape->getShapeStyleRefs()[XML_effectRef] = aStyle->second.maEffectStyle; rShape->getShapeStyleRefs()[XML_effectRef] = aStyle->second.maEffectStyle;
SAL_INFO(
"oox.drawingml",
"added effect style with id "
<< aStyle->second.maEffectStyle.mnThemedIdx);
rShape->getShapeStyleRefs()[XML_fontRef] = aStyle->second.maTextStyle; rShape->getShapeStyleRefs()[XML_fontRef] = aStyle->second.maTextStyle;
SAL_INFO(
"oox.drawingml",
"added fontref style with id "
<< aStyle->second.maTextStyle.mnThemedIdx);
Color aColor=aStyle->second.maTextStyle.maPhClr; Color aColor=aStyle->second.maTextStyle.maPhClr;
OSL_TRACE("added fontref color with alpha %d", aColor.getTransparency() );
} }
const DiagramColorMap::const_iterator aColor=rDgm.getColors().find(msStyleLabel); const DiagramColorMap::const_iterator aColor=rDgm.getColors().find(msStyleLabel);
@ -665,8 +643,7 @@ void ShapeCreationVisitor::visit(LayoutNode& rAtom)
} }
else else
{ {
OSL_TRACE("ShapeCreationVisitor::visit: no shape set while processing layoutnode named %s", SAL_WARN("oox", "ShapeCreationVisitor::visit: no shape set while processing layoutnode named " << rAtom.getName() );
OUSTRING_TO_CSTR( rAtom.getName() ) );
} }
// set new parent for children // set new parent for children

View File

@ -120,7 +120,7 @@ public:
} }
else else
{ {
OSL_TRACE( "ignoring second else clause" ); SAL_WARN("oox", "ignoring second else clause" );
} }
break; break;
default: default:
@ -269,7 +269,7 @@ LayoutNodeContext::onCreateContext( ::sal_Int32 aElement,
} }
else else
{ {
OSL_TRACE( "OOX: encountered a shape in a non layoutNode context" ); SAL_WARN("oox", "OOX: encountered a shape in a non layoutNode context" );
} }
break; break;
} }
@ -324,7 +324,7 @@ LayoutNodeContext::onCreateContext( ::sal_Int32 aElement,
} }
else else
{ {
OSL_TRACE( "OOX: encountered a varLst in a non layoutNode context" ); SAL_WARN("oox", "OOX: encountered a varLst in a non layoutNode context" );
} }
break; break;
} }

View File

@ -46,11 +46,9 @@ HyperLinkContext::HyperLinkContext( ContextHandler2Helper& rParent,
OUString aRelId = rAttribs.getString( R_TOKEN( id ) ).get(); OUString aRelId = rAttribs.getString( R_TOKEN( id ) ).get();
if ( !aRelId.isEmpty() ) if ( !aRelId.isEmpty() )
{ {
OSL_TRACE("OOX: URI rId %s", OUStringToOString (aRelId, RTL_TEXTENCODING_UTF8).pData->buffer);
sHref = getRelations().getExternalTargetFromRelId( aRelId ); sHref = getRelations().getExternalTargetFromRelId( aRelId );
if( !sHref.isEmpty() ) if( !sHref.isEmpty() )
{ {
OSL_TRACE("OOX: URI href %s", OUStringToOString (sHref, RTL_TEXTENCODING_UTF8).pData->buffer);
sURL = getFilter().getAbsoluteUrl( sHref ); sURL = getFilter().getAbsoluteUrl( sHref );
} }
else else

View File

@ -69,7 +69,7 @@ void lclCreateTextFields( std::list< Reference< XTextField > > & aFields,
bool bIsDate = true; bool bIsDate = true;
int idx = p.toInt32(); int idx = p.toInt32();
sal_uInt16 nNumFmt; sal_uInt16 nNumFmt;
// OSL_TRACE( "OOX: p = %s, %d", p.pData->buffer, idx ); // SAL_WARNx("oox", "OOX: p = %s, %d", p.pData->buffer, idx );
xIface = xFactory->createInstance( "com.sun.star.text.TextField.DateTime" ); xIface = xFactory->createInstance( "com.sun.star.text.TextField.DateTime" );
aFields.push_back( Reference< XTextField > ( xIface, UNO_QUERY ) ); aFields.push_back( Reference< XTextField > ( xIface, UNO_QUERY ) );
Reference< XPropertySet > xProps( xIface, UNO_QUERY_THROW ); Reference< XPropertySet > xProps( xIface, UNO_QUERY_THROW );
@ -132,7 +132,7 @@ void lclCreateTextFields( std::list< Reference< XTextField > > & aFields,
} }
catch(Exception & e) catch(Exception & e)
{ {
OSL_TRACE( "Exception %s", OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); SAL_WARN("oox", "Exception " << e.Message );
} }
} }
else if ( sType == "slidenum" ) else if ( sType == "slidenum" )
@ -236,7 +236,7 @@ sal_Int32 TextField::insertAt(
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_TRACE("OOX: TextField::insertAt() exception"); SAL_WARN("oox", "OOX: TextField::insertAt() exception");
} }
return nCharHeight; return nCharHeight;

View File

@ -120,7 +120,7 @@ void BulletList::setSuffixMinusRight()
void BulletList::setType( sal_Int32 nType ) void BulletList::setType( sal_Int32 nType )
{ {
OSL_ASSERT((nType & sal_Int32(0xFFFF0000))==0); OSL_ASSERT((nType & sal_Int32(0xFFFF0000))==0);
// OSL_TRACE( "OOX: set list numbering type %d", nType); // SAL_WARNx("oox", "OOX: set list numbering type %d", nType);
switch( nType ) switch( nType )
{ {
case XML_alphaLcParenBoth: case XML_alphaLcParenBoth:

View File

@ -220,7 +220,7 @@ ContextHandlerRef TextParagraphPropertiesContext::onCreateContext( sal_Int32 aEl
} }
catch(SAXException& /* e */ ) catch(SAXException& /* e */ )
{ {
OSL_TRACE("OOX: SAXException in XML_buAutoNum"); SAL_WARN("oox", "OOX: SAXException in XML_buAutoNum");
} }
break; break;
} }
@ -232,7 +232,7 @@ ContextHandlerRef TextParagraphPropertiesContext::onCreateContext( sal_Int32 aEl
} }
catch(SAXException& /* e */) catch(SAXException& /* e */)
{ {
OSL_TRACE("OOX: SAXException in XML_buChar"); SAL_WARN("oox", "OOX: SAXException in XML_buChar");
} }
break; break;
case A_TOKEN( buBlip ): // CT_TextBlipBullet case A_TOKEN( buBlip ): // CT_TextBlipBullet

View File

@ -75,7 +75,7 @@ sal_Int32 TextRun::insertAt(
{ {
if( mbIsLineBreak ) if( mbIsLineBreak )
{ {
OSL_TRACE( "OOX: TextRun::insertAt() insert line break" ); SAL_WARN("oox", "OOX: TextRun::insertAt() insert line break" );
xText->insertControlCharacter( xStart, ControlCharacter::LINE_BREAK, false ); xText->insertControlCharacter( xStart, ControlCharacter::LINE_BREAK, false );
} }
else else
@ -138,7 +138,7 @@ sal_Int32 TextRun::insertAt(
} }
else else
{ {
OSL_TRACE( "OOX: URL field" ); SAL_WARN("oox", "OOX: URL field" );
Reference< XMultiServiceFactory > xFactory( rFilterBase.getModel(), UNO_QUERY ); Reference< XMultiServiceFactory > xFactory( rFilterBase.getModel(), UNO_QUERY );
Reference< XTextField > xField( xFactory->createInstance( "com.sun.star.text.TextField.URL" ), UNO_QUERY ); Reference< XTextField > xField( xFactory->createInstance( "com.sun.star.text.TextField.URL" ), UNO_QUERY );
if( xField.is() ) if( xField.is() )
@ -169,14 +169,14 @@ sal_Int32 TextRun::insertAt(
} }
else else
{ {
OSL_TRACE( "OOX: URL field couldn't be created" ); SAL_WARN("oox", "OOX: URL field couldn't be created" );
xText->insertString( xStart, getText(), false ); xText->insertString( xStart, getText(), false );
} }
} }
} }
catch( const Exception& ) catch( const Exception& )
{ {
OSL_TRACE("OOX: TextRun::insertAt() exception"); SAL_WARN("oox", "OOX: TextRun::insertAt() exception");
} }
return nCharHeight; return nCharHeight;

View File

@ -903,7 +903,7 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic , bool bRelPathToMedia )
} }
else else
{ {
OSL_TRACE( "unhandled graphic type" ); SAL_WARN("oox", "unhandled graphic type" );
/*Earlier, even in case of unhandled graphic types we were /*Earlier, even in case of unhandled graphic types we were
proceeding to write the image, which would eventually proceeding to write the image, which would eventually
write an empty image with a zero size, and return a valid write an empty image with a zero size, and return a valid

View File

@ -1466,8 +1466,6 @@ ShapeExport& ShapeExport::WriteTextBox( const Reference< XInterface >& xIface, s
void ShapeExport::WriteTable( const Reference< XShape >& rXShape ) void ShapeExport::WriteTable( const Reference< XShape >& rXShape )
{ {
OSL_TRACE("write table");
Reference< XTable > xTable; Reference< XTable > xTable;
Reference< XPropertySet > xPropSet( rXShape, UNO_QUERY ); Reference< XPropertySet > xPropSet( rXShape, UNO_QUERY );
@ -1747,8 +1745,6 @@ ShapeExport& ShapeExport::WriteTableShape( const Reference< XShape >& xShape )
{ {
FSHelperPtr pFS = GetFS(); FSHelperPtr pFS = GetFS();
OSL_TRACE("write table shape");
pFS->startElementNS( mnXmlNamespace, XML_graphicFrame, FSEND ); pFS->startElementNS( mnXmlNamespace, XML_graphicFrame, FSEND );
pFS->startElementNS( mnXmlNamespace, XML_nvGraphicFramePr, FSEND ); pFS->startElementNS( mnXmlNamespace, XML_nvGraphicFramePr, FSEND );

View File

@ -2598,8 +2598,8 @@ HtmlTextBoxModel::importBinaryModel( BinaryInputStream& rInStrm )
OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() ); OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() );
// in msocximex ( where this is ported from, it appears *nothing* is read // in msocximex ( where this is ported from, it appears *nothing* is read
// from the control stream ), surely there is some useful info there ? // from the control stream ), surely there is some useful info there ?
OSL_TRACE("HtmlTextBoxModel::importBinaryModel - string contents of stream :"); SAL_WARNx("oox", "HtmlTextBoxModel::importBinaryModel - string contents of stream :");
OSL_TRACE("%s", OUStringToOString( sStringContents, RTL_TEXTENCODING_UTF8 ).getStr() ); SAL_WARNx("oox", "%s", OUStringToOString( sStringContents, RTL_TEXTENCODING_UTF8 ).getStr() );
#else #else
(void) rInStrm; (void) rInStrm;
#endif #endif

View File

@ -132,7 +132,7 @@ sal_Int32 PowerPointImport::getSchemeColor( sal_Int32 nToken ) const
} }
else else
{ {
OSL_TRACE("OOX: PowerPointImport::mpThemePtr is NULL"); SAL_WARN("oox", "OOX: PowerPointImport::mpThemePtr is NULL");
} }
} }
} }

View File

@ -316,7 +316,6 @@ void SlidePersist::hideShapesAsMasterShapes()
PPTShape* pPPTShape = dynamic_cast< PPTShape* >( (*aChildIter++).get() ); PPTShape* pPPTShape = dynamic_cast< PPTShape* >( (*aChildIter++).get() );
if (!pPPTShape) if (!pPPTShape)
continue; continue;
OSL_TRACE("hide shape with id: %s", OUStringToOString(pPPTShape->getId(), RTL_TEXTENCODING_UTF8 ).getStr());
pPPTShape->setHiddenMasterShape( true ); pPPTShape->setHiddenMasterShape( true );
} }
} }

View File

@ -294,7 +294,7 @@ namespace oox { namespace ppt {
mnTransitionType = TransitionType::BARWIPE; mnTransitionType = TransitionType::BARWIPE;
mnTransitionSubType = TransitionSubType::FADEOVERCOLOR; mnTransitionSubType = TransitionSubType::FADEOVERCOLOR;
} }
OSL_TRACE( "OOX: cut transition fallback." ); SAL_WARN("oox", "OOX: cut transition fallback." );
break; break;
case PPT_TOKEN( fade ): case PPT_TOKEN( fade ):
mnTransitionType = TransitionType::FADE; mnTransitionType = TransitionType::FADE;

View File

@ -188,10 +188,9 @@ namespace oox { namespace ppt {
OUString aString; OUString aString;
if( maTo >>= aString ) if( maTo >>= aString )
{ {
OSL_TRACE( "Magic conversion %s", OUSTRING_TO_CSTR( aString ) );
maTo = makeAny( aString == "visible" ); maTo = makeAny( aString == "visible" );
if( !maTo.has<sal_Bool>() ) if( !maTo.has<sal_Bool>() )
OSL_TRACE( "conversion failed" ); SAL_WARN("oox", "conversion failed" );
} }
mpNode->setTo( maTo ); mpNode->setTo( maTo );
} }
@ -295,7 +294,7 @@ namespace oox { namespace ppt {
mpNode->getNodeProperties()[ NP_COMMAND ] = makeAny((sal_Int16)nCommand); mpNode->getNodeProperties()[ NP_COMMAND ] = makeAny((sal_Int16)nCommand);
if( nCommand == EffectCommands::CUSTOM ) if( nCommand == EffectCommands::CUSTOM )
{ {
OSL_TRACE("OOX: CmdTimeNodeContext::endFastElement(), unknown command!"); SAL_WARN("oox", "OOX: CmdTimeNodeContext::endFastElement(), unknown command!");
aParamValue.Name = "UserDefined"; aParamValue.Name = "UserDefined";
aParamValue.Value <<= msCommand; aParamValue.Value <<= msCommand;
} }
@ -307,7 +306,7 @@ namespace oox { namespace ppt {
} }
catch( RuntimeException& ) catch( RuntimeException& )
{ {
OSL_TRACE( "OOX: Exception in CmdTimeNodeContext::endFastElement()" ); SAL_WARN("oox", "OOX: Exception in CmdTimeNodeContext::endFastElement()" );
} }
} }
} }
@ -982,7 +981,7 @@ namespace oox { namespace ppt {
break; break;
case PPT_TOKEN( video ): case PPT_TOKEN( video ):
nNodeType = AnimationNodeType::AUDIO; nNodeType = AnimationNodeType::AUDIO;
OSL_TRACE( "OOX: video requested, gave Audio instead" ); SAL_WARN("oox", "OOX: video requested, gave Audio instead" );
break; break;
default: default:

View File

@ -760,7 +760,6 @@ RegError ORegistry::closeKey(RegKeyHandle hKey)
else else
{ {
// closing modified RootKey, flush registry file. // closing modified RootKey, flush registry file.
OSL_TRACE("registry::ORegistry::closeKey(): flushing modified RootKey");
(void) m_file.flush(); (void) m_file.flush();
} }
pKey->setModified(false); pKey->setModified(false);

View File

@ -43,7 +43,6 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg,
OSL_PRECOND(result, "registry::tools::Options::checkArgument(): invalid arguments"); OSL_PRECOND(result, "registry::tools::Options::checkArgument(): invalid arguments");
if (result) if (result)
{ {
OSL_TRACE("registry::tools:Options::checkArgument(): \"%s\"", arg);
switch (arg[0]) switch (arg[0])
{ {
case '@': case '@':

View File

@ -1507,7 +1507,6 @@ bool OReportDefinition::WriteThroughComponent(
uno::Reference<io::XSeekable> xSeek(xStreamProp,uno::UNO_QUERY); uno::Reference<io::XSeekable> xSeek(xStreamProp,uno::UNO_QUERY);
if ( xSeek.is() ) if ( xSeek.is() )
{ {
OSL_TRACE("Length of stream %i",(int)xSeek->getPosition());
xSeek->seek(0); xSeek->seek(0);
} }

View File

@ -719,8 +719,6 @@ void OReportSection::fillControlModelSelection(::std::vector< uno::Reference< un
sal_Int8 OReportSection::AcceptDrop( const AcceptDropEvent& _rEvt ) sal_Int8 OReportSection::AcceptDrop( const AcceptDropEvent& _rEvt )
{ {
OSL_TRACE("AcceptDrop::DropEvent.Action %i", _rEvt.mnAction);
::Point aDropPos(_rEvt.maPosPixel); ::Point aDropPos(_rEvt.maPosPixel);
const MouseEvent aMouseEvt(aDropPos); const MouseEvent aMouseEvt(aDropPos);
if ( m_pFunc->isOverlapping(aMouseEvt) ) if ( m_pFunc->isOverlapping(aMouseEvt) )
@ -769,7 +767,6 @@ sal_Int8 OReportSection::AcceptDrop( const AcceptDropEvent& _rEvt )
sal_Int8 OReportSection::ExecuteDrop( const ExecuteDropEvent& _rEvt ) sal_Int8 OReportSection::ExecuteDrop( const ExecuteDropEvent& _rEvt )
{ {
OSL_TRACE("ExecuteDrop::DropEvent.Action %i", _rEvt.mnAction);
::Point aDropPos(PixelToLogic(_rEvt.maPosPixel)); ::Point aDropPos(PixelToLogic(_rEvt.maPosPixel));
const MouseEvent aMouseEvt(aDropPos); const MouseEvent aMouseEvt(aDropPos);
if ( m_pFunc->isOverlapping(aMouseEvt) ) if ( m_pFunc->isOverlapping(aMouseEvt) )

View File

@ -1060,7 +1060,6 @@ void OViewsWindow::BegDragObj(const Point& _aPnt, SdrHdl* _pHdl,const OSectionVi
// and create temporary objects on all other views at the same position // and create temporary objects on all other views at the same position
// relative to its occurrence. // relative to its occurrence.
OSL_TRACE("BegDragObj createInvisible Objects" );
int nViewCount = 0; int nViewCount = 0;
Point aNewObjPos(0,0); Point aNewObjPos(0,0);
Point aLeftTop = Point(SAL_MAX_INT32, SAL_MAX_INT32); Point aLeftTop = Point(SAL_MAX_INT32, SAL_MAX_INT32);

View File

@ -537,7 +537,6 @@ namespace
OUString sSys; OUString sSys;
if(FileBase::getSystemPathFromFileURL(i_sUrl, sSys) != FileBase::E_None) if(FileBase::getSystemPathFromFileURL(i_sUrl, sSys) != FileBase::E_None)
throw RscIoError(); throw RscIoError();
OSL_TRACE("temporary file: %s", OUStringToOString(sSys, RTL_TEXTENCODING_UTF8).getStr());
return OUStringToOString(sSys, RTL_TEXTENCODING_MS_1252); return OUStringToOString(sSys, RTL_TEXTENCODING_MS_1252);
}; };
@ -547,7 +546,6 @@ namespace
OUString sTempUrl; OUString sTempUrl;
if(FileBase::createTempFile(&sTempDirUrl, nullptr, &sTempUrl) != FileBase::E_None) if(FileBase::createTempFile(&sTempDirUrl, nullptr, &sTempUrl) != FileBase::E_None)
throw RscIoError(); throw RscIoError();
OSL_TRACE("temporary url: %s", OUStringToOString(sTempUrl, RTL_TEXTENCODING_UTF8).getStr());
return lcl_getSystemPath(sTempUrl); return lcl_getSystemPath(sTempUrl);
}; };
} }
@ -588,20 +586,16 @@ ERRTYPE RscCompiler::Link()
OUString sRcUrl = lcl_getAbsoluteUrl(sPwdUrl, it->aOutputRc); OUString sRcUrl = lcl_getAbsoluteUrl(sPwdUrl, it->aOutputRc);
// TempDir is either the directory where the rc file is located or pwd // TempDir is either the directory where the rc file is located or pwd
OUString sTempDirUrl = sRcUrl.copy(0,sRcUrl.lastIndexOf('/')); OUString sTempDirUrl = sRcUrl.copy(0,sRcUrl.lastIndexOf('/'));
OSL_TRACE("rc directory URL: %s", OUStringToOString(sTempDirUrl, RTL_TEXTENCODING_UTF8).getStr());
aRcTmp = lcl_getTempFile(sTempDirUrl); aRcTmp = lcl_getTempFile(sTempDirUrl);
OSL_TRACE("temporary rc file: %s", aRcTmp.getStr());
OUString sOilDirUrl; OUString sOilDirUrl;
if(!pCL->aILDir.isEmpty()) if(!pCL->aILDir.isEmpty())
sOilDirUrl = lcl_getAbsoluteUrl(sPwdUrl, pCL->aILDir); sOilDirUrl = lcl_getAbsoluteUrl(sPwdUrl, pCL->aILDir);
else else
sOilDirUrl = sTempDirUrl; sOilDirUrl = sTempDirUrl;
OSL_TRACE("ilst directory URL: %s", OUStringToOString(sOilDirUrl, RTL_TEXTENCODING_UTF8).getStr());
aSysListTmp = lcl_getTempFile(sOilDirUrl); aSysListTmp = lcl_getTempFile(sOilDirUrl);
OSL_TRACE("temporary ilst file: %s", aSysListTmp.getStr());
OUString sIlstUrl; OUString sIlstUrl;
sIlstUrl = sRcUrl.copy(sRcUrl.lastIndexOf('/')+1); sIlstUrl = sRcUrl.copy(sRcUrl.lastIndexOf('/')+1);
@ -610,7 +604,6 @@ ERRTYPE RscCompiler::Link()
sIlstUrl = lcl_getAbsoluteUrl(sOilDirUrl, OUStringToOString(sIlstUrl, RTL_TEXTENCODING_UTF8)); sIlstUrl = lcl_getAbsoluteUrl(sOilDirUrl, OUStringToOString(sIlstUrl, RTL_TEXTENCODING_UTF8));
aSysList = lcl_getSystemPath(sIlstUrl); aSysList = lcl_getSystemPath(sIlstUrl);
OSL_TRACE("ilst file: %s", aSysList.getStr());
} }
catch (RscIoError&) catch (RscIoError&)
{ {
@ -644,7 +637,6 @@ ERRTYPE RscCompiler::Link()
aSysSearchPath.append(aToken); aSysSearchPath.append(aToken);
} }
while ( nIndex >= 0 ); while ( nIndex >= 0 );
OSL_TRACE( "setting search path for language %s: %s", it->aLangName.getStr(), aSysSearchPath.getStr() );
pTC->SetSysSearchPath(aSysSearchPath.makeStringAndClear()); pTC->SetSysSearchPath(aSysSearchPath.makeStringAndClear());
WriteRcContext aContext; WriteRcContext aContext;

View File

@ -181,7 +181,7 @@ static void ChildStatusProc(void *pData)
OSL_ASSERT(geteuid() == 0); /* must be root */ OSL_ASSERT(geteuid() == 0); /* must be root */
if (! INIT_GROUPS(data.m_name, data.m_gid) || (setuid(data.m_uid) != 0)) if (! INIT_GROUPS(data.m_name, data.m_gid) || (setuid(data.m_uid) != 0))
OSL_TRACE("Failed to change uid and guid, errno=%d (%s)", errno, strerror(errno)); SAL_WARN("sal", "Failed to change uid and guid, errno=" << errno << " (" << strerror(errno) << ")" );
const rtl::OUString envVar("HOME"); const rtl::OUString envVar("HOME");
osl_clearEnvironment(envVar.pData); osl_clearEnvironment(envVar.pData);
@ -205,7 +205,7 @@ static void ChildStatusProc(void *pData)
} }
} }
OSL_TRACE("ChildStatusProc : starting '%s'",data.m_pszArgs[0]); SAL_INFO("sal", "ChildStatusProc : starting " << data.m_pszArgs[0]);
/* Connect std IO to pipe ends */ /* Connect std IO to pipe ends */
@ -243,14 +243,14 @@ static void ChildStatusProc(void *pData)
execv(data.m_pszArgs[0], const_cast<char **>(data.m_pszArgs)); execv(data.m_pszArgs[0], const_cast<char **>(data.m_pszArgs));
} }
OSL_TRACE("Failed to exec, errno=%d (%s)", errno, strerror(errno)); SAL_WARN("sal", "Failed to exec, errno=" << errno << " (" << strerror(errno) << ")");
OSL_TRACE("ChildStatusProc : starting '%s' failed",data.m_pszArgs[0]); SAL_WARN("sal", "ChildStatusProc : starting '" << data.m_pszArgs[0] << "' failed");
/* if we reach here, something went wrong */ /* if we reach here, something went wrong */
errno_copy = errno; errno_copy = errno;
if ( !safeWrite(channel[1], &errno_copy, sizeof(errno_copy)) ) if ( !safeWrite(channel[1], &errno_copy, sizeof(errno_copy)) )
OSL_TRACE("sendFdPipe : sending failed (%s)",strerror(errno)); SAL_WARN("sal", "sendFdPipe : sending failed (" << strerror(errno) << ")");
if ( channel[1] != -1 ) if ( channel[1] != -1 )
close(channel[1]); close(channel[1]);
@ -309,7 +309,7 @@ static void ChildStatusProc(void *pData)
if ( child_pid < 0) if ( child_pid < 0)
{ {
OSL_TRACE("Failed to wait for child process, errno=%d (%s)", errno, strerror(errno)); SAL_WARN("sal", "Failed to wait for child process, errno=" << errno << " (" << strerror(errno) << ")");
/* /*
We got an other error than EINTR. Anyway we have to wake up the We got an other error than EINTR. Anyway we have to wake up the
@ -349,8 +349,8 @@ static void ChildStatusProc(void *pData)
} }
else else
{ {
OSL_TRACE("ChildStatusProc : starting '%s' failed",data.m_pszArgs[0]); SAL_WARN("sal", "ChildStatusProc : starting '" << data.m_pszArgs[0] << "' failed");
OSL_TRACE("Failed to launch child process, child reports errno=%d (%s)", status, strerror(status)); SAL_WARN("sal", "Failed to launch child process, child reports errno=" << status << " (" << strerror(status) << ")");
/* Close pipe ends */ /* Close pipe ends */
if ( pdata->m_pInputWrite ) if ( pdata->m_pInputWrite )

View File

@ -256,7 +256,7 @@ bool onInitSignal()
if (sigemptyset(&unset) < 0 || if (sigemptyset(&unset) < 0 ||
pthread_sigmask(SIG_SETMASK, &unset, nullptr) < 0) pthread_sigmask(SIG_SETMASK, &unset, nullptr) < 0)
{ {
OSL_TRACE("sigemptyset or pthread_sigmask failed"); SAL_WARN("sal", "sigemptyset or pthread_sigmask failed");
} }
return true; return true;

View File

@ -68,7 +68,6 @@ static inline void copy_ustr_n( void *dest, const void *source, size_t length )
#define SVERSION_USER "user" #define SVERSION_USER "user"
/*#define DEBUG_OSL_PROFILE 1*/ /*#define DEBUG_OSL_PROFILE 1*/
/*#define TRACE_OSL_PROFILE 1*/
/*****************************************************************************/ /*****************************************************************************/
/* Data Type Definition */ /* Data Type Definition */
@ -174,9 +173,6 @@ oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, sal_uInt32 Flag
osl_TProfileImpl* pProfile; osl_TProfileImpl* pProfile;
rtl_uString *FileName=nullptr; rtl_uString *FileName=nullptr;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_openProfile");
#endif
OSL_VERIFY(strProfileName); OSL_VERIFY(strProfileName);
if (rtl_uString_getLength(strProfileName) == 0 ) if (rtl_uString_getLength(strProfileName) == 0 )
@ -195,31 +191,28 @@ oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, sal_uInt32 Flag
if ( Flags == osl_Profile_DEFAULT ) if ( Flags == osl_Profile_DEFAULT )
{ {
OSL_TRACE("with osl_Profile_DEFAULT"); SAL_INFO("sal", "with osl_Profile_DEFAULT");
} }
if ( Flags & osl_Profile_SYSTEM ) if ( Flags & osl_Profile_SYSTEM )
{ {
OSL_TRACE("with osl_Profile_SYSTEM"); SAL_INFO("sal", "with osl_Profile_SYSTEM");
} }
if ( Flags & osl_Profile_READLOCK ) if ( Flags & osl_Profile_READLOCK )
{ {
OSL_TRACE("with osl_Profile_READLOCK"); SAL_INFO("sal", "with osl_Profile_READLOCK");
} }
if ( Flags & osl_Profile_WRITELOCK ) if ( Flags & osl_Profile_WRITELOCK )
{ {
OSL_TRACE("with osl_Profile_WRITELOCK"); SAL_INFO("sal", "with osl_Profile_WRITELOCK");
} }
if ( Flags & osl_Profile_FLUSHWRITE ) if ( Flags & osl_Profile_FLUSHWRITE )
{ {
OSL_TRACE("with osl_Profile_FLUSHWRITE"); SAL_INFO("sal", "with osl_Profile_FLUSHWRITE");
} }
#endif #endif
if ( (! (Flags & osl_Profile_SYSTEM)) && ( (pFile = openFileImpl(FileName, Flags) ) == nullptr ) ) if ( (! (Flags & osl_Profile_SYSTEM)) && ( (pFile = openFileImpl(FileName, Flags) ) == nullptr ) )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_openProfile [not opened]");
#endif
if( FileName) if( FileName)
rtl_uString_release( FileName); rtl_uString_release( FileName);
@ -241,9 +234,6 @@ oslProfile SAL_CALL osl_openProfile(rtl_uString *strProfileName, sal_uInt32 Flag
if (pProfile->m_pFile == nullptr) if (pProfile->m_pFile == nullptr)
closeFileImpl(pFile); closeFileImpl(pFile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_openProfile [ok]");
#endif
if( FileName) if( FileName)
rtl_uString_release( FileName); rtl_uString_release( FileName);
@ -254,15 +244,9 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile)
{ {
osl_TProfileImpl* pProfile = static_cast<osl_TProfileImpl*>(Profile); osl_TProfileImpl* pProfile = static_cast<osl_TProfileImpl*>(Profile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_closeProfile");
#endif
if ( Profile == nullptr ) if ( Profile == nullptr )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_closeProfile [profile==0]");
#endif
return false; return false;
} }
@ -284,9 +268,6 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile)
if ( pProfile == nullptr ) if ( pProfile == nullptr )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_closeProfile [pProfile==0]");
#endif
return false; return false;
} }
@ -326,9 +307,6 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile)
} }
free(pProfile); free(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_closeProfile [ok]");
#endif
return true; return true;
} }
@ -338,38 +316,26 @@ sal_Bool SAL_CALL osl_flushProfile(oslProfile Profile)
osl_TFile* pFile; osl_TFile* pFile;
bool bRet = false; bool bRet = false;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_flushProfile()");
#endif
if ( pProfile == nullptr ) if ( pProfile == nullptr )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_flushProfile() [pProfile == 0]");
#endif
return false; return false;
} }
pFile = pProfile->m_pFile; pFile = pProfile->m_pFile;
if ( pFile == nullptr || pFile->m_Handle == INVALID_HANDLE_VALUE ) if ( pFile == nullptr || pFile->m_Handle == INVALID_HANDLE_VALUE )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_flushProfile() [invalid file]");
#endif
return false; return false;
} }
if ( pProfile->m_Flags & FLG_MODIFIED ) if ( pProfile->m_Flags & FLG_MODIFIED )
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("swapping to storeprofile"); SAL_INFO("sal", "swapping to storeprofile");
#endif #endif
bRet = storeProfile(pProfile,false); bRet = storeProfile(pProfile,false);
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_flushProfile() [ok]");
#endif
return bRet; return bRet;
} }
@ -378,15 +344,8 @@ static bool writeProfileImpl(osl_TFile* pFile)
DWORD BytesWritten=0; DWORD BytesWritten=0;
BOOL bRet; BOOL bRet;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_writeProfileImpl()");
#endif
if ( !( pFile != nullptr && pFile->m_Handle != INVALID_HANDLE_VALUE ) || ( pFile->m_pWriteBuf == nullptr ) ) if ( !( pFile != nullptr && pFile->m_Handle != INVALID_HANDLE_VALUE ) || ( pFile->m_pWriteBuf == nullptr ) )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileImpl() [invalid args]");
#endif
return false; return false;
} }
@ -395,7 +354,7 @@ static bool writeProfileImpl(osl_TFile* pFile)
if ( bRet == 0 || BytesWritten == 0 ) if ( bRet == 0 || BytesWritten == 0 )
{ {
OSL_ENSURE(bRet,"WriteFile failed!!!"); OSL_ENSURE(bRet,"WriteFile failed!!!");
OSL_TRACE("write failed '%s'",strerror(errno)); SAL_INFO("sal", "write failed '%s'",strerror(errno));
return false; return false;
} }
@ -405,9 +364,6 @@ static bool writeProfileImpl(osl_TFile* pFile)
pFile->m_nWriteBufLen=0; pFile->m_nWriteBufLen=0;
pFile->m_nWriteBufFree=0; pFile->m_nWriteBufFree=0;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileImpl() [ok]");
#endif
return true; return true;
} }
@ -420,18 +376,10 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile,
const sal_Char* pStr = nullptr; const sal_Char* pStr = nullptr;
osl_TProfileImpl* pProfile = nullptr; osl_TProfileImpl* pProfile = nullptr;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_readProfileString");
#endif
pProfile = acquireProfile(Profile, false); pProfile = acquireProfile(Profile, false);
if (pProfile == nullptr) if (pProfile == nullptr)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileString [pProfile==0]");
#endif
return false; return false;
} }
@ -467,17 +415,9 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile,
if ( pStr == nullptr ) if ( pStr == nullptr )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileString [pStr==0]");
#endif
return false; return false;
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileString [ok]");
#endif
return true; return true;
} }
@ -487,10 +427,6 @@ sal_Bool SAL_CALL osl_readProfileBool(oslProfile Profile,
{ {
sal_Char Line[32]; sal_Char Line[32];
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_readProfileBool");
#endif
if (osl_readProfileString(Profile, pszSection, pszEntry, Line, sizeof(Line), "")) if (osl_readProfileString(Profile, pszSection, pszEntry, Line, sizeof(Line), ""))
{ {
if ((stricmp(Line, STR_INI_BOOLYES) == 0) || if ((stricmp(Line, STR_INI_BOOLYES) == 0) ||
@ -504,10 +440,6 @@ sal_Bool SAL_CALL osl_readProfileBool(oslProfile Profile,
Default = false; Default = false;
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileBool [ok]");
#endif
return Default; return Default;
} }
@ -519,10 +451,6 @@ sal_uInt32 SAL_CALL osl_readProfileIdent(oslProfile Profile,
sal_uInt32 i; sal_uInt32 i;
sal_Char Line[256]; sal_Char Line[256];
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_readProfileIdent");
#endif
if (osl_readProfileString(Profile, pszSection, pszEntry, Line, sizeof(Line), "")) if (osl_readProfileString(Profile, pszSection, pszEntry, Line, sizeof(Line), ""))
{ {
i = 0; i = 0;
@ -537,9 +465,6 @@ sal_uInt32 SAL_CALL osl_readProfileIdent(oslProfile Profile,
} }
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_readProfileIdent [ok]");
#endif
return Default; return Default;
} }
@ -555,17 +480,10 @@ sal_Bool SAL_CALL osl_writeProfileString(oslProfile Profile,
osl_TProfileSection* pSec; osl_TProfileSection* pSec;
osl_TProfileImpl* pProfile = nullptr; osl_TProfileImpl* pProfile = nullptr;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_writeProfileString");
#endif
pProfile = acquireProfile(Profile, true); pProfile = acquireProfile(Profile, true);
if (pProfile == nullptr) if (pProfile == nullptr)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileString [pProfile==0]");
#endif
return false; return false;
} }
@ -585,9 +503,6 @@ sal_Bool SAL_CALL osl_writeProfileString(oslProfile Profile,
(! addSection(pProfile, pProfile->m_NoLines - 1, &pStr[1], strlen(pszSection)))) (! addSection(pProfile, pProfile->m_NoLines - 1, &pStr[1], strlen(pszSection))))
{ {
releaseProfile(pProfile); releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileString [not added]");
#endif
return false; return false;
} }
@ -611,9 +526,6 @@ sal_Bool SAL_CALL osl_writeProfileString(oslProfile Profile,
(! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry))))
{ {
releaseProfile(pProfile); releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileString [not inserted]");
#endif
return false; return false;
} }
@ -638,9 +550,6 @@ sal_Bool SAL_CALL osl_writeProfileString(oslProfile Profile,
} }
bRet = releaseProfile(pProfile); bRet = releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileString [ok]");
#endif
return bRet; return bRet;
} }
@ -650,19 +559,11 @@ sal_Bool SAL_CALL osl_writeProfileBool(oslProfile Profile,
{ {
bool bRet = false; bool bRet = false;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_writeProfileBool");
#endif
if (Value) if (Value)
bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLONE); bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLONE);
else else
bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLZERO); bRet=osl_writeProfileString(Profile, pszSection, pszEntry, STR_INI_BOOLZERO);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileBool [ok]");
#endif
return bRet; return bRet;
} }
@ -674,10 +575,6 @@ sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile,
int i, n; int i, n;
bool bRet = false; bool bRet = false;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_writeProfileIdent");
#endif
for (n = 0; Strings[n] != nullptr; n++); for (n = 0; Strings[n] != nullptr; n++);
if ((i = Value - FirstId) >= n) if ((i = Value - FirstId) >= n)
@ -685,9 +582,6 @@ sal_Bool SAL_CALL osl_writeProfileIdent(oslProfile Profile,
else else
bRet=osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]); bRet=osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_writeProfileIdent");
#endif
return bRet; return bRet;
} }
@ -698,18 +592,10 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile,
osl_TProfileImpl* pProfile = nullptr; osl_TProfileImpl* pProfile = nullptr;
bool bRet = false; bool bRet = false;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_removeProfileEntry");
#endif
pProfile = acquireProfile(Profile, true); pProfile = acquireProfile(Profile, true);
if (pProfile == nullptr) if (pProfile == nullptr)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_removeProfileEntry [pProfile==0]");
#endif
return false; return false;
} }
@ -744,9 +630,6 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile,
} }
bRet = releaseProfile(pProfile); bRet = releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_removeProfileEntry [ok]");
#endif
return bRet; return bRet;
} }
@ -757,18 +640,10 @@ sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, const sal_C
sal_uInt32 NoEntry; sal_uInt32 NoEntry;
osl_TProfileImpl* pProfile = nullptr; osl_TProfileImpl* pProfile = nullptr;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_getProfileSectionEntries");
#endif
pProfile = acquireProfile(Profile, false); pProfile = acquireProfile(Profile, false);
if (pProfile == nullptr) if (pProfile == nullptr)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_getProfileSectionEntries [pProfile=0]");
#endif
return 0; return 0;
} }
@ -816,10 +691,6 @@ sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, const sal_C
releaseProfile(pProfile); releaseProfile(pProfile);
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_getProfileSectionEntries [ok]");
#endif
return n; return n;
} }
@ -1143,7 +1014,7 @@ static osl_TFile* openFileImpl(rtl_uString * strFileName, oslProfileOption Profi
if ( ProfileFlags & ( osl_Profile_WRITELOCK | osl_Profile_FLUSHWRITE ) ) if ( ProfileFlags & ( osl_Profile_WRITELOCK | osl_Profile_FLUSHWRITE ) )
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("setting bWriteable to TRUE"); SAL_INFO("sal", "setting bWriteable to TRUE");
#endif #endif
bWriteable=true; bWriteable=true;
} }
@ -1160,7 +1031,7 @@ static osl_TFile* openFileImpl(rtl_uString * strFileName, oslProfileOption Profi
else else
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("opening '%s' read/write",pszFilename); SAL_INFO("sal", "opening '%s' read/write",pszFilename);
#endif #endif
if ((pFile->m_Handle = CreateFileW( reinterpret_cast<LPCWSTR>(rtl_uString_getStr( strFileName )), GENERIC_READ | GENERIC_WRITE, if ((pFile->m_Handle = CreateFileW( reinterpret_cast<LPCWSTR>(rtl_uString_getStr( strFileName )), GENERIC_READ | GENERIC_WRITE,
@ -1180,7 +1051,7 @@ static osl_TFile* openFileImpl(rtl_uString * strFileName, oslProfileOption Profi
if ( ProfileFlags & (osl_Profile_WRITELOCK | osl_Profile_READLOCK ) ) if ( ProfileFlags & (osl_Profile_WRITELOCK | osl_Profile_READLOCK ) )
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("locking '%s' file",pszFilename); SAL_INFO("sal", "locking '%s' file",pszFilename);
#endif #endif
lockFile(pFile, bWriteable ? write_lock : read_lock); lockFile(pFile, bWriteable ? write_lock : read_lock);
@ -1773,10 +1644,6 @@ static bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile)
static bool storeProfile(osl_TProfileImpl* pProfile, bool bCleanup) static bool storeProfile(osl_TProfileImpl* pProfile, bool bCleanup)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In storeProfile");
#endif
if (pProfile->m_Lines != nullptr) if (pProfile->m_Lines != nullptr)
{ {
if (pProfile->m_Flags & FLG_MODIFIED) if (pProfile->m_Flags & FLG_MODIFIED)
@ -1808,9 +1675,6 @@ static bool storeProfile(osl_TProfileImpl* pProfile, bool bCleanup)
pTmpFile->m_nWriteBufLen=0; pTmpFile->m_nWriteBufLen=0;
pTmpFile->m_nWriteBufFree=0; pTmpFile->m_nWriteBufFree=0;
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out storeProfile [not flushed]");
#endif
closeFileImpl(pTmpFile); closeFileImpl(pTmpFile);
return false; return false;
@ -1845,9 +1709,6 @@ static bool storeProfile(osl_TProfileImpl* pProfile, bool bCleanup)
} }
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out storeProfile [ok]");
#endif
return true; return true;
} }
@ -1959,7 +1820,7 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
if (pProfile == nullptr) if (pProfile == nullptr)
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("AUTOOPEN MODE"); SAL_INFO("sal", "AUTOOPEN MODE");
#endif #endif
if ( ( pProfile = static_cast<osl_TProfileImpl*>(osl_openProfile( nullptr, PFlags )) ) != nullptr ) if ( ( pProfile = static_cast<osl_TProfileImpl*>(osl_openProfile( nullptr, PFlags )) ) != nullptr )
@ -1970,7 +1831,7 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
else else
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("try to acquire"); SAL_INFO("sal", "try to acquire");
#endif #endif
if (! (pProfile->m_Flags & osl_Profile_SYSTEM)) if (! (pProfile->m_Flags & osl_Profile_SYSTEM))
@ -1980,7 +1841,7 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
{ {
osl_TStamp Stamp; osl_TStamp Stamp;
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("DEFAULT MODE"); SAL_INFO("sal", "DEFAULT MODE");
#endif #endif
pProfile->m_pFile = openFileImpl( pProfile->m_pFile = openFileImpl(
pProfile->m_strFileName, pProfile->m_Flags | PFlags); pProfile->m_strFileName, pProfile->m_Flags | PFlags);
@ -1999,7 +1860,7 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
else else
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("READ/WRITELOCK MODE"); SAL_INFO("sal", "READ/WRITELOCK MODE");
#endif #endif
/* A readlock file could not be written */ /* A readlock file could not be written */
@ -2016,15 +1877,8 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
static bool releaseProfile(osl_TProfileImpl* pProfile) static bool releaseProfile(osl_TProfileImpl* pProfile)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In releaseProfile");
#endif
if ( pProfile == nullptr ) if ( pProfile == nullptr )
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out releaseProfile [profile==0]");
#endif
return false; return false;
} }
@ -2032,15 +1886,12 @@ static bool releaseProfile(osl_TProfileImpl* pProfile)
{ {
if (pProfile->m_Flags & FLG_AUTOOPEN) if (pProfile->m_Flags & FLG_AUTOOPEN)
{ {
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out releaseProfile [AUTOOPEN]");
#endif
return osl_closeProfile(static_cast<oslProfile>(pProfile)); return osl_closeProfile(static_cast<oslProfile>(pProfile));
} }
else else
{ {
#ifdef DEBUG_OSL_PROFILE #ifdef DEBUG_OSL_PROFILE
OSL_TRACE("DEFAULT MODE"); SAL_INFO("sal", "DEFAULT MODE");
#endif #endif
if (! (pProfile->m_Flags & (osl_Profile_READLOCK | if (! (pProfile->m_Flags & (osl_Profile_READLOCK |
osl_Profile_WRITELOCK | osl_Profile_FLUSHWRITE))) osl_Profile_WRITELOCK | osl_Profile_FLUSHWRITE)))
@ -2054,9 +1905,6 @@ static bool releaseProfile(osl_TProfileImpl* pProfile)
} }
} }
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out releaseProfile [ok]");
#endif
return true; return true;
} }

View File

@ -594,7 +594,7 @@ static oslHostAddr __osl_hostentToHostAddr (const struct hostent *he)
/* unknown address family */ /* unknown address family */
/* future extensions for new families might be implemented here */ /* future extensions for new families might be implemented here */
OSL_TRACE("_osl_hostentToHostAddr(): unknown address family."); SAL_WARN("sal", "_osl_hostentToHostAddr(): unknown address family.");
OSL_ASSERT(sal_False); OSL_ASSERT(sal_False);
osl_destroySocketAddr_( pSocketAddr ); osl_destroySocketAddr_( pSocketAddr );