1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FetchResult.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_ucb_FetchResult_idl__
31 #define __com_sun_star_ucb_FetchResult_idl__
33 //=============================================================================
35 module com
{ module sun
{ module star
{ module ucb
{
37 //=============================================================================
38 /** contains data of several rows of a <type>ContentResultSet</type>.
40 <p>This struct is returned from <member>XFetchProvider::fetch</member>,
44 published
struct FetchResult
46 //-------------------------------------------------------------------------
47 /** contains the demanded data.
49 <p>One any contains the data of one whole row. Those methods which
50 use this struct have to specify, what the any has to contain.
54 //-------------------------------------------------------------------------
55 /** indicates the index of the first row contained in
56 <member>FetchResult::Rows</member> in the original resultset. So if
57 <member>FetchResult::StartIndex</member> equals <code>3</code>, the
58 first element in the sequence <member>FetchResult::Rows</member>
59 contains the data of the index <code>3</code> in the original resultset.
61 <p>The following rows are one after the other, but the direction
62 depends on the value of <member>FetchResult::Direction</member>
66 //-------------------------------------------------------------------------
67 /** indicates the orientation in which the rows are fetched and set into
68 the sequence <member>FetchResult::Rows</member>.
70 <p>When <member>FetchResult::Orientation</member> equals <TRUE/>, the
71 rows in <member>FetchResult::Rows</member> are ordered in the same way
72 as in the original resultset.
76 //-------------------------------------------------------------------------
77 /** indicates whether and which error has occured, while fetching.
79 <p>The value may contain zero or more constants of the
80 <type>FetchError</type> constants group.
85 //=============================================================================