LibreOffice
LibreOffice 6.2 SDK API Reference
Public Member Functions | List of all members
XIsolatedConnection Interface Referencepublished

is used for establishing isolated connections via a factory. More...

import"XIsolatedConnection.idl";

Inheritance diagram for XIsolatedConnection:
XInterface DataSource DocumentDataSource

Public Member Functions

XConnection getIsolatedConnectionWithCompletion ([in]com::sun::star::task::XInteractionHandler handler) raises (SQLException)
 attempts to establish a database connection. More...
 
XConnection getIsolatedConnection ([in]string user, [in]string password) raises (SQLException)
 attempts to establish a database connection. 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...
 

Detailed Description

is used for establishing isolated connections via a factory.

The XIsolatedConnection allows to create connections which are not shared among others as it is the case when creating connections in normal way.

See also
com::sun::star::sdb::DataSource
Since
OOo 1.1.2

Member Function Documentation

XConnection getIsolatedConnection ( [in] string  user,
[in] string  password 
)
raises (SQLException
)

attempts to establish a database connection.

Parameters
userThe user name.
passwordThe password.
Returns
A connection which is not shared.
Exceptions
com::sun::star::sdbc::SQLExceptionwhen an error occurs.
XConnection getIsolatedConnectionWithCompletion ( [in] com::sun::star::task::XInteractionHandler  handler)
raises (SQLException
)

attempts to establish a database connection.

If information is missing, such as a user's password, they are completed by user interaction.

Parameters
handlerThe handler which ask for the needed information when they are missing.
Returns
A connection which is not shared.
Exceptions
com::sun::star::sdbc::SQLExceptionwhen an error occurs.

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