xref: /trunk/main/offapi/com/sun/star/sdbcx/Driver.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_sdbcx_Driver_idl__
24#define __com_sun_star_sdbcx_Driver_idl__
25
26#ifndef __com_sun_star_sdbc_Driver_idl__
27#include <com/sun/star/sdbc/Driver.idl>
28#endif
29
30 module com {  module sun {  module star {  module sdbcx {
31
32 published interface XDataDefinitionSupplier;
33 published interface XCreateCatalog;
34 published interface XDropCatalog;
35
36
37/** extends the service
38	<type scope="com::sun::star::sdbc">Driver</type>
39	by beans for data definition.
40<p>
41	This service is optional for each driver. Its purpose is to define
42	a common way for database definition, as the DDL differs between most DBMS.
43</p>
44<p>
45	Definition and deletion of database catalogs can't be defined in a common
46	manner for DBMS, but it should be possible to hide much of the complexity
47	of creation and deletion of catalogs. Each driver could provide methods to
48	cover these tasks.
49</p>
50 */
51published service Driver
52{
53	service com::sun::star::sdbc::Driver;
54
55	/** used to get access to the catalog.
56		@see Catalog
57	*/
58	interface XDataDefinitionSupplier;
59
60
61	/** is optional for implementation.
62	 */
63	[optional] interface XCreateCatalog;
64
65	/** is optional for implementation.
66	 */
67	[optional] interface XDropCatalog;
68};
69
70//=============================================================================
71
72}; }; }; };
73
74#endif
75