2 // Open Service Platform
\r
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Apache License, Version 2.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://www.apache.org/licenses/LICENSE-2.0
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an "AS IS" BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
19 * @file FIoDataRow.h
\r
20 * @brief This is the header file for the %DataRow class.
\r
22 * This header file contains the declarations of the %DataRow class.
\r
25 #ifndef _FIO_DATA_ROW_H_
\r
26 #define _FIO_DATA_ROW_H_
\r
28 #include <FBaseObject.h>
\r
29 #include <FBaseByteBuffer.h>
\r
30 #include <FBaseDateTime.h>
\r
32 namespace Tizen { namespace Io
\r
38 * @brief This class provides methods to create a row in in-memory table.
\r
42 * @final This class is not intended for extension.
\r
44 * The %DataRow class provides methods to create a row in in-memory table.
\r
46 * @see Tizen::Io::DataSet
\r
48 class _OSP_EXPORT_ DataRow
\r
49 : public Tizen::Base::Object
\r
54 * This destructor overrides Tizen::Base::Object::~Object().
\r
58 virtual ~DataRow(void);
\r
61 * Sets a @c ByteBuffer value to the column whose index is specified.
\r
65 * @return An error code
\r
66 * @param[in] columnIndex The index of the column whose value is set @n
\r
67 * The column index starts from 0.
\r
68 * @param[in] pValue The value to set @n
\r
69 * The specified @c pValue is pointer to user-provided @c ByteBuffer type buffer.
\r
70 * @exception E_SUCCESS The method is successful.
\r
71 * @exception E_INVALID_ARG Either of the following conditions has occurred: @n
\r
72 * - The specified @c columnIndex is out of range.
\r
73 * - The specified @c pValue is null.
\r
74 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
75 * @remarks This method performs a shallow copy. It copies only the pointer; not the element itself. @n
\r
76 * The platform will take the ownership of @c pValue after calling this method.
\r
78 result SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue);
\r
82 * Sets a @c DateTime value to the column whose index is specified.
\r
86 * @return An error code
\r
87 * @param[in] columnIndex The index of the column whose value is set @n
\r
88 * The column index starts from 0.
\r
89 * @param[in] value The value to set
\r
90 * @exception E_SUCCESS The method is successful.
\r
91 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
92 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
94 result SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value);
\r
98 * Sets a @c double value to the column whose index is specified.
\r
102 * @return An error code
\r
103 * @param[in] columnIndex The index of the column whose value is set @n
\r
104 * The column index starts from 0.
\r
105 * @param[in] value The value to set
\r
106 * @exception E_SUCCESS The method is successful.
\r
107 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
108 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
110 result SetDoubleAt(int columnIndex, double value);
\r
113 * Sets an @c int value to the column whose index is specified.
\r
117 * @return An error code
\r
118 * @param[in] columnIndex The index of the column whose value is set @n
\r
119 * The column index starts from 0.
\r
120 * @param[in] value The value to set
\r
121 * @exception E_SUCCESS The method is successful.
\r
122 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
123 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
125 result SetIntAt(int columnIndex, int value);
\r
128 * Sets a @c long @c long value to the column whose index is specified.
\r
132 * @return An error code
\r
133 * @param[in] columnIndex The index of the column whose value is set @n
\r
134 * The column index starts from 0.
\r
135 * @param[in] value The value to set
\r
136 * @exception E_SUCCESS The method is successful.
\r
137 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
138 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
140 result SetInt64At(int columnIndex, long long value);
\r
143 * Sets a @c String value to the column whose index is specified.
\r
147 * @return An error code
\r
148 * @param[in] columnIndex The index of the column whose value is set @n
\r
149 * The column index starts from 0.
\r
150 * @param[in] value The value to set
\r
151 * @exception E_SUCCESS The method is successful.
\r
152 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
153 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
155 result SetStringAt(int columnIndex, const Tizen::Base::String& value);
\r
159 // This default constructor is intentionally declared as private so that only the platform can create an instance.
\r
166 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
\r
170 DataRow(const DataRow& rhs);
\r
173 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
\r
177 DataRow& operator =(const DataRow& rhs);
\r
179 class _DataRowImpl* __pDataRowImpl;
\r
180 friend class _DataRowImpl;
\r
186 #endif // _FIO_DATA_ROW_H_
\r