|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--tppt.gui.IsoTableModel
IsoTableModel creates a 2-column Transaction-Isolation Preview table used
in IsolationFrame
JY10/30/00 corrected errors involving numbering the isolation levels, thus eliminating discrepancies between Sybase's numerical definition for different isolation levels and TPPT tool's definition as shown in the isolation frame
IsolationFrame
,
GlobalData
, Serialized FormField Summary | |
java.lang.String[] |
columnNames
the column names for the preview table |
(package private) int |
minRowCount
|
java.lang.Object[][] |
transIsoList
a 2-dimentional array keeping track of each transaction type and its current isolation level |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
IsoTableModel()
Constructs the preview table of Set Isolation Level window |
Method Summary | |
int |
getColumnCount()
Gets the total number of columns in the table |
java.lang.String |
getColumnName(int col)
Gets the name of the selected column |
int |
getRowCount()
Gets the total number of rows in the table, if the total number of rows is less than minRowCount , returns the minimum row count. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value of a cell at position [row, col] |
boolean |
isCellEditable(int row,
int col)
Sets the cell at position [row, col] to be non-editable |
protected int |
isoLevelToNum(java.lang.String level)
Converts the isolation level from string representation to numerical form |
java.lang.String |
isoLevelToString(int level)
Converts the isolation level from numerical form to string representation |
void |
setDefault()
Sets every transaction type to be default isolation level |
void |
setGlobalTransIso()
If the user has changed the isolation level of any transaction type, update the information in global transaction table GlobalData.transactions . |
boolean |
SetTransIsoList()
Constructs the content of preview table by extracting information about each transaction type and current isolation level from the global transaction table GlobalData.transactions |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the cell value for cell position [row, col] |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
|
Field Detail |
public final java.lang.String[] columnNames
public java.lang.Object[][] transIsoList
final int minRowCount
Constructor Detail |
public IsoTableModel()
Method Detail |
public int getColumnCount()
getColumnCount
in class javax.swing.table.AbstractTableModel
public int getRowCount()
minRowCount
, returns the minimum row count.getRowCount
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int col)
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int col)
getValueAt
in class javax.swing.table.AbstractTableModel
row
- the row numbercol
- the column numberpublic boolean isCellEditable(int row, int col)
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- the row numbercol
- the column numberpublic void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in class javax.swing.table.AbstractTableModel
value
- the value of the cell in Object formrow
- the row numbercol
- the column numberpublic boolean SetTransIsoList()
GlobalData.transactions
public void setDefault()
public void setGlobalTransIso()
GlobalData.transactions
.public java.lang.String isoLevelToString(int level)
protected int isoLevelToNum(java.lang.String level)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |