public class UpdatableRow
extends java.lang.Object
| Constructor and Description |
|---|
UpdatableRow(JdbcConnection conn,
ResultInterface result)
Construct a new object that is linked to the result set.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public UpdatableRow(JdbcConnection conn, ResultInterface result) throws java.sql.SQLException
conn - the database connectionresult - the resultjava.sql.SQLExceptionpublic boolean isUpdatable()
public Value[] readRow(Value[] row) throws java.sql.SQLException
row - the values that contain the keyjava.sql.SQLExceptionpublic void deleteRow(Value[] current) throws java.sql.SQLException
current - the rowjava.sql.SQLException - if this row has already been deletedpublic void updateRow(Value[] current, Value[] updateRow) throws java.sql.SQLException
current - the old rowupdateRow - the new rowjava.sql.SQLException - if the row has been deletedpublic void insertRow(Value[] row) throws java.sql.SQLException
row - the new rowjava.sql.SQLException - if the row could not be inserted