~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to src/core/StoreProvider/.svn/text-base/IResultSet.cs.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
 |
3
 
 | Copyright (c) 2007 Novell, Inc.
4
 
 | All Rights Reserved.
5
 
 |
6
 
 | This program is free software; you can redistribute it and/or
7
 
 | modify it under the terms of version 2 of the GNU General Public License as
8
 
 | published by the Free Software Foundation.
9
 
 |
10
 
 | This program is distributed in the hope that it will be useful,
11
 
 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 | GNU General Public License for more details.
14
 
 |
15
 
 | You should have received a copy of the GNU General Public License
16
 
 | along with this program; if not, contact Novell, Inc.
17
 
 |
18
 
 | To contact Novell about this file by physical or electronic mail,
19
 
 | you may find current contact information at www.novell.com 
20
 
 |
21
 
 | Author: Russ Young
22
 
 |***************************************************************************/
23
 
 
24
 
using System;
25
 
 
26
 
namespace Simias.Storage.Provider
27
 
{
28
 
        public enum IndexOrigin
29
 
        {
30
 
                CUR = 0,
31
 
                END,
32
 
                SET
33
 
        }
34
 
 
35
 
        /// <summary>
36
 
        /// Result set interface.
37
 
        /// </summary>
38
 
        public interface IResultSet : IDisposable
39
 
        {
40
 
                /// <summary>
41
 
                /// Method to return the next set of objects.
42
 
                /// All the objects that can fit in the buffer will be returned.
43
 
                /// returns false when no more objects exist.
44
 
                /// </summary>
45
 
                /// <param name="buffer">Buffer used to return the objects.</param>
46
 
                /// <returns>true - objects returned. false - no more objects</returns>
47
 
                int GetNext(ref char[] buffer);
48
 
 
49
 
                /// <summary>
50
 
                /// Set the Index the specified offset from the origin.
51
 
                /// </summary>
52
 
                /// <param name="origin">The origin to move from</param>
53
 
                /// <param name="offset">The offset to move the index by.</param>
54
 
                /// <returns>True if successful.</returns>
55
 
                bool SetIndex(IndexOrigin origin, int offset);
56
 
 
57
 
                /// <summary>
58
 
                /// Gets the number of entries in the result set.
59
 
                /// </summary>
60
 
                int Count
61
 
                {
62
 
                        get;
63
 
                }
64
 
        }
65
 
}