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_DatabaseAccessConnection_idl__ 24#define __com_sun_star_sdb_DatabaseAccessConnection_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_sdbcx_DatabaseDefinition_idl__ 31#include <com/sun/star/sdbcx/DatabaseDefinition.idl> 32#endif 33 34#ifndef __com_sun_star_sdbc_Connection_idl__ 35#include <com/sun/star/sdbc/Connection.idl> 36#endif 37 38 module com { module sun { module star { module sdb { 39 40 published interface XQueriesSupplier; 41 published interface XFormDocumentsSupplier; 42 published interface XReportDocumentsSupplier; 43 published interface XSQLQueryComposerFactory; 44 45 46/** specifies a component, which supplies and stores additional information related 47 to a certain database connection, such as, DatabaseQueries, FormDocuments, and ReportDocuments. 48 Objects for data definition are supplied as well, for instance, Tables, Views, etc. 49 50 <p> 51 Implements the service 52 <type scope="com::sun::star::sdbc">Connection</type> 53 . 54 It is possible to open more than one connection at the same time, but the method 55 <member scope="com::sun::star::sdb">DatabaseAccessConnection::dispose()</member> 56 will close only one of these connections. You have to close all connections in order 57 to close the connection to the database. 58 </p> 59 60 @deprecated 61*/ 62published service DatabaseAccessConnection 63{ 64 /** supporting of the base connection service. 65 <p><B>Note:</B><br/> 66 Don't use the "dispose" method of the XComponent interface, as the DataAccess 67 uses a more sophisticated interface for closing a connection. 68 @see XDatabaseAccess 69 </p> 70 */ 71 service com::sun::star::sdbc::Connection; 72 73 /** access to the DatabaseDefinition beans of the connection. 74 */ 75 service com::sun::star::sdbcx::DatabaseDefinition; 76 77 /** access to the owning data access bean. 78 */ 79 interface com::sun::star::container::XChild; 80 81 /** returns a tool for composing queries. 82 */ 83 interface XSQLQueryComposerFactory; 84 85 /** provides access to the queries. 86 */ 87 interface XQueriesSupplier; 88}; 89 90//============================================================================= 91 92}; }; }; }; 93 94/*=========================================================================== 95===========================================================================*/ 96#endif 97