public class StoredQueryTableModel extends ResultSetTableModel implements ISelectableRecords, ISortableColumns, IFilteredColumns
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StoredQueryTableModel.FIELDS |
ISelectableRecords.SELECTION_MODE| Modifier and Type | Field and Description |
|---|---|
protected TypedListModel<Property> |
fields |
protected Hashtable<Integer,Boolean> |
order |
protected Hashtable<String,Profile<Property>> |
properties |
protected PropertyChangeListener |
propertyListener |
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> |
queryExecutor |
protected QueryExecutor<RetrieveField> |
queryFieldExecutor |
protected net.idea.modbcum.i.IQueryRetrieval[] |
queryFields |
protected QueryExecutor<RetrieveAtomContainer> |
queryMolecule |
protected RetrieveField<Object> |
retrieveField |
protected RetrieveAtomContainer |
retrieveMolecule |
protected ISelectableRecords.SELECTION_MODE |
selectionMode |
protected StructureStatisticsProcessor |
statsProcessor |
protected AbstractStructureQuery |
storedResults |
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> |
updateExecutor |
protected StructureRecord |
workingRecord |
connection, maxRecords, recordslistenerList| Constructor and Description |
|---|
StoredQueryTableModel() |
StoredQueryTableModel(boolean chemicalsOnly) |
getRecordsNumber, getResultSet, setResultSetaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected ISelectableRecords.SELECTION_MODE selectionMode
protected AbstractStructureQuery storedResults
protected RetrieveAtomContainer retrieveMolecule
protected RetrieveField<Object> retrieveField
protected TypedListModel<Property> fields
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> updateExecutor
protected QueryExecutor<RetrieveAtomContainer> queryMolecule
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> queryExecutor
protected QueryExecutor<RetrieveField> queryFieldExecutor
protected PropertyChangeListener propertyListener
protected StructureStatisticsProcessor statsProcessor
protected net.idea.modbcum.i.IQueryRetrieval[] queryFields
protected StructureRecord workingRecord
public StoredQueryTableModel()
public StoredQueryTableModel(boolean chemicalsOnly)
public void findSimilar(SessionID session, int row, int col) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitExceptionpublic void setChemicalsOnly(boolean value)
public boolean isChemicalsOnly()
public AbstractStructureQuery getQuery()
public Connection getConnection()
public void setConnection(Connection connection) throws SQLException, net.idea.modbcum.i.exceptions.DbAmbitException
SQLExceptionnet.idea.modbcum.i.exceptions.DbAmbitExceptionpublic void setQuery(AbstractStructureQuery query) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLExceptionnet.idea.modbcum.i.exceptions.AmbitExceptionprotected Object getField(IStructureRecord record, Property fieldname) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLExceptionnet.idea.modbcum.i.exceptions.AmbitExceptionpublic org.openscience.cdk.interfaces.IAtomContainer getAtomContainer(IStructureRecord record) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLExceptionnet.idea.modbcum.i.exceptions.AmbitExceptionpublic int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic void update(int record,
IStructureRecord struc)
public void setValueAt(Object value, int record, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic String getStatsAt(IStructureRecord record)
public IStructureRecord getRecord(int rowIndex, int columnIndex)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelprotected String getLabel(IStructureRecord record, int offset)
public Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void sort(int column,
boolean ascending)
throws UnsupportedOperationException
sort in interface ISortableColumnsUnsupportedOperationExceptionpublic ISelectableRecords.SELECTION_MODE getSelection()
getSelection in interface ISelectableRecordspublic void setSelection(ISelectableRecords.SELECTION_MODE mode)
setSelection in interface ISelectableRecordsprotected void selectRecords(IStructureRecord record, boolean value) throws Exception, SQLException
ExceptionSQLExceptionprotected void selectRecords(ISelectableRecords.SELECTION_MODE mode) throws Exception, SQLException
ExceptionSQLExceptionpublic void dropFilter(int column)
throws UnsupportedOperationException
dropFilter in interface IFilteredColumnsUnsupportedOperationExceptionpublic void setFilter(int column,
Object value)
throws UnsupportedOperationException
setFilter in interface IFilteredColumnsUnsupportedOperationExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.