1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
{ module sun
{ module star
{ module sdb
{
22 /** is the context for data access beans. It allows to register aliases for database
23 access beans. It is possible to have different aliases for different locales.
27 A DatabaseContext stores an alias for the URL of a database access component
28 for a given locale. It is also allowed to work with a default locale. This is useful
29 in connection with Enumeration or NameAccess to the context. In common use, the
30 default language is set during the initialization of the component.
33 The service also provides a default handling for locales, where an alias isn't
34 set. The first time an alias is registered for a programmatic name, the alias
35 becomes the default for all other known locales.
37 </p>@see com::sun::star::util::XLocalizedAliases
41 published service DatabaseAccessContext
43 /** Enumeration on all registered data sources for a default locale.
45 interface com
::sun
::star
::container
::XEnumerationAccess
;
47 /** NameAccess on all registered data sources for a default locale.
49 interface com
::sun
::star
::container
::XNameAccess
;
51 /** Interface for registering aliases for data sources.
53 interface com
::sun
::star
::util
::XLocalizedAliases
;
55 /** Interface for setting and retrieving the default language.
57 interface com
::sun
::star
::lang
::XLocalizable
;
63 /*===========================================================================
64 ===========================================================================*/
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */