service DatabaseAccessContext in module com::sun::star::sdb::

(Global Index)

Syntax

service DatabaseAccessContext;

Description

is the context for data access beans. It allows to register aliases for database access beans. It is possible to have different aliases for different locales.

A DatabaseContext stores an alias for the URL of a database access component for a given locale. It is also allowed to work with a default locale. This is useful in connection with Enumeration or NameAccess to the context. In common use, the default language is set during the initialization of the component.

The service also provides a default handling for locales, where an alias isn't set. The first time an alias is registered for a programmatic name, the alias becomes the default for all other known locales.

See also

XLocalizedAliases

Exported Interfaces

com::sun::star::container::XEnumerationAccess

Description

Enumeration on all registered data sources for a default locale.


com::sun::star::container::XNameAccess

Description

NameAccess on all registered data sources for a default locale.


com::sun::star::util::XLocalizedAliases

Description

Interface for registering aliases for data sources.


com::sun::star::lang::XLocalizable

Description

Interface for setting and retrieving the default language.


Top of Page