2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
\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
8 // http://www.apache.org/licenses/LICENSE-2.0
\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
18 * @file FIoDataRow.cpp
\r
19 * @brief This is the implementation file for the DataRow class.
\r
22 #include <FBaseSysLog.h>
\r
23 #include <FIoDataRow.h>
\r
25 #include <FIo_DataRowImpl.h>
\r
27 #define FIO_DATAROW_COL_NUM_MAX 999
\r
29 using namespace Tizen::Base;
\r
31 namespace Tizen { namespace Io
\r
34 DataRow::DataRow(void)
\r
35 : __pDataRowImpl(null)
\r
37 __pDataRowImpl = new (std::nothrow) _DataRowImpl;
\r
39 SysTryReturnVoidResult(NID_IO, __pDataRowImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
\r
42 DataRow::~DataRow(void)
\r
44 delete __pDataRowImpl;
\r
48 DataRow::SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue)
\r
50 return __pDataRowImpl->SetBlobAt(columnIndex, pValue);
\r
54 DataRow::SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value)
\r
56 return __pDataRowImpl->SetDateTimeAt(columnIndex, value);
\r
60 DataRow::SetDoubleAt(int columnIndex, double value)
\r
62 return __pDataRowImpl->SetDoubleAt(columnIndex, value);
\r
66 DataRow::SetIntAt(int columnIndex, int value)
\r
68 return __pDataRowImpl->SetIntAt(columnIndex, value);
\r
72 DataRow::SetInt64At(int columnIndex, long long value)
\r
74 return __pDataRowImpl->SetInt64At(columnIndex, value);
\r
78 DataRow::SetStringAt(int columnIndex, const Tizen::Base::String& value)
\r
80 return __pDataRowImpl->SetStringAt(columnIndex, value);
\r