xref: /aoo41x/main/offapi/com/sun/star/sdb/Query.idl (revision d1766043)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_sdb_Query_idl__
24#define __com_sun_star_sdb_Query_idl__
25
26#ifndef __com_sun_star_beans_XPropertySet_idl__
27#include <com/sun/star/beans/XPropertySet.idl>
28#endif
29
30 module com {  module sun {  module star {  module sdbcx {
31 published interface XDataDescriptorFactory;
32 published interface XColumnsSupplier;
33 published interface XRename;
34};};};};
35
36#ifndef __com_sun_star_sdb_DataSettings_idl__
37#include <com/sun/star/sdb/DataSettings.idl>
38#endif
39
40#ifndef __com_sun_star_sdb_QueryDefinition_idl__
41#include <com/sun/star/sdb/QueryDefinition.idl>
42#endif
43
44 module com {  module sun {  module star {  module sdb {
45
46
47/** is a stored definition of a SQL query.
48
49	<p>
50	It can be used if there is a need to execute SQL statements more than once, or
51	if you want to format the query result fields differently from the
52	underlying table definitions.
53	</p>
54 */
55published service Query
56{
57
58	/** defines the command of the query.
59	 */
60	service com::sun::star::sdb::QueryDefinition;
61
62
63	/** is used for customization of data appearance.
64	 */
65	service com::sun::star::sdb::DataSettings;
66
67
68	/** is provided for creation of a new query descriptor based on the current information.
69	 */
70	interface com::sun::star::sdbcx::XDataDescriptorFactory;
71
72	// allows to rename the object.
73	interface com::sun::star::sdbcx::XRename;
74
75
76	/** access to the columns of the results sets query.
77	 */
78	interface com::sun::star::sdbcx::XColumnsSupplier;
79};
80
81//=============================================================================
82
83}; }; }; };
84
85/*===========================================================================
86===========================================================================*/
87#endif
88