interface XDatabaseAccessListener in module com::sun::star::sdb::

(Global Index)

Syntax

interface XDatabaseAccessListener : com::sun::star::lang::XEventListener ;

Description

is used for receiving "connectionChanged", "approveConnectionClose", and "connectionClosing" events posted by a database access bean.

A database access bean setting may be changed to connect to a different database. In that case, the connection of the bean must be closed and a new connection must be established. The could affect the current data processing on the bean, as it could be shared by a number of components. To prevent the bean from closing it's connection, a DatabaseAccessListener could abort the closing.

Method Summary

connectionChanged indicates that a new connection for the bean has been established.

approveConnectionClosing indicates that the connection of the bean will be closed. If there are pending actions on the connection of the bean, "approveConnectionClosing" should return false .

connectionClosing indicates that the connection will definitely be closed.

Method Details



connectionChanged

Syntax

oneway void connectionChanged (
com::sun::star::lang::EventObject event );

Description

indicates that a new connection for the bean has been established.

Parameter evenet

the event happend

approveConnectionClosing

Syntax

boolean approveConnectionClosing (
com::sun::star::lang::EventObject event );

Description

indicates that the connection of the bean will be closed. If there are pending actions on the connection of the bean, "approveConnectionClosing" should return false .

Parameter evenet

the event happend

Returns

true when approved, otherwise false

connectionClosing

Syntax

oneway void connectionClosing (
com::sun::star::lang::EventObject event );

Description

indicates that the connection will definitely be closed.

Parameter evenet

the event happend
Top of Page