com.metamatrix.console.ui.views.transactions
Class TransactionTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.metamatrix.toolbox.ui.widget.table.DefaultTableModel
              extended by com.metamatrix.console.ui.views.transactions.TransactionTableModel
All Implemented Interfaces:
EnhancedTableModel, java.io.Serializable, javax.swing.table.TableModel

public class TransactionTableModel
extends DefaultTableModel

Extension to DefaultSortableTableModel to model the Transactions tab table.

See Also:
Serialized Form

Field Summary
static int CONNECTOR_ID_COL
           
static java.lang.String CONNECTOR_ID_HDR
           
static int DATABASE_COL
           
static java.lang.String DATABASE_HDR
           
static int END_TIME_COL
           
static java.lang.String END_TIME_HDR
           
static int NUM_COLUMNS
           
static int PROCESSOR_ID_COL
           
static java.lang.String PROCESSOR_ID_HDR
           
static int REQUEST_ID_COL
           
static java.lang.String REQUEST_ID_HDR
           
static int SESSION_ID_COL
           
static java.lang.String SESSION_ID_HDR
           
static int START_TIME_COL
           
static java.lang.String START_TIME_HDR
           
static int STATUS_COL
           
static java.lang.String STATUS_HDR
           
static int TRANSACTION_ID_COL
           
static java.lang.String TRANSACTION_ID_HDR
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TransactionTableModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int columnIndex)
           
 void resetFromTransactionsList(java.util.Collection tx)
          Method to repopulate the table model based on a Collection of ServerTransaction objects.
 TransactionID transactionIDForTransactionNum(java.lang.Long transactionNum)
          Method to return a TransactionID contained within the model, given its transaction number.
 
Methods inherited from class com.metamatrix.toolbox.ui.widget.table.DefaultTableModel
addColumn, addColumnEditStatus, createColumnEditStatusList, initializeDefaultTableModel, isCellEditable, isColumnEditable, isEditable, isRowEditable, setCellEditable, setColumnEditable, setColumnEditStatusList, setColumnIdentifiers, setDataVector, setEditable, setRowEditable, setValueAt
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setDataVector, setNumRows, setRowCount
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metamatrix.toolbox.ui.widget.table.EnhancedTableModel
getDataVector
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnCount, getColumnName, getRowCount, getValueAt, removeTableModelListener
 

Field Detail

NUM_COLUMNS

public static final int NUM_COLUMNS
See Also:
Constant Field Values

TRANSACTION_ID_COL

public static final int TRANSACTION_ID_COL
See Also:
Constant Field Values

SESSION_ID_COL

public static final int SESSION_ID_COL
See Also:
Constant Field Values

STATUS_COL

public static final int STATUS_COL
See Also:
Constant Field Values

START_TIME_COL

public static final int START_TIME_COL
See Also:
Constant Field Values

END_TIME_COL

public static final int END_TIME_COL
See Also:
Constant Field Values

CONNECTOR_ID_COL

public static final int CONNECTOR_ID_COL
See Also:
Constant Field Values

PROCESSOR_ID_COL

public static final int PROCESSOR_ID_COL
See Also:
Constant Field Values

DATABASE_COL

public static final int DATABASE_COL
See Also:
Constant Field Values

REQUEST_ID_COL

public static final int REQUEST_ID_COL
See Also:
Constant Field Values

TRANSACTION_ID_HDR

public static final java.lang.String TRANSACTION_ID_HDR
See Also:
Constant Field Values

SESSION_ID_HDR

public static final java.lang.String SESSION_ID_HDR
See Also:
Constant Field Values

STATUS_HDR

public static final java.lang.String STATUS_HDR
See Also:
Constant Field Values

START_TIME_HDR

public static final java.lang.String START_TIME_HDR
See Also:
Constant Field Values

END_TIME_HDR

public static final java.lang.String END_TIME_HDR
See Also:
Constant Field Values

CONNECTOR_ID_HDR

public static final java.lang.String CONNECTOR_ID_HDR
See Also:
Constant Field Values

PROCESSOR_ID_HDR

public static final java.lang.String PROCESSOR_ID_HDR
See Also:
Constant Field Values

DATABASE_HDR

public static final java.lang.String DATABASE_HDR
See Also:
Constant Field Values

REQUEST_ID_HDR

public static final java.lang.String REQUEST_ID_HDR
See Also:
Constant Field Values
Constructor Detail

TransactionTableModel

public TransactionTableModel()
Method Detail

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

resetFromTransactionsList

public void resetFromTransactionsList(java.util.Collection tx)
Method to repopulate the table model based on a Collection of ServerTransaction objects.


transactionIDForTransactionNum

public TransactionID transactionIDForTransactionNum(java.lang.Long transactionNum)
Method to return a TransactionID contained within the model, given its transaction number. This method is accurate only if the model has been populated exclusively through use of the resetFromTransactionsList() method.



Copyright © 2009. All Rights Reserved.