1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2/* 3 * This file is part of the LibreOffice project. 4 * 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/. 8 * 9 * This file incorporates work covered by the following license notice: 10 * 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 . 18 */ 19#ifndef __com_sun_star_sdbcx_Driver_idl__ 20#define __com_sun_star_sdbcx_Driver_idl__ 21 22#include <com/sun/star/sdbc/Driver.idl> 23 24 module com { module sun { module star { module sdbcx { 25 26 published interface XDataDefinitionSupplier; 27 published interface XCreateCatalog; 28 published interface XDropCatalog; 29 30 31/** extends the service 32 com::sun::star::sdbc::Driver 33 by beans for data definition. 34<p> 35 This service is optional for each driver. Its purpose is to define 36 a common way for database definition, as the DDL differs between most DBMS. 37</p> 38<p> 39 Definition and deletion of database catalogs can't be defined in a common 40 manner for DBMS, but it should be possible to hide much of the complexity 41 of creation and deletion of catalogs. Each driver could provide methods to 42 cover these tasks. 43</p> 44 */ 45published service Driver 46{ 47 service com::sun::star::sdbc::Driver; 48 49 /** used to get access to the catalog. 50 @see Catalog 51 */ 52 interface XDataDefinitionSupplier; 53 54 55 /** is optional for implementation. 56 */ 57 [optional] interface XCreateCatalog; 58 59 /** is optional for implementation. 60 */ 61 [optional] interface XDropCatalog; 62}; 63 64 65}; }; }; }; 66 67#endif 68 69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 70