1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DatabaseAccessConnection.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_sdb_DatabaseAccessConnection_idl__
31 #define __com_sun_star_sdb_DatabaseAccessConnection_idl__
33 #ifndef __com_sun_star_container_XChild_idl__
34 #include
<com
/sun
/star
/container
/XChild.idl
>
37 #ifndef __com_sun_star_sdbcx_DatabaseDefinition_idl__
38 #include
<com
/sun
/star
/sdbcx
/DatabaseDefinition.idl
>
41 #ifndef __com_sun_star_sdbc_Connection_idl__
42 #include
<com
/sun
/star
/sdbc
/Connection.idl
>
45 module com
{ module sun
{ module star
{ module sdb
{
47 published
interface XQueriesSupplier
;
48 published
interface XFormDocumentsSupplier
;
49 published
interface XReportDocumentsSupplier
;
50 published
interface XSQLQueryComposerFactory
;
53 /** specifies a component, which supplies and stores additional information related
54 to a certain database connection, such as, DatabaseQueries, FormDocuments, and ReportDocuments.
55 Objects for data definition are supplied as well, for instance, Tables, Views, etc.
58 Implements the service
59 <type scope="com::sun::star::sdbc">Connection</type>
61 It is possible to open more than one connection at the same time, but the method
62 <member scope="com::sun::star::sdb">DatabaseAccessConnection::dispose()</member>
63 will close only one of these connections. You have to close all connections in order
64 to close the connection to the database.
69 published service DatabaseAccessConnection
71 /** supporting of the base connection service.
73 Don't use the "dispose" method of the XComponent interface, as the DataAccess
74 uses a more sophisticated interface for closing a connection.
78 service com
::sun
::star
::sdbc
::Connection
;
80 /** access to the DatabaseDefinition beans of the connection.
82 service com
::sun
::star
::sdbcx
::DatabaseDefinition
;
84 /** access to the owning data access bean.
86 interface com
::sun
::star
::container
::XChild
;
88 /** returns a tool for composing queries.
90 interface XSQLQueryComposerFactory
;
92 /** provides access to the queries.
94 interface XQueriesSupplier
;
97 //=============================================================================
101 /*===========================================================================
102 ===========================================================================*/