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: DatabaseContext.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_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
>
37 #ifndef __com_sun_star_container_XContainer_idl__
38 #include
<com
/sun
/star
/container
/XContainer.idl
>
41 #ifndef __com_sun_star_lang_XSingleServiceFactory_idl__
42 #include
<com
/sun
/star
/lang
/XSingleServiceFactory.idl
>
45 #ifndef __com_sun_star_container_XNameAccess_idl__
46 #include
<com
/sun
/star
/container
/XNameAccess.idl
>
49 #ifndef __com_sun_star_uno_XNamingService_idl__
50 #include
<com
/sun
/star
/uno
/XNamingService.idl
>
53 module com
{ module sun
{ module star
{ module sdb
{
55 /** is the context for accessing datasource.
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.
61 The context stores datasources under a given name.
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>.
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
;
94 //=============================================================================
98 /*===========================================================================
99 ===========================================================================*/