public class ResultSetTableModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
ResultSetTableModel() |
ResultSetTableModel(ResultSet result_set)
Constructs the model.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the model of the current result set.
|
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
void |
setPreserveTableStructure(boolean status)
A property that checks for changes when a result set is updated and
preserves the layout if the updated result set looks similar.
|
void |
updateResultSet(ResultSet result_set)
Updates the result set in this model with the given ResultSet object.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public ResultSetTableModel(ResultSet result_set)
public ResultSetTableModel()
public void setPreserveTableStructure(boolean status)
public void updateResultSet(ResultSet result_set)
public void clear()
public int getRowCount()
public int getColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Object getValueAt(int row, int column)
Copyright © 2015. All rights reserved.