Piggyback Connections

From OpenOffice.org Wiki

Jump to: navigation, search
Image:Book.png
PAGE_TITLE: UGlnZ3liYWNrIENvbm5lY3Rpb25z

Occasionally, there may already be a connected database row set and you want to use its connection. For instance, if a user has opened a database form. To access the same database as the row set of the form, use the connection the form is working with, not opening a second connection. For this purpose, the com.sun.star.sdb.RowSet has a property ActiveConnection that returns a connection.

Image:documentation_note.pngBe aware of the fact that the row set owns the connection it uses. That means, once the row set is deleted, the connection is no longer valid.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools