2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FIo_DataRowImpl.h
19 * @brief This is the header file for the %_DataRowImpl class.
21 * This header file contains declarations of the %_DataRowImpl class.
24 #ifndef _FIO_INTERNAL_DATAROW_IMPL_H_
25 #define _FIO_INTERNAL_DATAROW_IMPL_H_
27 #include <unique_ptr.h>
28 #include <FIoDbTypes.h>
29 #include <FOspConfig.h>
31 #include <FIoDataRow.h>
33 namespace Tizen { namespace Base
40 namespace Tizen { namespace Io
44 : public Tizen::Base::Object
49 virtual int GetHashCode(void) const;
56 Tizen::Base::Object* pObj;
62 * @brief This class implements the DataRow.
65 * @see Tizen::Io::DataRow
68 : public Tizen::Base::Object
74 virtual ~_DataRowImpl(void);
76 result SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue);
78 result SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value);
80 result SetDoubleAt(int columnIndex, double value);
82 result SetIntAt(int columnIndex, int value);
84 result SetInt64At(int columnIndex, long long value);
86 result SetStringAt(int columnIndex, const Tizen::Base::String& value);
88 static int GetHashCode(const Tizen::Base::Collection::ArrayList* pRowArrayList);
90 static _DataRowImpl* GetInstance(DataRow& dataRow);
92 static const _DataRowImpl* GetInstance(const DataRow& dataRow);
94 static DataRow* CreateDataRowInstanceN(int columnCount, Tizen::Base::Collection::ArrayList* pArrayListRow);
96 Tizen::Base::Collection::ArrayList* GetRowArrayList(void) const;
98 result Clone(const Tizen::Base::Collection::ArrayList* pOthersRowArrayList) const;
101 Tizen::Base::Collection::ArrayList* __pDataRow;
102 Tizen::Base::Collection::ArrayList* __pColumnTypeList;
105 bool __dataSetDeleted;
106 Tizen::Base::Collection::LinkedList* __pRowImplList;
108 friend class _DataSetImpl;
114 #endif //_FIO_INTERNAL_DATAROW_IMPL_H_