public class UpdatableRow extends 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 SQLException
conn
- the database connectionresult
- the resultSQLException
public boolean isUpdatable()
public Value[] readRow(Value[] row) throws SQLException
row
- the values that contain the keySQLException
public void deleteRow(Value[] current) throws SQLException
current
- the rowSQLException
- if this row has already been deletedpublic void updateRow(Value[] current, Value[] updateRow) throws SQLException
current
- the old rowupdateRow
- the new rowSQLException
- if the row has been deletedpublic void insertRow(Value[] row) throws SQLException
row
- the new rowSQLException
- if the row could not be insertedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.