User: hr      
Date: 06/06/19 19:35:36

Modified:
 /dba/dbaccess/source/core/api/
  RowSet.cxx

Log:
 INTEGRATION: CWS warnings01 (1.139.26); FILE MERGED
 2006/05/29 11:19:10 sb 1.139.26.5: #i53898# Made code warning-free and/or 
compile at all after resync to SRC680m170.
 2006/05/23 23:42:29 sb 1.139.26.4: RESYNC: (1.142-1.143); FILE MERGED
 2006/05/12 16:25:12 sb 1.139.26.3: #i53898# Made code warning-free and/or 
compile at all after resync to SRC680m162 (and in some cases reverted previous, 
problematic changes).
 2006/04/07 20:45:00 sb 1.139.26.2: RESYNC: (1.139-1.142); FILE MERGED
 2006/03/24 15:35:45 fs 1.139.26.1: #i57457# warning-free code (unxlngi6/.pro + 
unxsoli4.pro)

File Changes:

Directory: /dba/dbaccess/source/core/api/
=========================================

File [changed]: RowSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSet.cxx?r1=1.143&r2=1.144
Delta lines:  +34 -35
---------------------
--- RowSet.cxx  19 Apr 2006 13:18:18 -0000      1.143
+++ RowSet.cxx  20 Jun 2006 02:35:33 -0000      1.144
@@ -260,26 +260,26 @@
 ORowSet::ORowSet(const Reference< ::com::sun::star::lang::XMultiServiceFactory 
>& _xFac)
        : ORowSet_BASE1(m_aMutex)
        , ORowSetBase(ORowSet_BASE1::rBHelper,&m_aMutex)
-       , m_xServiceManager(_xFac)
+    ,m_xServiceManager(_xFac)
        ,m_aRowsetListeners(*m_pMutex)
        ,m_aApproveListeners(*m_pMutex)
+       ,m_pTables(NULL)
        ,m_nFetchDirection(FetchDirection::FORWARD)
        ,m_nFetchSize(1)
-       ,m_nCommandType(CommandType::COMMAND)
        ,m_nMaxFieldSize(0)
-       ,m_nTransactionIsolation(0)
-       ,m_nPrivileges(0)
        ,m_nMaxRows(0)
        ,m_nQueryTimeOut(0)
+    ,m_nCommandType(CommandType::COMMAND)
+       ,m_nTransactionIsolation(0)
+       ,m_nPrivileges(0)
        ,m_bUseEscapeProcessing(sal_True)
        ,m_bApplyFilter(sal_False)
        ,m_bCreateStatement(sal_True)
        ,m_bModified(sal_False)
        ,m_bRebuildConnOnExecute(sal_False)
-       ,m_bNew(sal_False)
        ,m_bIsBookmarable(sal_True)
+       ,m_bNew(sal_False)
        ,m_bCanUpdateInsertedRows(sal_True)
-       ,m_pTables(NULL)
        ,m_bOwnConnection(sal_False)
 {
        m_nResultSetType = ResultSetType::SCROLL_SENSITIVE;
@@ -1471,28 +1471,28 @@
        return ORowSetBase::getCharacterStream(columnIndex);
 }
 // -------------------------------------------------------------------------
