User: hr      
Date: 05/09/23 04:36:29

Modified:
 /dba/connectivity/source/commontools/
  FValue.cxx

Log:
 INTEGRATION: CWS dba201b (1.27.46); FILE MERGED
 2005/09/21 06:50:04 oj 1.27.46.2: RESYNC: (1.27-1.28); FILE MERGED
 2005/07/11 13:27:04 fs 1.27.46.1: merging CWS dba201 into dba201b

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: FValue.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/FValue.cxx?r1=1.28&r2=1.29
Delta lines:  +79 -1
--------------------
--- FValue.cxx  8 Sep 2005 05:09:54 -0000       1.28
+++ FValue.cxx  23 Sep 2005 11:36:27 -0000      1.29
@@ -1761,5 +1761,83 @@
        }
 }
 // 
-----------------------------------------------------------------------------
-
+void ORowSetValue::fill(sal_Int32 _nPos,
+                                        sal_Int32 _nType,
+                                        const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow>& _xRow)
+{
+    sal_Bool bReadData = sal_True;
+       switch(_nType)
+       {
+       case DataType::CHAR:
+       case DataType::VARCHAR:
+       case DataType::DECIMAL:
+       case DataType::NUMERIC:
+       case DataType::LONGVARCHAR:
+               (*this) = _xRow->getString(_nPos);
+               break;
+       case DataType::BIGINT:
+               if ( isSigned() )
+                       (*this) = _xRow->getLong(_nPos);
+               else
+                       (*this) = _xRow->getString(_nPos);
+               break;
+       case DataType::FLOAT:
+               (*this) = _xRow->getFloat(_nPos);
+               break;
+       case DataType::DOUBLE:
+       case DataType::REAL:
+               (*this) = _xRow->getDouble(_nPos);
+               break;
+       case DataType::DATE:
+               (*this) = _xRow->getDate(_nPos);
+               break;
+       case DataType::TIME:
+               (*this) = _xRow->getTime(_nPos);
+               break;
+       case DataType::TIMESTAMP:
+               (*this) = _xRow->getTimestamp(_nPos);
+               break;
+       case DataType::BINARY:
+       case DataType::VARBINARY:
+       case DataType::LONGVARBINARY:
+               (*this) = _xRow->getBytes(_nPos);
+               break;
+       case DataType::BIT:
+       case DataType::BOOLEAN:
+               (*this) = _xRow->getBoolean(_nPos);
+               break;
+       case DataType::TINYINT:
+               if ( isSigned() )
+                       (*this) = _xRow->getByte(_nPos);
+               else
+                       (*this) = _xRow->getShort(_nPos);
+               break;
+       case DataType::SMALLINT:
+               if ( isSigned() )
+                       (*this) = _xRow->getShort(_nPos);
+               else
+                       (*this) = _xRow->getInt(_nPos);
+               break;
+       case DataType::INTEGER:
+               if ( isSigned() )
+                       (*this) = _xRow->getInt(_nPos);
+               else
+                       (*this) = _xRow->getLong(_nPos);
+               break;
+       case DataType::CLOB:
+        (*this) = 
::com::sun::star::uno::makeAny(_xRow->getCharacterStream(_nPos));
+               setTypeKind(DataType::CLOB);
+               break;
+       case DataType::BLOB:
+               (*this) = 
::com::sun::star::uno::makeAny(_xRow->getBinaryStream(_nPos));
+               setTypeKind(DataType::BLOB);
+               break;
+       default:
+               bReadData = sal_False;
+               break;
+       }
+       if ( bReadData && _xRow->wasNull() )
+               setNull();
+       setTypeKind(_nType);
+}
 




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

Reply via email to