com :: sun :: star :: sdb :: interface XDatabaseAccessListener
- Base Interface
- 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.
Methods' 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.
|
Methods' Details
|
- connectionChanged
-  
- [ oneway ] void
connectionChanged(
-
- Description
- indicates that a new connection for the bean has been established.
- Parameter evenet
-
the event happend
|
- approveConnectionClosing
-  
- boolean
approveConnectionClosing(
-
- 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
-  
- [ oneway ] void
connectionClosing(
-
- Description
- indicates that the connection will definitely be closed.
- Parameter evenet
-
the event happend
|
Top of Page
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.