|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.bloof.metrics.SqlMetric
Metric wrapper for generic SQL queries provided by the user
| Field Summary |
| Fields inherited from interface net.sf.bloof.metrics.Metric |
XML_HEAD |
| Constructor Summary | |
SqlMetric()
Default constructor |
|
SqlMetric(MetricParameter aParams)
Constructor containing parametes |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns the description of the metric |
java.lang.String |
getName()
Returns the Name of the metric |
MetricParameter |
getParameter()
Returns the MetricParameter object of this metric |
javax.swing.JComponent |
getResultComponent()
Returns a time line chart if there is one and only one time column, otherwise it returns a table |
net.n3.nanoxml.XMLElement |
getResultXml()
Returns a time line element if there is one and only one time column, otherwise it returns a table element |
MetricParameter |
getSetup()
|
javax.swing.JComponent |
getTitle()
Create a title component for this metric |
void |
runMetric(Database aDatabase)
Runs the metric |
void |
setName(java.lang.String aName)
|
void |
setupMetric(MetricParameter aMetricParams)
Initializes the metric with the specified parameter |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SqlMetric()
public SqlMetric(MetricParameter aParams)
aParams - parameters for the metric| Method Detail |
public java.lang.String getDescription()
Metric
getDescription in interface MetricMetric.getDescription()public java.lang.String getName()
Metric
getName in interface MetricMetric.getName()public MetricParameter getParameter()
Metric
getParameter in interface MetricMetric.getParameter()public javax.swing.JComponent getResultComponent()
getResultComponent in interface MetricMetric.getResultComponent()public net.n3.nanoxml.XMLElement getResultXml()
getResultXml in interface MetricMetric.getResultXml()public MetricParameter getSetup()
net.sf.bloof.metrics.Metric#getSetup()public javax.swing.JComponent getTitle()
public void runMetric(Database aDatabase)
throws java.sql.SQLException
Metric
runMetric in interface MetricaDatabase - Database for running the metric
java.sql.SQLException - on database connection errornet.sf.bloof.metrics.Metric#runMetric()public void setName(java.lang.String aName)
net.sf.bloof.metrics.Metric#setName(java.lang.String)public void setupMetric(MetricParameter aMetricParams)
Metric
setupMetric in interface MetricaMetricParams - parameter of the metricsMetric.setupMetric(net.sf.bloof.metrics.MetricParameter)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||