ooodev.adapter.sdbc.result_set_update_partial module

class ooodev.adapter.sdbc.result_set_update_partial.ResultSetUpdatePartial(component, interface=com.sun.star.sdbc.XResultSetUpdate)[source]

Bases: object

Partial class for XResultSetUpdate.

Parameters:
  • component (XResultSetUpdate) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.sdbc.XResultSetUpdate)[source]

Constructor

Parameters:
  • component (XResultSetUpdate) – UNO Component that implements com.sun.star.container.XResultSetUpdate interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XResultSetUpdate.

Return type:

None

cancel_row_updates()[source]

Cancels the updates made to a row.

This method may be called after calling an updateXXX method(s) and before calling XResultSetUpdate.updateRow() to rollback the updates made to a row. If no updates have been made or updateRow has already been called, then this method has no effect.

Return type:

None

delete_row()[source]

Deletes the current row from the result set and the underlying database.

Return type:

None

insert_row()[source]

Inserts a new row into the result set and the underlying database.

Must be on the insert row when this method is called.

Return type:

None

move_to_current_row()[source]

Moves the cursor to the remembered cursor position, usually the current row.

This method has no effect if the cursor is not on the insert row.

Return type:

None

move_to_insert_row()[source]

Moves the cursor to the insert row.

The current row is remembered while the cursor is positioned on the insert row.

Return type:

None

update_row()[source]

Updates the underlying database with the new contents of the current row.

This method cannot be called when the cursor is on the insert row.

Return type:

None