1
/****************************************************************************
3
| Copyright (c) 2007 Novell, Inc.
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.
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.
15
| You should have received a copy of the GNU General Public License
16
| along with this program; if not, contact Novell, Inc.
18
| To contact Novell about this file by physical or electronic mail,
19
| you may find current contact information at www.novell.com
22
|***************************************************************************/
26
namespace Simias.Storage.Provider
28
public enum IndexOrigin
36
/// Result set interface.
38
public interface IResultSet : IDisposable
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.
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);
50
/// Set the Index the specified offset from the origin.
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);
58
/// Gets the number of entries in the result set.