| org.apache.derby.iapi.sql.execute.RowChanger
All known Subclasses: org.apache.derby.impl.sql.execute.RowChangerImpl,
RowChanger | public interface RowChanger (Code) | | Perform row at a time DML operations of tables and maintain indexes.
|
Method Summary | |
public void | close() Close this RowChanger. | public void | deleteRow(ExecRow baseRow, RowLocation baseRowLocation) Delete a row from the table and perform associated index maintenance. | public void | finish() Finish processing the changes. | public ConglomerateController | getHeapConglomerateController() Return the ConglomerateController from this RowChanger. | public void | insertRow(ExecRow baseRow) Insert a row into the table and perform associated index maintenance. | public void | open(int lockMode) Open this RowChanger.
Note to avoid the cost of fixing indexes that do not
change during update operations use openForUpdate(). | public void | open(int lockMode, boolean wait) Open this RowChanger.
Note to avoid the cost of fixing indexes that do not
change during update operations use openForUpdate(). | public void | openForUpdate(boolean[] fixOnUpdate, int lockMode, boolean wait) Open this RowChanger to avoid fixing indexes that do not change
during update operations. | public void | setIndexNames(String[] indexNames) Sets the index names of the tables indices. | public void | setRowHolder(TemporaryRowHolder rowHolder) Set the row holder for this changer to use.
If the row holder is set, it wont bother
saving copies of rows needed for deferred
processing. | public void | updateRow(ExecRow oldBaseRow, ExecRow newBaseRow, RowLocation baseRowLocation) Update a row in the table and perform associated index maintenance. |
deleteRow | public void deleteRow(ExecRow baseRow, RowLocation baseRowLocation) throws StandardException(Code) | | Delete a row from the table and perform associated index maintenance.
Parameters: baseRow - the row. Parameters: baseRowLocation - the row's base conglomeratelocation exception: StandardException - Thrown on error |
finish | public void finish() throws StandardException(Code) | | Finish processing the changes. This means applying the deferred
inserts for updates to unique indexes.
exception: StandardException - Thrown on error |
getHeapConglomerateController | public ConglomerateController getHeapConglomerateController()(Code) | | Return the ConglomerateController from this RowChanger.
This is useful when copying properties from heap to
temp conglomerate on insert/update/delete.
The ConglomerateController from this RowChanger. |
open | public void open(int lockMode) throws StandardException(Code) | | Open this RowChanger.
Note to avoid the cost of fixing indexes that do not
change during update operations use openForUpdate().
Parameters: lockMode - The lock mode to use(row or table, see TransactionController) exception: StandardException - thrown on failure to convert |
open | public void open(int lockMode, boolean wait) throws StandardException(Code) | | Open this RowChanger.
Note to avoid the cost of fixing indexes that do not
change during update operations use openForUpdate().
Parameters: lockMode - The lock mode to use(row or table, see TransactionController) Parameters: wait - If true, then the caller wants to wait for locks. False will bewhen we using a nested user xaction - we want to timeout right awayif the parent holds the lock. exception: StandardException - thrown on failure to convert |
openForUpdate | public void openForUpdate(boolean[] fixOnUpdate, int lockMode, boolean wait) throws StandardException(Code) | | Open this RowChanger to avoid fixing indexes that do not change
during update operations.
Parameters: fixOnUpdate - fixOnUpdat[ix] == true ==> fix index 'ix' onan update operation. Parameters: lockMode - The lock mode to use(row or table, see TransactionController) Parameters: wait - If true, then the caller wants to wait for locks. False will bewhen we using a nested user xaction - we want to timeout right awayif the parent holds the lock. (bug 4821) exception: StandardException - thrown on failure to convert |
setIndexNames | public void setIndexNames(String[] indexNames)(Code) | | Sets the index names of the tables indices. Used for error reporting.
Parameters: indexNames - Names of all the indices on this table. |
setRowHolder | public void setRowHolder(TemporaryRowHolder rowHolder)(Code) | | Set the row holder for this changer to use.
If the row holder is set, it wont bother
saving copies of rows needed for deferred
processing. Also, it will never close the
passed in rowHolder.
Parameters: rowHolder - the row holder |
updateRow | public void updateRow(ExecRow oldBaseRow, ExecRow newBaseRow, RowLocation baseRowLocation) throws StandardException(Code) | | Update a row in the table and perform associated index maintenance.
Parameters: oldBaseRow - the old image of the row. Parameters: newBaseRow - the new image of the row. Parameters: baseRowLocation - the row's base conglomeratelocation exception: StandardException - Thrown on error |
|
|