Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: form ::

interface XDatabaseForm

Base Interface
com::sun::star::form::XUpdateBroadcaster

[ DEPRECATED ]
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.



Known Services which Export this Interface

com::sun::star::form::component::DatabaseForm [ DEPRECATED ]
This service specifies a form which is connected to a database and displays the results of SQL queries. It provides the possiblity of adding new data records, modifying existing ones, or deleting them.

Methods' 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.

Methods' Details

getConnection
 
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
 
[ oneway ] void
load();
Description
starts the data processing.

It establishes a connection to the related data source.

See also
XLoadListener
unload
 
[ oneway ] void
unload();
Description
stops the data processing of the database form.
See also
XLoadListener
deleteRecords
 
long
deleteRecords(
[ in ] 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
 
[ oneway ] void
addLoadListener(
[ in ] com::sun::star::form::XLoadListener aListener );

Description
adds the specified listener to receive events "loaded" and "unloaded."
removeLoadListener
 
[ oneway ] void
removeLoadListener(
[ in ] com::sun::star::form::XLoadListener aListener );

Description
removes the specified listener.
addPositioningListener
 
[ oneway ] void
addPositioningListener(
[ in ] com::sun::star::form::XPositioningListener aListener );

Description
adds the specified listener to receive event "positioned."
removePositioningListener
 
[ oneway ] void
removePositioningListener(
[ in ] com::sun::star::form::XPositioningListener aListener );

Description
removes the specified listener.
addInsertListener
 
[ oneway ] void
addInsertListener(
[ in ] com::sun::star::form::XInsertListener aListener );

Description
adds the specified listener to receive events "inserting" and "inserted."
removeInsertListener
 
[ oneway ] void
removeInsertListener(
[ in ] com::sun::star::form::XInsertListener aListener );

Description
removes the specified listener.
addRestoreListener
 
[ oneway ] void
addRestoreListener(
[ in ] com::sun::star::form::XRestoreListener aListener );

Description
adds the specified listener to receive the event "restored."
removeRestoreListener
 
[ oneway ] void
removeRestoreListener(
[ in ] com::sun::star::form::XRestoreListener aListener );

Description
removes the specified listener.
addDeleteListener
 
[ oneway ] void
addDeleteListener(
[ in ] com::sun::star::form::XDeleteListener aListener );

Description
adds the specified listener to receive events "approveDelete" and "deleted."
removeDeleteListener
 
[ oneway ] void
removeDeleteListener(
[ in ] com::sun::star::form::XDeleteListener aListener );

Description
removes the specified listener.

Top of Page