クラス org.objectweb.cjdbc.console.views.SQLStatViewer

org.objectweb.cjdbc.console.views.SQLStatViewerに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.console.views.SQLStatViewerのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

Graphical SQL statistics viewer. Quick and dirty implementation.

作者:
Mathieu Peltier

Emmanuel Cecchet

バージョン:
1.0

SQLStatViewer.java36 行で定義されています。

Public メソッド

 SQLStatViewer (Object[][] stats)
String[] getColumnNames ()
void setLabels ()

Protected メソッド

Object[][] getDataTypes (Object[][] stats)

スタティック変数

final int COLUMNS = 9


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.views.SQLStatViewer.SQLStatViewer Object  stats[][]  ) 
 

Create a SQLStatsViewer

引数:
stats Stats to display in the table
SQLStatViewer.java45 行で定義されています。
00046 { 00047 super(stats); 00048 }


メソッド

String [] org.objectweb.cjdbc.console.views.SQLStatViewer.getColumnNames  )  [virtual]
 

参照:
InfoViewer.getColumnNames()

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

SQLStatViewer.java74 行で定義されています。

参照先 org.objectweb.cjdbc.console.views.SQLStatViewer.COLUMNS.

00075 { 00076 String[] columnNames = new String[COLUMNS]; 00077 columnNames[0] = Translate.get("console.infoviewer.stats.column.0"); 00078 columnNames[1] = Translate.get("console.infoviewer.stats.column.1"); 00079 columnNames[2] = Translate.get("console.infoviewer.stats.column.2"); 00080 columnNames[3] = Translate.get("console.infoviewer.stats.column.3"); 00081 columnNames[4] = Translate.get("console.infoviewer.stats.column.4"); 00082 columnNames[5] = Translate.get("console.infoviewer.stats.column.5"); 00083 columnNames[6] = Translate.get("console.infoviewer.stats.column.6"); 00084 columnNames[7] = Translate.get("console.infoviewer.stats.column.7"); 00085 columnNames[8] = Translate.get("console.infoviewer.stats.column.8"); 00086 return columnNames; 00087 }

Object [][] org.objectweb.cjdbc.console.views.SQLStatViewer.getDataTypes Object  stats[][]  )  [protected, virtual]
 

Subclasses should overide this method to get coherent sorting

引数:
stats to display
戻り値:
same sized objects array but with proper types default is strings only

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

SQLStatViewer.java50 行で定義されています。

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 == 1) 00063 ret[i][j] = new String(aStat[j]); 00064 else 00065 ret[i][j] = new Float(aStat[j]); 00066 } 00067 } 00068 return ret; 00069 }

void org.objectweb.cjdbc.console.views.SQLStatViewer.setLabels  )  [virtual]
 

参照:
InfoViewer.setLabels()

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

SQLStatViewer.java92 行で定義されています。

00093 { 00094 frameTitle = Translate.get("console.infoviewer.stats.frame.title"); 00095 infoViewerMenuBarString = Translate.get("console.infoviewer.stats.menubar"); 00096 actionToolTipText = Translate 00097 .get("console.infoviewer.stats.action.tooltiptext"); 00098 actionErrorMessage = Translate 00099 .get("console.infoviewer.stats.action.error.message"); 00100 actionSuccessMessage = Translate 00101 .get("console.infoviewer.stats.action.success.message"); 00102 tableHeaderToolTipText = Translate 00103 .get("console.infoviewer.table.tooltip.text"); 00104 }


変数

final int org.objectweb.cjdbc.console.views.SQLStatViewer.COLUMNS = 9 [static, package]
 

SQLStatViewer.java38 行で定義されています。

参照元 org.objectweb.cjdbc.console.views.SQLStatViewer.getColumnNames().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:35 2004に生成されました。 doxygen 1.3.8