Merge "Fix the defect of calculating time" into tizen_2.2
[platform/framework/native/appfw.git] / src / io / FIoDataRow.cpp
1 //\r
2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
3 //\r
4 // Licensed under the Apache License, Version 2.0 (the License);\r
5 // you may not use this file except in compliance with the License.\r
6 // You may obtain a copy of the License at\r
7 //\r
8 //     http://www.apache.org/licenses/LICENSE-2.0\r
9 //\r
10 // Unless required by applicable law or agreed to in writing, software\r
11 // distributed under the License is distributed on an "AS IS" BASIS,\r
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 // See the License for the specific language governing permissions and\r
14 // limitations under the License.\r
15 //\r
16 \r
17 /**\r
18 * @file         FIoDataRow.cpp\r
19 * @brief                This is the implementation file for the DataRow class.\r
20 */\r
21 \r
22 #include <FBaseSysLog.h>\r
23 #include <FIoDataRow.h>\r
24 \r
25 #include <FIo_DataRowImpl.h>\r
26 \r
27 #define FIO_DATAROW_COL_NUM_MAX 999\r
28 \r
29 using namespace Tizen::Base;\r
30 \r
31 namespace Tizen { namespace Io\r
32 {\r
33 \r
34 DataRow::DataRow(void)\r
35         : __pDataRowImpl(null)\r
36 {\r
37         __pDataRowImpl = new (std::nothrow) _DataRowImpl;\r
38 \r
39         SysTryReturnVoidResult(NID_IO, __pDataRowImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");\r
40 }\r
41 \r
42 DataRow::~DataRow(void)\r
43 {\r
44         delete __pDataRowImpl;\r
45 }\r
46 \r
47 result\r
48 DataRow::SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue)\r
49 {\r
50         return __pDataRowImpl->SetBlobAt(columnIndex, pValue);\r
51 }\r
52 \r
53 result\r
54 DataRow::SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value)\r
55 {\r
56         return __pDataRowImpl->SetDateTimeAt(columnIndex, value);\r
57 }\r
58 \r
59 result\r
60 DataRow::SetDoubleAt(int columnIndex, double value)\r
61 {\r
62         return __pDataRowImpl->SetDoubleAt(columnIndex, value);\r
63 }\r
64 \r
65 result\r
66 DataRow::SetIntAt(int columnIndex, int value)\r
67 {\r
68         return __pDataRowImpl->SetIntAt(columnIndex, value);\r
69 }\r
70 \r
71 result\r
72 DataRow::SetInt64At(int columnIndex, long long value)\r
73 {\r
74         return __pDataRowImpl->SetInt64At(columnIndex, value);\r
75 }\r
76 \r
77 result\r
78 DataRow::SetStringAt(int columnIndex, const Tizen::Base::String& value)\r
79 {\r
80         return __pDataRowImpl->SetStringAt(columnIndex, value);\r
81 }\r
82 \r
83 }} // Tizen::Io\r
84 \r