|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.JDBCPlotter
public class JDBCPlotter
The class is used to convert database queries into ChartDataModels. You can initialize the Plotter with database parameters and afterwards you can run consecutive queries resulting in a new database.
| Field Summary | |
|---|---|
protected java.sql.Connection |
conn
The SQL connection. |
| Constructor Summary | |
|---|---|
JDBCPlotter(java.lang.String jdbcDriver,
java.lang.String jdbcURL,
java.lang.String username,
java.lang.String password)
Creates a new JDBCPlotter using the given driver and URL. |
|
| Method Summary | |
|---|---|
DefaultChartDataModel |
createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String[] sqlRows)
Given a SQL query and the row titles this method creates a DefaultChartDataModel. |
DefaultChartDataModel |
createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
Given a SQL query and the row titles this method creates a DefaultChartDataModel. |
DefaultChartDataModel |
createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows)
Given a SQL query and the row titles this method creates a DefaultChartDataModel. |
DefaultChartDataModel |
createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
Given a SQL query and the row titles this method creates a DefaultChartDataModel. |
ObjectChartDataModel |
createObjectChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows)
Given a SQL query and the row titles this method creates a ObjectChartDataModel. |
ObjectChartDataModel |
createObjectChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
Given a SQL query and the row titles this method creates an ObjectChartDataModel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.sql.Connection conn
| Constructor Detail |
|---|
public JDBCPlotter(java.lang.String jdbcDriver,
java.lang.String jdbcURL,
java.lang.String username,
java.lang.String password)
throws JDBCPlotterException
jdbcDriver - the fully qualified classname of the SQL driver class.jdbcURL - the URL of the JDBC database to connect to.username - the username for the JDBC resourcepassword - the user's password
JDBCPlotterException| Method Detail |
|---|
public DefaultChartDataModel createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String[] sqlRows)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedsqlRows - the rows from the ResultSet which should be included in the ChartDataModel and which
will be used as the DataSet titles.
JDBCPlotterException
public DefaultChartDataModel createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedsqlRows - the rows from the ResultSet which should be included in the ChartDataModeldataSets - the DataSet titles which should be given to the ChartDataModel instead of the sqlRows titles
JDBCPlotterException
public DefaultChartDataModel createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedcolumnRow - the row from the ResultSet which should be taken as the column (x-axis) valuessqlRows - the rows from the ResultSet which should be included in the ChartDataModel and which
will be used as the DataSet titles.
JDBCPlotterException
public DefaultChartDataModel createChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedcolumnRow - the row from the ResultSet which should be taken as the column (x-axis) valuessqlRows - the rows from the ResultSet which should be included in the ChartDataModeldataSets - the DataSet titles which should be given to the ChartDataModel instead of the sqlRows titles
JDBCPlotterException
public ObjectChartDataModel createObjectChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedcolumnRow - the row from the ResultSet which should be taken as the column (x-axis) valuessqlRows - the rows from the ResultSet which should be included in the ChartDataModel and which
will be used as the DataSet titles.
JDBCPlotterException
public ObjectChartDataModel createObjectChartDataModelInstance(java.lang.String sqlQuery,
java.lang.String columnRow,
java.lang.String[] sqlRows,
java.lang.String[] dataSets)
throws JDBCPlotterException
sqlQuery - the SQL query to be performedcolumnRow - the row from the ResultSet which should be taken as the column (x-axis) valuessqlRows - the rows from the ResultSet which should be included in the ChartDataModeldataSets - the DataSet titles which should be given to the ChartDataModel instead of the sqlRows titles
JDBCPlotterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||