update dev300-m58
[ooovba.git] / offapi / com / sun / star / sdb / DatabaseContext.idl
blob36cd6450b527857c9e6e65e97ea430798f0163ff
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DatabaseContext.idl,v $
10 * $Revision: 1.11 $
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_DatabaseContext_idl__
31 #define __com_sun_star_sdb_DatabaseContext_idl__
33 #ifndef __com_sun_star_container_XEnumerationAccess_idl__
34 #include <com/sun/star/container/XEnumerationAccess.idl>
35 #endif
37 #ifndef __com_sun_star_container_XContainer_idl__
38 #include <com/sun/star/container/XContainer.idl>
39 #endif
41 #ifndef __com_sun_star_lang_XSingleServiceFactory_idl__
42 #include <com/sun/star/lang/XSingleServiceFactory.idl>
43 #endif
45 #ifndef __com_sun_star_container_XNameAccess_idl__
46 #include <com/sun/star/container/XNameAccess.idl>
47 #endif
49 #ifndef __com_sun_star_uno_XNamingService_idl__
50 #include <com/sun/star/uno/XNamingService.idl>
51 #endif
53 module com { module sun { module star { module sdb {
55 /** is the context for accessing datasource.
57 <p>
58 A datasource contains information how to create a connection to a database, such as,
59 which database driver should be used, for which user should a connection be established, etc.
60 <br/>
61 The context stores datasources under a given name.
63 </p>
64 @see com::sun::star::sdb::DataSource
66 published service DatabaseContext
69 /** Enumeration on all registered data sources.
71 interface com::sun::star::container::XEnumerationAccess;
74 /** NameAccess on all registered data sources.
75 <p>One exception is the <method "com.sun.star.container.XNameAccess">getByName</method>, this method also allows to ask
76 for a <member "DataAccessDescriptor">DatabaseLocation</member>.
77 </p>
79 interface com::sun::star::container::XNameAccess;
81 /** Interface for registering new datasources.
83 interface com::sun::star::uno::XNamingService;
85 /** Interface for registering listener to get notified when new datasources are created or removed.
87 interface com::sun::star::container::XContainer;
89 /** Interface for creation of new datasources.
91 interface com::sun::star::lang::XSingleServiceFactory;
92 };
94 //=============================================================================
96 }; }; }; };
98 /*===========================================================================
99 ===========================================================================*/
100 #endif