(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: sdb ::

service DatabaseContext
Description
is the context for accessing datasource.

A datasource contains information how to create a connection to a database, such as, which database driver should be used, for which user should a connection be established, etc.
The context stores datasources under a given name.

See also
DataSource
Developers Guide
Database - Data Sources in OpenOffice.org API - DatabaseContext

Exported Interfaces - Summary
::com::sun::star::container::XEnumerationAccess

Enumeration on all registered data sources.

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

NameAccess on all registered data sources. (details)

::com::sun::star::uno::XNamingService

Interface for registering new datasources.

::com::sun::star::container::XContainer

Interface for registering listener to get notified when new datasources are created or removed.

::com::sun::star::lang::XSingleServiceFactory

Interface for creation of new datasources.

XDatabaseRegistrations

allows to access and modify the configuration data for registered data source. (details)

Exported Interfaces - Details
::com::sun::star::container::XEnumerationAccess
Description
Enumeration on all registered data sources.
::com::sun::star::container::XNameAccess
Description
NameAccess on all registered data sources.

One exception is the getByName, this method also allows to ask for a DatabaseLocation.

::com::sun::star::uno::XNamingService
Description
Interface for registering new datasources.
::com::sun::star::container::XContainer
Description
Interface for registering listener to get notified when new datasources are created or removed.
::com::sun::star::lang::XSingleServiceFactory
Description
Interface for creation of new datasources.
XDatabaseRegistrations
Usage Restrictions
optional
Description
allows to access and modify the configuration data for registered data source.

The main purpose of this interface is to allow you to register data sources which you know by URL only, and have not yet loaded.

Also, it hides the details of the configuration data where the data source registrations are maintained, so if possible at all, you should use this interface, instead of modifying or querying the configuration data directly.

Since
OpenOffice.org 3.3

 
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.