Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / ucb / XCachedDynamicResultSetStubFactory.idl
blobab31a085a646eda24322c39571222b380c967fbe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_ucb_XCachedDynamicResultSetStubFactory_idl__
20 #define __com_sun_star_ucb_XCachedDynamicResultSetStubFactory_idl__
22 #include <com/sun/star/uno/XInterface.idl>
23 #include <com/sun/star/ucb/XDynamicResultSet.idl>
24 #include <com/sun/star/ucb/NumberedSortingInfo.idl>
25 #include <com/sun/star/ucb/XAnyCompareFactory.idl>
28 module com { module sun { module star { module ucb {
30 /** creates a CachedDynamicResultSetStub and connects a non-remote
31 optimized DynamicResultSet to a remote optimized
32 CachedDynamicResultSet.
34 <p>Pay attention to instantiate this helper on server side where your source
35 DynamicResultSet was instantiated.
37 <p>Method
38 XCachedDynamicResultSetStubFactory::createCachedDynamicResultSetStub()
39 can be used to create a stub on server side.
41 <p>If you have instantiated a CachedDynamicResultSet on client
42 side already, use method connectToCache() to connect your
43 given DynamicResultSet with this Cache.
45 <p>The needed cache on server side you can create using
46 XCachedDynamicResultSetFactory.
49 published interface XCachedDynamicResultSetStubFactory: com::sun::star::uno::XInterface
51 /** creates a remote optimizes XDynamicResultSet.
53 @param Source
54 must be an instance of service DynamicResultSet.
56 @returns
57 an instance of service CachedDynamicResultSetStub.
60 com::sun::star::ucb::XDynamicResultSet createCachedDynamicResultSetStub(
61 [in] com::sun::star::ucb::XDynamicResultSet Source );
63 /** If you have instantiated a CachedDynamicResultSet on
64 client side already, use this to connect your given Source on server
65 side to the TargetCache.
67 @param Source
68 is an instance of service DynamicResultSet.
70 @param TargetCache
71 is an instance of service CachedDynamicResultSet.
73 @param SortingInfo
74 can be an empty sequence. Otherwise, Source will be sorted according
75 to the given sorting data.
77 @param CompareFactory
78 will be ignored unless SortingInfo is not empty. Then the supplied
79 factory will be used to instantiate objects used to compare the
80 properties that are involved in sorting.
82 @throws ListenerAlreadySetException
83 if \p Source is already in use.
85 @throws AlreadyInitializedException
86 if \p TargetCache already has been initialized.
88 void connectToCache(
89 [in] com::sun::star::ucb::XDynamicResultSet Source
90 , [in] com::sun::star::ucb::XDynamicResultSet TargetCache
91 , [in] sequence< com::sun::star::ucb::NumberedSortingInfo > SortingInfo
92 , [in] com::sun::star::ucb::XAnyCompareFactory CompareFactory
94 raises(
95 com::sun::star::ucb::ListenerAlreadySetException
96 , com::sun::star::ucb::AlreadyInitializedException
101 }; }; }; };
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */