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_DatabaseAccessContext_idl__
24#define __com_sun_star_sdb_DatabaseAccessContext_idl__
25
26#ifndef __com_sun_star_container_XEnumerationAccess_idl__
27#include <com/sun/star/container/XEnumerationAccess.idl>
28#endif
29
30#ifndef __com_sun_star_container_XNameAccess_idl__
31#include <com/sun/star/container/XNameAccess.idl>
32#endif
33
34#ifndef __com_sun_star_util_XLocalizedAliases_idl__
35#include <com/sun/star/util/XLocalizedAliases.idl>
36#endif
37
38#ifndef __com_sun_star_lang_XLocalizable_idl__
39#include <com/sun/star/lang/XLocalizable.idl>
40#endif
41
42 module com {  module sun {  module star {  module sdb {
43
44/** is the context for data access beans. It allows to register aliases for database
45	access beans. It is possible to have different aliases for different locales.
46
47
48	<p>
49	A DatabaseContext stores an alias for the URL of a database access component
50	for a given locale. It is also allowed to work with a default locale. This is useful
51	in connection with Enumeration or NameAccess to the context. In common use, the
52	default language is set during the initialization of the component.
53	</p>
54	<p>
55	The service also provides a default handling for locales, where an alias isn't
56	set. The first time an alias is registered for a programmatic name, the alias
57	becomes the default for all other known locales.
58
59	</p>@see com::sun::star::util::XLocalizedAliases
60
61    @deprecated
62 */
63published service DatabaseAccessContext
64{
65	/** Enumeration on all registered data sources for a default locale.
66	 */
67	interface com::sun::star::container::XEnumerationAccess;
68
69	/** NameAccess on all registered data sources for a default locale.
70	 */
71	interface com::sun::star::container::XNameAccess;
72
73	/** Interface for registering aliases for data sources.
74	 */
75	interface com::sun::star::util::XLocalizedAliases;
76
77	/** Interface for setting and retrieving the default language.
78	 */
79	interface com::sun::star::lang::XLocalizable;
80};
81
82//=============================================================================
83
84}; }; }; };
85
86/*===========================================================================
87===========================================================================*/
88#endif
89