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.h
\r
19 * @brief This is the header file for the %DataRow class.
\r
21 * This header file contains the declarations of the %DataRow class.
\r
24 #ifndef _FIO_DATA_ROW_H_
\r
25 #define _FIO_DATA_ROW_H_
\r
27 #include <FBaseObject.h>
\r
28 #include <FBaseByteBuffer.h>
\r
29 #include <FBaseDateTime.h>
\r
31 namespace Tizen { namespace Io
\r
37 * @brief This class provides methods to create a row in in-memory table.
\r
41 * @final This class is not intended for extension.
\r
43 * The %DataRow class provides methods to create a row in in-memory table.
\r
45 * @see Tizen::Io::DataSet
\r
47 class _OSP_EXPORT_ DataRow
\r
48 : public Tizen::Base::Object
\r
53 * This destructor overrides Tizen::Base::Object::~Object().
\r
57 virtual ~DataRow(void);
\r
60 * Sets a Tizen::Base::ByteBuffer value to the column whose index is specified.
\r
64 * @return An error code
\r
65 * @param[in] columnIndex The index of the column whose value is set @n
\r
66 * The column index starts from 0.
\r
67 * @param[in] pValue The value to set @n
\r
68 * The specified @c pValue is a pointer to user-provided Tizen::Base::ByteBuffer type buffer.
\r
69 * @exception E_SUCCESS The method is successful.
\r
70 * @exception E_INVALID_ARG Either of the following conditions has occurred: @n
\r
71 * - The specified @c columnIndex is out of range.
\r
72 * - The specified @c pValue is @c null.
\r
73 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
74 * @remarks This method performs a shallow copy. It copies only the pointer; not the element itself. @n
\r
75 * The platform will take the ownership of @c pValue after calling this method.
\r
77 result SetBlobAt(int columnIndex, Tizen::Base::ByteBuffer* pValue);
\r
81 * Sets a Tizen::Base::DateTime value to the column whose index is specified.
\r
85 * @return An error code
\r
86 * @param[in] columnIndex The index of the column whose value is set @n
\r
87 * The column index starts from 0.
\r
88 * @param[in] value The value to set
\r
89 * @exception E_SUCCESS The method is successful.
\r
90 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
91 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
93 result SetDateTimeAt(int columnIndex, const Tizen::Base::DateTime& value);
\r
97 * Sets a @c double value to the column whose index is specified.
\r
101 * @return An error code
\r
102 * @param[in] columnIndex The index of the column whose value is set @n
\r
103 * The column index starts from 0.
\r
104 * @param[in] value The value to set
\r
105 * @exception E_SUCCESS The method is successful.
\r
106 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
107 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
109 result SetDoubleAt(int columnIndex, double value);
\r
112 * Sets an @c int value to the column whose index is specified.
\r
116 * @return An error code
\r
117 * @param[in] columnIndex The index of the column whose value is set @n
\r
118 * The column index starts from 0.
\r
119 * @param[in] value The value to set
\r
120 * @exception E_SUCCESS The method is successful.
\r
121 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
122 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
124 result SetIntAt(int columnIndex, int value);
\r
127 * Sets a @c long @c long value to the column whose index is specified.
\r
131 * @return An error code
\r
132 * @param[in] columnIndex The index of the column whose value is set @n
\r
133 * The column index starts from 0.
\r
134 * @param[in] value The value to set
\r
135 * @exception E_SUCCESS The method is successful.
\r
136 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
137 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
139 result SetInt64At(int columnIndex, long long value);
\r
142 * Sets a Tizen::Base::String value to the column whose index is specified.
\r
146 * @return An error code
\r
147 * @param[in] columnIndex The index of the column whose value is set @n
\r
148 * The column index starts from 0.
\r
149 * @param[in] value The value to set
\r
150 * @exception E_SUCCESS The method is successful.
\r
151 * @exception E_INVALID_ARG The specified @c columnIndex is out of range.
\r
152 * @exception E_TYPE_MISMATCH The operation has attempted to access columns of different types.
\r
154 result SetStringAt(int columnIndex, const Tizen::Base::String& value);
\r
158 // This default constructor is intentionally declared as private so that only the platform can create an instance.
\r
165 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
\r
169 DataRow(const DataRow& rhs);
\r
172 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
\r
176 DataRow& operator =(const DataRow& rhs);
\r
178 class _DataRowImpl* __pDataRowImpl;
\r
179 friend class _DataRowImpl;
\r
185 #endif // _FIO_DATA_ROW_H_
\r