diff options
Diffstat (limited to 'mysqlc/source/mysqlc_preparedstatement.cxx')
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.cxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx index df384d81a2f8..f3563ed16d66 100644 --- a/mysqlc/source/mysqlc_preparedstatement.cxx +++ b/mysqlc/source/mysqlc_preparedstatement.cxx @@ -79,7 +79,6 @@ sal_Bool OPreparedStatement::supportsService(rtl::OUString const & ServiceName) OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedStatement * _cppPrepStmt) :OCommonStatement(_pConnection, _cppPrepStmt) { - OSL_TRACE("OPreparedStatement::OPreparedStatement"); m_pConnection = _pConnection; m_pConnection->acquire(); @@ -92,27 +91,23 @@ OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedS OPreparedStatement::~OPreparedStatement() { - OSL_TRACE("OPreparedStatement::~OPreparedStatement"); } void SAL_CALL OPreparedStatement::acquire() throw() { - OSL_TRACE("OPreparedStatement::acquire"); OCommonStatement::acquire(); } void SAL_CALL OPreparedStatement::release() throw() { - OSL_TRACE("OPreparedStatement::release"); OCommonStatement::release(); } Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType) throw(RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::queryInterface"); Any aRet = OCommonStatement::queryInterface(rType); if (!aRet.hasValue()) { aRet = OPreparedStatement_BASE::queryInterface(rType); @@ -123,14 +118,12 @@ Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType) Sequence< Type > SAL_CALL OPreparedStatement::getTypes() throw(RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::getTypes"); return concatSequences(OPreparedStatement_BASE::getTypes(), OCommonStatement::getTypes()); } Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::getMetaData"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); @@ -152,8 +145,6 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData() void SAL_CALL OPreparedStatement::close() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::close"); - MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); @@ -172,7 +163,6 @@ void SAL_CALL OPreparedStatement::close() sal_Bool SAL_CALL OPreparedStatement::execute() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::execute"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); @@ -188,7 +178,6 @@ sal_Bool SAL_CALL OPreparedStatement::execute() sal_Int32 SAL_CALL OPreparedStatement::executeUpdate() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::executeUpdate"); MutexGuard aGuard(m_aMutex); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setString"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkParameterIndex(parameter); @@ -222,7 +210,6 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const rtl::OUSt Reference< XConnection > SAL_CALL OPreparedStatement::getConnection() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::getConnection"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); @@ -232,7 +219,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection() Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::executeQuery"); MutexGuard aGuard(m_aMutex); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setBoolean"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setByte"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setDate"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setTime"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setTimestamp"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setDouble"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setFloat"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setInt"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setLong"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setNull"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setClob"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setBlob"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setArray"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setRef"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkParameterIndex(parameter); @@ -524,7 +496,6 @@ namespace void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, const Any& _value, sal_Int32 _targetSqlType, sal_Int32 /* scale */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setObjectWithInfo"); checkDisposed(OPreparedStatement::rBHelper.bDisposed); MutexGuard aGuard(m_aMutex); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setObjectNull"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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 */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setObject"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setShort"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); 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) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setBytes"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkParameterIndex(parameter); @@ -717,7 +684,6 @@ void SAL_CALL OPreparedStatement::setCharacterStream(sal_Int32 parameter, sal_Int32 /* length */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setCharacterStream"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkParameterIndex(parameter); @@ -730,7 +696,6 @@ void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter, sal_Int32 /* length */) throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::setBinaryStream"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); checkParameterIndex(parameter); @@ -741,7 +706,6 @@ void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter, void SAL_CALL OPreparedStatement::clearParameters() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::clearParameters"); MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedStatement::rBHelper.bDisposed); @@ -757,21 +721,18 @@ void SAL_CALL OPreparedStatement::clearParameters() void SAL_CALL OPreparedStatement::clearBatch() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::clearBatch"); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", *this); } void SAL_CALL OPreparedStatement::addBatch() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::addBatch"); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this); } Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch() throw(SQLException, RuntimeException, std::exception) { - OSL_TRACE("OPreparedStatement::executeBatch"); Sequence< sal_Int32 > aRet= Sequence< sal_Int32 > (); return aRet; } @@ -779,7 +740,6 @@ Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch() void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw(Exception, std::exception) { - OSL_TRACE("OPreparedStatement::setFastPropertyValue_NoBroadcast"); switch(nHandle) { case PROPERTY_ID_RESULTSETCONCURRENCY: @@ -798,7 +758,6 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons void OPreparedStatement::checkParameterIndex(sal_Int32 column) { - OSL_TRACE("OPreparedStatement::checkColumnIndex"); if (column < 1 || column > (sal_Int32) m_paramCount) { rtl::OUString buf( "Parameter index out of range" ); throw SQLException(buf, *this, rtl::OUString(), 1, Any ()); |