JIDE 3.5.15

com.jidesoft.database
Class ResultSetTableModelCrudSupport

java.lang.Object
  extended by com.jidesoft.database.ResultSetTableModelCrudSupport
All Implemented Interfaces:
CrudRowOperations

public class ResultSetTableModelCrudSupport
extends Object
implements CrudRowOperations


Constructor Summary
ResultSetTableModelCrudSupport(ResultSetTableModel rs)
           
 
Method Summary
protected  Record createRowRecord()
           
 void deleteRow(int rowIndex)
          Delete data of a designated row.
 ResultSetTableModel getResultSetTableModel()
           
 void insertRow(Record record)
          Add a row to the table model.
 Record readRow(int rowIndex)
          Read data of a designated row.
 void setResultSetTableModel(ResultSetTableModel _resultsetTableModel)
           
 void updateRow(int rowIndex, Record record)
          Update data of a designated row with data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetTableModelCrudSupport

public ResultSetTableModelCrudSupport(ResultSetTableModel rs)
Method Detail

getResultSetTableModel

public ResultSetTableModel getResultSetTableModel()

setResultSetTableModel

public void setResultSetTableModel(ResultSetTableModel _resultsetTableModel)

insertRow

public void insertRow(Record record)
               throws SQLException
Description copied from interface: CrudRowOperations
Add a row to the table model.

Specified by:
insertRow in interface CrudRowOperations
Parameters:
record - the data structure
Throws:
SQLException

readRow

public Record readRow(int rowIndex)
               throws SQLException
Description copied from interface: CrudRowOperations
Read data of a designated row.

Specified by:
readRow in interface CrudRowOperations
Parameters:
rowIndex - the row index
Returns:
the data structure
Throws:
SQLException

createRowRecord

protected Record createRowRecord()

updateRow

public void updateRow(int rowIndex,
                      Record record)
               throws SQLException
Description copied from interface: CrudRowOperations
Update data of a designated row with data.

Specified by:
updateRow in interface CrudRowOperations
Parameters:
rowIndex - the row index
record - the data array
Throws:
SQLException

deleteRow

public void deleteRow(int rowIndex)
               throws SQLException
Description copied from interface: CrudRowOperations
Delete data of a designated row.

Specified by:
deleteRow in interface CrudRowOperations
Parameters:
rowIndex - the row index
Throws:
SQLException

JIDE 3.5.15