public class OWLResultSetTableModel extends Object implements TableModel
| Constructor and Description |
|---|
OWLResultSetTableModel(TupleOWLResultSet results,
PrefixManager prefixman,
boolean hideUri,
boolean fetchAll,
int fetchSizeLimit)
This constructor creates a TableModel from a ResultSet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTableModelListener(TableModelListener l) |
void |
close()
Call this when done with the table model.
|
protected void |
finalize()
Automatically close when we're garbage collected
|
Class |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
List<String[]> |
getTabularData()
Fetch all the tuples returned by the result set.
|
Object |
getValueAt(int row,
int column)
This is the key method of TableModel: it returns the value at each cell
of the table.
|
boolean |
isCellEditable(int row,
int column) |
boolean |
isFetching()
Returns whether the table is still being populated by SQL fetched from the result object.
|
void |
removeTableModelListener(TableModelListener l) |
void |
setValueAt(Object value,
int row,
int column) |
public OWLResultSetTableModel(TupleOWLResultSet results, PrefixManager prefixman, boolean hideUri, boolean fetchAll, int fetchSizeLimit) throws org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLExceptionpublic boolean isFetching()
public List<String[]> getTabularData() throws org.semanticweb.owlapi.model.OWLException, InterruptedException
org.semanticweb.owlapi.model.OWLExceptionInterruptedExceptionpublic void close()
protected void finalize()
public int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelpublic Class getColumnClass(int column)
getColumnClass in interface TableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelpublic boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelpublic void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelpublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelCopyright © 2009–2020 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.