Tag: cws_src680_rowsetdel User: fs Date: 06/01/20 01:01:27 Modified: /dba/dbaccess/source/core/api/ RowSetCache.cxx, RowSetCache.hxx
Log: #i55731# deleteRows now implemented in the RowSet itself File Changes: Directory: /dba/dbaccess/source/core/api/ ========================================= File [changed]: RowSetCache.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSetCache.cxx?r1=1.80.12.5&r2=1.80.12.6 Delta lines: +2 -25 -------------------- --- RowSetCache.cxx 19 Jan 2006 09:04:08 -0000 1.80.12.5 +++ RowSetCache.cxx 20 Jan 2006 09:01:23 -0000 1.80.12.6 @@ -4,9 +4,9 @@ * * $RCSfile: RowSetCache.cxx,v $ * - * $Revision: 1.80.12.5 $ + * $Revision: 1.80.12.6 $ * - * last change: $Author: fs $ $Date: 2006/01/19 09:04:08 $ + * last change: $Author: fs $ $Date: 2006/01/20 09:01:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1358,29 +1358,6 @@ // m_pCacheSet->moveToCurrentRow(); // m_bInserted = sal_False; // } -} -// ------------------------------------------------------------------------- -// ::com::sun::star::sdbcx::XDeleteRows -Sequence< sal_Int32 > ORowSetCache::deleteRows( const Sequence< Any >& rows ) -{ - // TODO impl. a better version which is faster than tis one - - ::osl::MutexGuard aGuard( m_aRowCountMutex ); - - Sequence< sal_Int32 > aRet(rows.getLength()); - sal_Int32 *pRet = aRet.getArray(); - - const Any *pBegin = rows.getConstArray(); - const Any *pEnd = pBegin + rows.getLength(); - - for(;pBegin != pEnd;++pBegin,++pRet) - { - // first we have to position our own and then we have to position our CacheSet again, - // it could be repositioned in the moveToBookmark call - if ( moveToBookmark(*pBegin) && m_pCacheSet->moveToBookmark(*pBegin) ) - *pRet = deleteRow() ? 1 : 0; - } - return aRet; } // ------------------------------------------------------------------------- File [changed]: RowSetCache.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSetCache.hxx?r1=1.25.76.3&r2=1.25.76.4 Delta lines: +2 -5 ------------------- --- RowSetCache.hxx 19 Jan 2006 09:04:09 -0000 1.25.76.3 +++ RowSetCache.hxx 20 Jan 2006 09:01:24 -0000 1.25.76.4 @@ -4,9 +4,9 @@ * * $RCSfile: RowSetCache.hxx,v $ * - * $Revision: 1.25.76.3 $ + * $Revision: 1.25.76.4 $ * - * last change: $Author: fs $ $Date: 2006/01/19 09:04:09 $ + * last change: $Author: fs $ $Date: 2006/01/20 09:01:24 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -255,9 +255,6 @@ void cancelRowUpdates( ); void moveToInsertRow( ); void moveToCurrentRow( ); - - // ::com::sun::star::sdbcx::XDeleteRows - ::com::sun::star::uno::Sequence< sal_Int32 > deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows ); }; } #endif --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
