com.antelmann.sql
Class JDBCRowModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.antelmann.sql.JDBCTableModel
com.antelmann.sql.JDBCRowModel
- All Implemented Interfaces:
- Serializable, TableModel
public class JDBCRowModel
- extends JDBCTableModel
JDBCRowModel allows to edit tables where the row is updated only
after an explicit method call.
This way, the user can edit separate fields in a row before the underlying row is updated.
- Since:
- 10/24/2002
- Author:
- Holger Antelmann
- See Also:
JTableEditor,
JDBCTableEditor,
Serialized Form
| Methods inherited from class com.antelmann.sql.JDBCTableModel |
getColumnCount, getColumnName, getConnection, getParentComponent, getResultSet, getRowCount, getTableName, isCellEditable, isEditable, isInsertMode, refresh, setColumnNames, setEditable, setInsertMode, setParentComponent |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
JDBCRowModel
public JDBCRowModel(Connection con,
String tableName)
throws SQLException
- Throws:
SQLException
updateRow
public void updateRow()
throws SQLException
- Throws:
SQLException
getValueAt
public Object getValueAt(int row,
int column)
- Specified by:
getValueAt in interface TableModel- Overrides:
getValueAt in class JDBCTableModel
setValueAt
public void setValueAt(Object value,
int row,
int column)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class JDBCTableModel
close
public void close()
throws SQLException
- closes the embedded statement used
- Overrides:
close in class JDBCTableModel
- Throws:
SQLException
finalize
protected void finalize()
throws Exception
- Overrides:
finalize in class JDBCTableModel
- Throws:
Exception
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads