LibreOffice
LibreOffice 6.2 SDK API Reference
Included Services | Exported Interfaces | List of all members
DatabaseAccessConnection Service Referencepublished

specifies a component, which supplies and stores additional information related to a certain database connection, such as, DatabaseQueries, FormDocuments, and ReportDocuments. More...

import"DatabaseAccessConnection.idl";

Inheritance diagram for DatabaseAccessConnection:
Connection DatabaseDefinition XChild XSQLQueryComposerFactory XQueriesSupplier XInterface XInterface XInterface XGroupsSupplier XUsersSupplier XViewsSupplier XTablesSupplier XWarningsSupplier XConnection XComponent

Included Services

service com::sun::star::sdbc::Connection
 supporting of the base connection service. More...
 
service com::sun::star::sdbcx::DatabaseDefinition
 access to the DatabaseDefinition beans of the connection. More...
 

Exported Interfaces

interface com::sun::star::container::XChild
 access to the owning data access bean. More...
 
interface XSQLQueryComposerFactory
 returns a tool for composing queries. More...
 
interface XQueriesSupplier
 provides access to the queries. More...
 
- Exported Interfaces inherited from Connection
interface com::sun::star::lang::XComponent
 controls the closing of a connection. More...
 
interface XConnection
 the main interface for interaction with a connection to a database. More...
 
interface XWarningsSupplier
 controls the chaining of warnings, which may occur on every call to the connected database. More...
 
- Exported Interfaces inherited from DatabaseDefinition
interface XTablesSupplier
 
interface XViewsSupplier
 The implementation is optional. More...
 
interface XUsersSupplier
 The implementation is optional. More...
 
interface XGroupsSupplier
 The implementation is optional. More...
 

Additional Inherited Members

- Public Member Functions inherited from XComponent
void dispose ()
 The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More...
 
void addEventListener ([in] XEventListener xListener)
 adds an event listener to the object. More...
 
void removeEventListener ([in] XEventListener aListener)
 removes an event listener from the listener list. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 
- Public Member Functions inherited from XConnection
XStatement createStatement () raises (SQLException)
 creates a new com::sun::star::sdbc::Statement object for sending SQL statements to the database. More...
 
XPreparedStatement prepareStatement ([in]string sql) raises (SQLException)
 creates a com::sun::star::sdbc::PreparedStatement object for sending parameterized SQL statements to the database. More...
 
XPreparedStatement prepareCall ([in]string sql) raises (SQLException)
 creates a com::sun::star::sdbc::CallableStatement object for calling database stored procedures. More...
 
string nativeSQL ([in]string sql) raises (SQLException)
 converts the given SQL statement into the system's native SQL grammar. More...
 
void setAutoCommit ([in] boolean autoCommit) raises (SQLException)
 sets this connection's auto-commit mode. More...
 
boolean getAutoCommit () raises (SQLException)
 gets the current auto-commit state. More...
 
void commit () raises (SQLException)
 makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection. More...
 
void rollback () raises (SQLException)
 drops all changes made since the previous commit/rollback and releases any database locks currently held by this Connection. More...
 
boolean isClosed () raises (SQLException)
 tests to see if a connection is closed. More...
 
XDatabaseMetaData getMetaData () raises (SQLException)
 gets the metadata regarding this connection's database. More...
 
void setReadOnly ([in]boolean readOnly) raises (SQLException)
 puts this connection in read-only mode as a hint to enable database optimizations. More...
 
boolean isReadOnly () raises (SQLException)
 tests to see if the connection is in read-only mode. More...
 
void setCatalog ([in]string catalog) raises (SQLException)
 sets a catalog name in order to select a subspace of this Connection's database in which to work. More...
 
string getCatalog () raises (SQLException)
 returns the Connection's current catalog name. More...
 
void setTransactionIsolation ([in]long level) raises (SQLException)
 attempts to change the transaction isolation level to the one given. More...
 
long getTransactionIsolation () raises (SQLException)
 gets this Connection's current transaction isolation level. More...
 
com::sun::star::container::XNameAccess getTypeMap () raises (SQLException)
 gets the type map object associated with this connection. More...
 
void setTypeMap ([in]com::sun::star::container::XNameAccess typeMap) raises (SQLException)
 installs the given type map as the type map for this connection. More...
 
- Public Member Functions inherited from XCloseable
void close () raises (SQLException)
 releases all resources connected to an object. More...
 
- Public Member Functions inherited from XWarningsSupplier
any getWarnings () raises (SQLException)
 returns the first warning reported by calls on an object that supports the usage of warnings. More...
 
void clearWarnings () raises (SQLException)
 clears all warnings reported for the object implementing the interface. More...
 
- Public Member Functions inherited from XTablesSupplier
com::sun::star::container::XNameAccess getTables ()
 returns the container of tables. More...
 
- Public Member Functions inherited from XChild
com::sun::star::uno::XInterface getParent ()
 grants access to the object containing this content. More...
 
void setParent ([in] com::sun::star::uno::XInterface Parent) raises ( com::sun::star::lang::NoSupportException )
 sets the parent to this object. More...
 
- Public Member Functions inherited from XSQLQueryComposerFactory
com::sun::star::sdb::XSQLQueryComposer createQueryComposer ()
 creates a new query composer. More...
 
- Public Member Functions inherited from XQueriesSupplier
com::sun::star::container::XNameAccess getQueries ()
 returns the container of queries. More...
 
- Protected Member Functions inherited from XViewsSupplier
com::sun::star::container::XNameAccess getViews ()
 returns the container of views. More...
 
- Protected Member Functions inherited from XUsersSupplier
com::sun::star::container::XNameAccess getUsers ()
 returns the container of users. More...
 
- Protected Member Functions inherited from XGroupsSupplier
com::sun::star::container::XNameAccess getGroups ()
 returns the container of groups. More...
 

Detailed Description

specifies a component, which supplies and stores additional information related to a certain database connection, such as, DatabaseQueries, FormDocuments, and ReportDocuments.

Objects for data definition are supplied as well, for instance, Tables, Views, etc.

Implements the service com::sun::star::sdbc::Connection. It is possible to open more than one connection at the same time, but the method com::sun::star::sdb::DatabaseAccessConnection::dispose() will close only one of these connections. You have to close all connections in order to close the connection to the database.

Deprecated:

Exported Interfaces

supporting of the base connection service.

Note:
Don't use the "dispose" method of the XComponent interface, as the DataAccess uses a more sophisticated interface for closing a connection.

See also
XDatabaseAccess

access to the DatabaseDefinition beans of the connection.

Exported Interfaces

access to the owning data access bean.

interface XQueriesSupplier

provides access to the queries.

returns a tool for composing queries.


The documentation for this service was generated from the following file: