2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FIo_DataRowImpl.h
20 * @brief This is the header file for the %_DataRowImpl class.
22 * This header file contains declarations of the %_DataRowImpl class.
25 #ifndef _FIO_INTERNAL_DATAROW_IMPL_H_
26 #define _FIO_INTERNAL_DATAROW_IMPL_H_
28 #include <unique_ptr.h>
29 #include <FIoDbTypes.h>
30 #include <FOspConfig.h>
32 #include <FIoDataRow.h>
34 namespace Tizen { namespace Base
41 namespace Tizen { namespace Io
45 : public Tizen::Base::Object
50 virtual int GetHashCode(void) const;
57 Tizen::Base::Object* pObj;
63 * @brief This class implements the DataRow.
66 * @see Tizen::Io::DataRow
69 : public Tizen::Base::Object
75 virtual ~_DataRowImpl(void);
77 result SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue);
79 result SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value);
81 result SetDoubleAt(int columnIndex, double value);
83 result SetIntAt(int columnIndex, int value);
85 result SetInt64At(int columnIndex, long long value);
87 result SetStringAt(int columnIndex, const Tizen::Base::String& value);
89 static int GetHashCode(const Tizen::Base::Collection::ArrayList* pRowArrayList);
91 static _DataRowImpl* GetInstance(DataRow& dataRow);
93 static const _DataRowImpl* GetInstance(const DataRow& dataRow);
95 static DataRow* CreateDataRowInstanceN(int columnCount, Tizen::Base::Collection::ArrayList* pArrayListRow);
97 Tizen::Base::Collection::ArrayList* GetRowArrayList(void) const;
99 result Clone(const Tizen::Base::Collection::ArrayList* pOthersRowArrayList) const;
102 Tizen::Base::Collection::ArrayList* __pDataRow;
103 Tizen::Base::Collection::ArrayList* __pColumnTypeList;
106 bool __dataSetDeleted;
107 Tizen::Base::Collection::LinkedList* __pRowImplList;
109 friend class _DataSetImpl;
115 #endif //_FIO_INTERNAL_DATAROW_IMPL_H_