Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.DataControl / Tizen.Applications.DataControl / ICursor.cs
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 using System;
17
18 namespace Tizen.Applications.DataControl
19 {
20     /// <summary>
21     /// This interface is for DataControl cursor.
22     /// </summary>
23     public interface ICursor
24     {
25         /// <summary>
26         /// Gets a column count.
27         /// </summary>
28         int GetColumnCount();
29         /// <summary>
30         /// Gets a column type.
31         /// </summary>
32         /// <param name="index">The index of column.</param>
33         ColumnType GetColumnType(int index);
34         /// <summary>
35         /// Gets a column name.
36         /// </summary>
37         /// <param name="index">The index of column.</param>
38         string GetColumnName(int index);
39         /// <summary>
40         /// Gets the numbers of rows in the cursor.
41         /// </summary>
42         long GetRowCount();
43         /// <summary>
44         /// Gets a next row.
45         /// </summary>
46         bool Next();
47         /// <summary>
48         /// Gets a prev row.
49         /// </summary>
50         bool Prev();
51         /// <summary>
52         /// Gets a first row.
53         /// </summary>
54         bool Reset();
55         /// <summary>
56         /// / Gets an int value.
57         /// </summary>
58         /// <param name="index">The index of row.</param>
59         int GetIntValue(int index);
60         /// <summary>
61         /// / Gets an int64 value.
62         /// </summary>
63         /// <param name="index">The index of row.</param>
64         Int64 GetInt64Value(int index);
65         /// <summary>
66         /// Gets an double value.
67         /// </summary>
68         /// <param name="index">The index of row.</param>
69         double GetDoubleValue(int index);
70         /// <summary>
71         /// Gets an string value.
72         /// </summary>
73         /// <param name="index">The index of row.</param>
74         string GetStringValue(int index);
75         /// <summary>
76         /// Gets a blob value.
77         /// </summary>
78         /// <param name="index">The index of row.</param>
79         byte[] GetBlobValue(int index);
80     }
81 }