org.objectweb.cjdbc.console.views
Class CacheViewer

java.lang.Object
  extended byorg.objectweb.cjdbc.console.views.InfoViewer
      extended byorg.objectweb.cjdbc.console.views.CacheViewer

public class CacheViewer
extends InfoViewer

Graphical SQL statistics viewer. Quick and dirty implementation.

Version:
1.0
Author:
Mathieu Peltier, Emmanuel Cecchet

Nested Class Summary
 
Nested classes inherited from class org.objectweb.cjdbc.console.views.InfoViewer
InfoViewer.ExportAction, InfoViewer.InfoTableModel, InfoViewer.InfoViewerMenuBar
 
Field Summary
(package private) static int COLUMNS
           
 
Fields inherited from class org.objectweb.cjdbc.console.views.InfoViewer
actionErrorMessage, actionSuccessMessage, actionToolTipText, frameTitle, infoViewerMenuBarString, tableHeaderToolTipText
 
Constructor Summary
CacheViewer(java.lang.Object[][] data)
          Create a SQLStatsViewer
 
Method Summary
 java.lang.String[] getColumnNames()
          Get column names
protected  java.lang.Object[][] getDataTypes(java.lang.Object[][] stats)
          Subclasses should overide this method to get coherent sorting
 void setLabels()
          Set the labels for the frame
 
Methods inherited from class org.objectweb.cjdbc.console.views.InfoViewer
display, displayText, displayText, getData, getFrameTitle, getTraceableColumns, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMNS

static final int COLUMNS
See Also:
Constant Field Values
Constructor Detail

CacheViewer

public CacheViewer(java.lang.Object[][] data)
Create a SQLStatsViewer

Parameters:
data - Stats to display in the table
Method Detail

getDataTypes

protected java.lang.Object[][] getDataTypes(java.lang.Object[][] stats)
Description copied from class: InfoViewer
Subclasses should overide this method to get coherent sorting

Specified by:
getDataTypes in class InfoViewer
Parameters:
stats - to display
Returns:
same sized objects array but with proper types default is strings only

getColumnNames

public java.lang.String[] getColumnNames()
Description copied from class: InfoViewer
Get column names

Specified by:
getColumnNames in class InfoViewer
Returns:
a array of strings
See Also:
InfoViewer.getColumnNames()

setLabels

public void setLabels()
Description copied from class: InfoViewer
Set the labels for the frame

Specified by:
setLabels in class InfoViewer
See Also:
InfoViewer.setLabels()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.