-Any SAL_CALL ORowSet::getObject( sal_Int32 columnIndex, const Reference< 
XNameAccess >& typeMap ) throw(SQLException, RuntimeException)
+Any SAL_CALL ORowSet::getObject( sal_Int32 columnIndex, const Reference< 
XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
 {
        ::osl::MutexGuard aGuard( *m_pMutex );
        return getInsertValue(columnIndex).makeAny();
 }
 // -------------------------------------------------------------------------
-Reference< XRef > SAL_CALL ORowSet::getRef( sal_Int32 columnIndex ) 
throw(SQLException, RuntimeException)
+Reference< XRef > SAL_CALL ORowSet::getRef( sal_Int32 /*columnIndex*/ ) 
throw(SQLException, RuntimeException)
 {
        return Reference< XRef >();
 }
 // -------------------------------------------------------------------------
-Reference< XBlob > SAL_CALL ORowSet::getBlob( sal_Int32 columnIndex ) 
throw(SQLException, RuntimeException)
+Reference< XBlob > SAL_CALL ORowSet::getBlob( sal_Int32 /*columnIndex*/ ) 
throw(SQLException, RuntimeException)
 {
        return Reference< XBlob >();
 }
 // -------------------------------------------------------------------------
-Reference< XClob > SAL_CALL ORowSet::getClob( sal_Int32 columnIndex ) 
throw(SQLException, RuntimeException)
+Reference< XClob > SAL_CALL ORowSet::getClob( sal_Int32 /*columnIndex*/ ) 
throw(SQLException, RuntimeException)
 {
        return Reference< XClob >();
 }
 // -------------------------------------------------------------------------
-Reference< XArray > SAL_CALL ORowSet::getArray( sal_Int32 columnIndex ) 
throw(SQLException, RuntimeException)
+Reference< XArray > SAL_CALL ORowSet::getArray( sal_Int32 /*columnIndex*/ ) 
throw(SQLException, RuntimeException)
 {
        return Reference< XArray >();
 }
@@ -1683,10 +1683,10 @@
 
                                {
                                        Reference<XParameters> 
xParam(m_xStatement,UNO_QUERY);
-                                       sal_Int32 i = 1;
-                                       for(ORowVector< ORowSetValue 
>::const_iterator aIter = m_aParameterRow.begin(); aIter != 
m_aParameterRow.end();++aIter,++i)
+                                       sal_Int32 index = 1;
+                                       for(ORowVector< ORowSetValue 
>::const_iterator aIter = m_aParameterRow.begin(); aIter != 
m_aParameterRow.end();++aIter,++index)
                                        {
-                                               
::dbtools::setObjectWithInfo(xParam,i,aIter->makeAny(),aIter->getTypeKind());
+                                               
::dbtools::setObjectWithInfo(xParam,index,aIter->makeAny(),aIter->getTypeKind());
                                        }
 
                                        Reference< XResultSet> xRs = 
m_xStatement->executeQuery();
@@ -1695,7 +1695,7 @@
                                        if(m_aUpdateTableName.getLength())
                                                
composeTableName(m_xActiveConnection->getMetaData(),m_aUpdateCatalogName,m_aUpdateSchemaName,m_aUpdateTableName,aComposedTableName,sal_False,::dbtools::eInDataManipulation);
 
-                                       m_pCache = new 
ORowSetCache(xRs,m_xAnalyzer,m_xServiceManager,m_aParameterRow,aComposedTableName,m_bModified,m_bNew);
+                                       m_pCache = new 
ORowSetCache(xRs,m_xAnalyzer,m_xServiceManager,aComposedTableName,m_bModified,m_bNew);
                                        if ( m_nResultSetConcurrency == 
ResultSetConcurrency::READ_ONLY )
                                        {
                                                m_nPrivileges = 
Privilege::SELECT;
@@ -1746,10 +1746,10 @@
                                                                        
if(aColumnMap.find(sName) != aColumnMap.end())
                                                                        {
                                                                                
::rtl::OUString sAlias(sName);
-                                                                               
sal_Int32 i=1;
+                                                                               
sal_Int32 searchIndex=1;
                                                                                
while(aColumnMap.find(sAlias) != aColumnMap.end())
                                                                                
{
-                                                                               
        (sAlias = sName) += ::rtl::OUString::valueOf(i++);
+                                                                               
        (sAlias = sName) += ::rtl::OUString::valueOf(searchIndex++);
                                                                                
}
                                                                                
sName = sAlias;
                                                                        }
@@ -2279,7 +2279,7 @@
 }
 // -------------------------------------------------------------------------
 // XParameters
-void SAL_CALL ORowSet::setNull( sal_Int32 parameterIndex, sal_Int32 sqlType ) 
throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setNull( sal_Int32 parameterIndex, sal_Int32 
/*sqlType*/ ) throw(SQLException, RuntimeException)
 {
        ::osl::MutexGuard aGuard( m_aColumnsMutex );
        checkAndResizeParameters(parameterIndex);
@@ -2287,9 +2287,8 @@
        m_aParameterRow[parameterIndex-1].setNull();
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setObjectNull( sal_Int32 parameterIndex, sal_Int32 
sqlType, const ::rtl::OUString& typeName ) throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setObjectNull( sal_Int32 parameterIndex, sal_Int32 
/*sqlType*/, const ::rtl::OUString& /*typeName*/ ) throw(SQLException, 
RuntimeException)
 {
-
        ::osl::MutexGuard aGuard( m_aColumnsMutex );
        checkAndResizeParameters(parameterIndex);
        m_aParameterRow[parameterIndex-1].setNull();
@@ -2412,7 +2411,7 @@
        }
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setObjectWithInfo( sal_Int32 parameterIndex, const Any& 
x, sal_Int32 targetSqlType, sal_Int32 scale ) throw(SQLException, 
RuntimeException)
+void SAL_CALL ORowSet::setObjectWithInfo( sal_Int32 parameterIndex, const Any& 
x, sal_Int32 targetSqlType, sal_Int32 /*scale*/ ) throw(SQLException, 
RuntimeException)
 {
        ::osl::MutexGuard aGuard( m_aColumnsMutex );
        checkAndResizeParameters(parameterIndex);
@@ -2420,24 +2419,24 @@
        m_aParameterRow[parameterIndex-1].setTypeKind(targetSqlType);
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setRef( sal_Int32 parameterIndex, const Reference< XRef 
>& x ) throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setRef( sal_Int32 /*parameterIndex*/, const Reference< 
XRef >& /*x*/ ) throw(SQLException, RuntimeException)
 {
-       throw SQLException();
+    ::dbtools::throwFeatureNotImplementedException( "XParameters::setRef", 
*this );
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setBlob( sal_Int32 parameterIndex, const Reference< 
XBlob >& x ) throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setBlob( sal_Int32 /*parameterIndex*/, const Reference< 
XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
 {
-       throw SQLException();
+    ::dbtools::throwFeatureNotImplementedException( "XParameters::setBlob", 
*this );
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setClob( sal_Int32 parameterIndex, const Reference< 
XClob >& x ) throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setClob( sal_Int32 /*parameterIndex*/, const Reference< 
XClob >& /*x*/ ) throw(SQLException, RuntimeException)
 {
-       throw SQLException();
+    ::dbtools::throwFeatureNotImplementedException( "XParameters::setClob", 
*this );
 }
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSet::setArray( sal_Int32 parameterIndex, const Reference< 
XArray >& x ) throw(SQLException, RuntimeException)
+void SAL_CALL ORowSet::setArray( sal_Int32 /*parameterIndex*/, const 
Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
 {
-       throw SQLException();
+    ::dbtools::throwFeatureNotImplementedException( "XParameters::setArray", 
*this );
 }
 // -------------------------------------------------------------------------
 void SAL_CALL ORowSet::clearParameters(  ) throw(SQLException, 
RuntimeException)
@@ -2534,10 +2533,10 @@
 ORowSetClone::ORowSetClone(ORowSet& rParent,::osl::Mutex* _pMutex)
                     :OSubComponent(m_aMutex, rParent)
                     ,ORowSetBase(OComponentHelper::rBHelper,_pMutex)
+                        ,m_pParent(&rParent)
                         ,m_nFetchDirection(rParent.m_nFetchDirection)
                         ,m_nFetchSize(rParent.m_nFetchSize)
                         ,m_bIsBookmarable(sal_True)
-                        ,m_pParent(&rParent)
 {
        DBG_CTOR(ORowSetClone, NULL);
 
@@ -2779,13 +2778,13 @@
 }
 
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSetClone::addRowSetListener( const Reference< 
XRowSetListener >& listener ) throw(RuntimeException)
+void SAL_CALL ORowSetClone::addRowSetListener( const Reference< 
XRowSetListener >& ) throw(RuntimeException)
 {
     throwFunctionNotSupportedException( "RowSetClone::XRowSet", *this );
 }
 
 // -------------------------------------------------------------------------
-void SAL_CALL ORowSetClone::removeRowSetListener( const Reference< 
XRowSetListener >& listener ) throw(RuntimeException)
+void SAL_CALL ORowSetClone::removeRowSetListener( const Reference< 
XRowSetListener >& ) throw(RuntimeException)
 {
     throwFunctionNotSupportedException( "RowSetClone::XRowSet", *this );
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to