2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 namespace Tizen.Applications.DataControl
21 /// This interface is for DataControl cursor.
23 public interface ICursor
26 /// Gets a column count.
30 /// Gets a column type.
32 /// <param name="index">The index of column.</param>
33 ColumnType GetColumnType(int index);
35 /// Gets a column name.
37 /// <param name="index">The index of column.</param>
38 string GetColumnName(int index);
40 /// Gets the numbers of rows in the cursor.
56 /// / Gets an int value.
58 /// <param name="index">The index of row.</param>
59 int GetIntValue(int index);
61 /// / Gets an int64 value.
63 /// <param name="index">The index of row.</param>
64 Int64 GetInt64Value(int index);
66 /// Gets an double value.
68 /// <param name="index">The index of row.</param>
69 double GetDoubleValue(int index);
71 /// Gets an string value.
73 /// <param name="index">The index of row.</param>
74 string GetStringValue(int index);
76 /// Gets a blob value.
78 /// <param name="index">The index of row.</param>
79 byte[] GetBlobValue(int index);