|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.result.UpdatableRow
public class UpdatableRow
This class is used for updatable result sets. An updatable row provides functions to update the current row in a result set.
| Constructor Summary | |
|---|---|
UpdatableRow(JdbcConnection conn,
ResultInterface result)
Construct a new object that is linked to the result set. |
|
| Method Summary | |
|---|---|
void |
deleteRow(Value[] current)
Delete the given row in the database. |
void |
insertRow(Value[] row)
Insert a new row into the database. |
boolean |
isUpdatable()
Check if this result set is updatable. |
Value[] |
readRow(Value[] row)
Re-reads a row from the database and updates the values in the array. |
void |
updateRow(Value[] current,
Value[] updateRow)
Update a row in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdatableRow(JdbcConnection conn,
ResultInterface result)
throws java.sql.SQLException
conn - the database connectionresult - the result
java.sql.SQLException| Method Detail |
|---|
public boolean isUpdatable()
public Value[] readRow(Value[] row)
throws java.sql.SQLException
row - the values that contain the key
java.sql.SQLException
public void deleteRow(Value[] current)
throws java.sql.SQLException
current - the row
java.sql.SQLException - if this row has already been deleted
public void updateRow(Value[] current,
Value[] updateRow)
throws java.sql.SQLException
current - the old rowupdateRow - the new row
java.sql.SQLException - if the row has been deleted
public void insertRow(Value[] row)
throws java.sql.SQLException
row - the new row
java.sql.SQLException - if the row could not be inserted
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||