Public Member Functions | |
CacheViewer (Object[][] data) | |
String[] | getColumnNames () |
void | setLabels () |
Protected Member Functions | |
Object[][] | getDataTypes (Object[][] stats) |
Static Package Attributes | |
final int | COLUMNS = 5 |
Definition at line 36 of file CacheViewer.java.
|
Create a SQLStatsViewer
Definition at line 45 of file CacheViewer.java. 00046 { 00047 super(data); 00048 }
|
|
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 74 of file CacheViewer.java. 00075 { 00076 String[] columnNames = new String[COLUMNS]; 00077 columnNames[0] = Translate.get("console.infoviewer.cache.column.0"); 00078 columnNames[1] = Translate.get("console.infoviewer.cache.column.1"); 00079 columnNames[2] = Translate.get("console.infoviewer.cache.column.2"); 00080 columnNames[3] = Translate.get("console.infoviewer.cache.column.3"); 00081 columnNames[4] = Translate.get("console.infoviewer.cache.column.4"); 00082 return columnNames; 00083 }
|
|
Subclasses should overide this method to get coherent sorting
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 50 of file CacheViewer.java. 00051 { 00052 int iSize = stats.length; 00053 Object[][] ret = new Object[iSize][]; 00054 for (int i = 0; i < iSize; i++) 00055 { 00056 String[] aStat = (String[]) stats[i]; 00057 int jSize = aStat.length; 00058 ret[i] = new Object[jSize]; 00059 ret[i][0] = aStat[0]; 00060 for (int j = 1; j < jSize; j++) 00061 { 00062 if (j <= 3) 00063 ret[i][j] = new String(aStat[j]); 00064 else 00065 ret[i][j] = new Integer(aStat[j]); 00066 } 00067 } 00068 return ret; 00069 }
|
|
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 88 of file CacheViewer.java. 00089 { 00090 frameTitle = Translate.get("console.infoviewer.cache.frame.title"); 00091 infoViewerMenuBarString = Translate.get("console.infoviewer.cache.menubar"); 00092 actionToolTipText = Translate 00093 .get("console.infoviewer.cache.action.tooltiptext"); 00094 actionErrorMessage = Translate 00095 .get("console.infoviewer.cache.action.error.message"); 00096 actionSuccessMessage = Translate 00097 .get("console.infoviewer.cache.action.success.message"); 00098 tableHeaderToolTipText = Translate 00099 .get("console.infoviewer.table.tooltip.text"); 00100 }
|