xref: /aoo4110/main/offapi/com/sun/star/sdb/Connection.idl (revision b1cdbd2c)
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_Connection_idl__
24#define __com_sun_star_sdb_Connection_idl__
25
26#ifndef __com_sun_star_container_XChild_idl__
27#include <com/sun/star/container/XChild.idl>
28#endif
29
30#ifndef __com_sun_star_sdbc_Connection_idl__
31#include <com/sun/star/sdbc/Connection.idl>
32#endif
33
34#ifndef __com_sun_star_sdbcx_DatabaseDefinition_idl__
35#include <com/sun/star/sdbcx/DatabaseDefinition.idl>
36#endif
37
38module com {  module sun {  module star {  module lang {
39	 published interface XMultiServiceFactory;
40};};};};
41
42 module com {  module sun {  module star {  module sdb {
43
44 published interface XSQLQueryComposerFactory;
45 published interface XQueriesSupplier;
46 published interface XCommandPreparation;
47
48 module application { interface XTableUIProvider; };
49
50/** extends the
51	<type scope="com::sun::star::sdbc">Connection</type>
52	of SDBC by providing the data definitions of a connected database.
53 */
54published service Connection
55{
56	service com::sun::star::sdbc::Connection;
57
58	/** access to the owning data source.
59	 */
60	interface com::sun::star::container::XChild;
61
62	/** interface for complex command execution.
63	 */
64	interface XCommandPreparation;
65
66	/** access to the database definition information of the connection.
67	 */
68	service com::sun::star::sdbcx::DatabaseDefinition;
69
70	/** returns a container of associated queries.
71	 */
72	interface XQueriesSupplier;
73
74	/** returns a tool for composing queries.
75	 */
76	interface XSQLQueryComposerFactory;
77
78	/** allows the creation of different services which can only exists with a connection.
79	 */
80	[optional] interface com::sun::star::lang::XMultiServiceFactory;
81
82    /** allows the connection to overrule the database application's default
83        user interface for tables.
84    */
85//    [optional] interface com::sun::star::sdb::application::XTableUIProvider;
86};
87
88//=============================================================================
89
90}; }; }; };
91
92/*===========================================================================
93===========================================================================*/
94#endif
95