|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Perform row at a time DML operations of tables and maintain indexes.
| Method Summary | |
void |
close()
Close this RowChanger. |
void |
deleteRow(ExecRow baseRow,
RowLocation baseRowLocation)
Delete a row from the table and perform associated index maintenance. |
void |
finish()
Finish processing the changes. |
ConglomerateController |
getHeapConglomerateController()
Return the ConglomerateController from this RowChanger. |
void |
insertRow(ExecRow baseRow)
Insert a row into the table and perform associated index maintenance. |
void |
open(int lockMode)
Open this RowChanger. |
void |
openForUpdate(boolean[] fixOnUpdate,
int lockMode,
boolean wait)
Open this RowChanger to avoid fixing indexes that do not change during update operations. |
void |
setIndexNames(java.lang.String[] indexNames)
Sets the index names of the tables indices. |
void |
setRowHolder(TemporaryRowHolder rowHolder)
Set the row holder for this changer to use. |
void |
updateRow(ExecRow oldBaseRow,
ExecRow newBaseRow,
RowLocation baseRowLocation)
Update a row in the table and perform associated index maintenance. |
| Method Detail |
public void open(int lockMode)
throws StandardException
Note to avoid the cost of fixing indexes that do not change during update operations use openForUpdate().
lockMode - The lock mode to use
(row or table, see TransactionController)
StandardException - thrown on failure to convertpublic void setRowHolder(TemporaryRowHolder rowHolder)
rowHolder - the row holderpublic void setIndexNames(java.lang.String[] indexNames)
indexNames - Names of all the indices on this table.
public void openForUpdate(boolean[] fixOnUpdate,
int lockMode,
boolean wait)
throws StandardException
fixOnUpdate - fixOnUpdat[ix] == true ==> fix index 'ix' on
an update operation.lockMode - The lock mode to use
(row or table, see TransactionController)wait - If true, then the caller wants to wait for locks. False will be
when we using a nested user xaction - we want to timeout right away
if the parent holds the lock. (bug 4821)
StandardException - thrown on failure to convert
public void insertRow(ExecRow baseRow)
throws StandardException
baseRow - the row.
StandardException - Thrown on error
public void deleteRow(ExecRow baseRow,
RowLocation baseRowLocation)
throws StandardException
baseRow - the row.baseRowLocation - the row's base conglomerate
location
StandardException - Thrown on error
public void updateRow(ExecRow oldBaseRow,
ExecRow newBaseRow,
RowLocation baseRowLocation)
throws StandardException
oldBaseRow - the old image of the row.newBaseRow - the new image of the row.baseRowLocation - the row's base conglomerate
location
StandardException - Thrown on error
public void finish()
throws StandardException
StandardException - Thrown on error
public void close()
throws StandardException
StandardException - Thrown on errorpublic ConglomerateController getHeapConglomerateController()
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||