ca.sqlpower.architect.swingui.table
Class ProfileTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ca.sqlpower.architect.swingui.table.ProfileTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ProfileTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ProfileTableModel(ProfileManager profileManager)
           
 
Method Summary
 void addFilter(SQLObject sqo)
          Adds a new object that passes the filter
 void addTableResultToScan(TableProfileResult tpr)
           
 void clearScanList()
           
 java.lang.Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 ProfileManager getProfileManager()
           
 java.util.List<ColumnProfileResult> getResultList()
           
 int getRowCount()
           
 java.util.List<TableProfileResult> getTableResultsToScan()
           
 java.util.List<ColumnValueCount> getTopNValueAt(int rowIndex)
          Get top N value at table cell(row), on column "TOP_VALUE"
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Get value at table cell(row,column), return the most top value on column "TOP_VALUE", not the whole list!
 boolean isErrorColumnProfile(int row)
           
 void refresh()
           
 void removeAllFilters()
          removes all filters; this will show all the columns
 void removeFiltersByRegex(SQLObject sqo)
           
 void removeTableResultToScan(TableProfileResult result)
           
 void setProfileManager(ProfileManager profileManager)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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

ProfileTableModel

public ProfileTableModel(ProfileManager profileManager)
Method Detail

removeAllFilters

public void removeAllFilters()
removes all filters; this will show all the columns


removeFiltersByRegex

public void removeFiltersByRegex(SQLObject sqo)

addFilter

public void addFilter(SQLObject sqo)
Adds a new object that passes the filter


getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Get value at table cell(row,column), return the most top value on column "TOP_VALUE", not the whole list!

Parameters:
rowIndex -
columnIndex -
Returns:

getTopNValueAt

public java.util.List<ColumnValueCount> getTopNValueAt(int rowIndex)
Get top N value at table cell(row), on column "TOP_VALUE"

Parameters:
rowIndex -
Returns:
List of top N Value

isErrorColumnProfile

public boolean isErrorColumnProfile(int row)

getProfileManager

public ProfileManager getProfileManager()

refresh

public void refresh()

setProfileManager

public void setProfileManager(ProfileManager profileManager)

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getResultList

public java.util.List<ColumnProfileResult> getResultList()

addTableResultToScan

public void addTableResultToScan(TableProfileResult tpr)

getTableResultsToScan

public java.util.List<TableProfileResult> getTableResultsToScan()

clearScanList

public void clearScanList()

removeTableResultToScan

public void removeTableResultToScan(TableProfileResult result)


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca