interface XDatabaseForm in module com::sun::star::form::

(Global Index)

[ DEPRECATED ]

Syntax

interface XDatabaseForm : com::sun::star::form::XUpdateBroadcaster ;

Description

interface provides functionality to implement database-related forms.

After a database form is loaded, it is connected to a data source which is in common a result set of an executed database query. So a database form provides the data for the components that it contains.

Method Summary

getConnection

load starts the data processing.

unload stops the data processing of the database form.

deleteRecords provides a way to delete more than one record at a time.

addLoadListener adds the specified listener to receive events "loaded" and "unloaded."

removeLoadListener removes the specified listener.

addPositioningListener adds the specified listener to receive event "positioned."

removePositioningListener removes the specified listener.

addInsertListener adds the specified listener to receive events "inserting" and "inserted."

removeInsertListener removes the specified listener.

addRestoreListener adds the specified listener to receive the event "restored."

removeRestoreListener removes the specified listener.

addDeleteListener adds the specified listener to receive events "approveDelete" and "deleted."

removeDeleteListener removes the specified listener.

Known Services Which Export this Interface

com::sun::star::form::component::DatabaseForm

Method Details



getConnection

Syntax

com::sun::star::data::XDatabaseConnection getConnection ();

Returns

the current connection of the database form, this may be a database or a database connection.

This is only available if the form is loaded.


load

Syntax

oneway void load ();

Description

starts the data processing.

It establishes a connection to the related data source.

See also

XLoadListener

unload

Syntax

oneway void unload ();

Description

stops the data processing of the database form.

See also

XLoadListener

deleteRecords

Syntax

long deleteRecords (
sequence< any > aBookmarks );

Description

provides a way to delete more than one record at a time.

A record is identified by its bookmark.

See also

XDatabaseCursor

addLoadListener

Syntax

oneway void addLoadListener (
com::sun::star::form::XLoadListener aListener );

Description

adds the specified listener to receive events "loaded" and "unloaded."


removeLoadListener

Syntax

oneway void removeLoadListener (
com::sun::star::form::XLoadListener aListener );

Description

removes the specified listener.


addPositioningListener

Syntax

oneway void addPositioningListener (
com::sun::star::form::XPositioningListener aListener );

Description

adds the specified listener to receive event "positioned."


removePositioningListener

Syntax

oneway void removePositioningListener (
com::sun::star::form::XPositioningListener aListener );

Description

removes the specified listener.


addInsertListener

Syntax

oneway void addInsertListener (
com::sun::star::form::XInsertListener aListener );

Description

adds the specified listener to receive events "inserting" and "inserted."


removeInsertListener

Syntax

oneway void removeInsertListener (
com::sun::star::form::XInsertListener aListener );

Description

removes the specified listener.


addRestoreListener

Syntax

oneway void addRestoreListener (
com::sun::star::form::XRestoreListener aListener );

Description

adds the specified listener to receive the event "restored."


removeRestoreListener

Syntax

oneway void removeRestoreListener (
com::sun::star::form::XRestoreListener aListener );

Description

removes the specified listener.


addDeleteListener

Syntax

oneway void addDeleteListener (
com::sun::star::form::XDeleteListener aListener );

Description

adds the specified listener to receive events "approveDelete" and "deleted."


removeDeleteListener

Syntax

oneway void removeDeleteListener (
com::sun::star::form::XDeleteListener aListener );

Description

removes the specified listener.

Top of Page