org.jscience.util
Class ResultSetMetaDataTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.jscience.util.ResultSetMetaDataTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ResultSetMetaDataTableModel
extends javax.swing.table.AbstractTableModel

ResultSetMetaDataTableModel provides a simple way to display the meta data of a ResultSet.

Since:
10/24/2002
See Also:
JTable, JDBC, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ResultSetMetaDataTableModel(java.sql.ResultSetMetaData metaData)
          Creates a new ResultSetMetaDataTableModel object.
 
Method Summary
 int getColumnCount()
          DOCUMENT ME!
 java.lang.String getColumnName(int column)
          DOCUMENT ME!
 java.sql.ResultSetMetaData getResultSetMetaData()
          DOCUMENT ME!
 int getRowCount()
          DOCUMENT ME!
 java.lang.Object getValueAt(int row, int column)
          DOCUMENT ME!
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetMetaDataTableModel

public ResultSetMetaDataTableModel(java.sql.ResultSetMetaData metaData)
                            throws java.sql.SQLException
Creates a new ResultSetMetaDataTableModel object.

Parameters:
metaData - DOCUMENT ME!
Throws:
java.sql.SQLException - DOCUMENT ME!
Method Detail

getResultSetMetaData

public java.sql.ResultSetMetaData getResultSetMetaData()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getRowCount

public int getRowCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getColumnCount

public int getColumnCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
DOCUMENT ME!

Parameters:
row - DOCUMENT ME!
column - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!

getColumnName

public java.lang.String getColumnName(int column)
DOCUMENT ME!

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
column - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!