public class HybsJDBCCategoryDataset2
extends org.jfree.data.jdbc.JDBCCategoryDataset
HybsJDBCCategoryDataset は、org.jfree.data.jdbc.JDBCCategoryDataset を継承したサブクラスで、 executeQuery(Connection , String ) をオーバーライドしています。 これは、元のソースのデータベース検索結果を内部で持っておき、getValue(int row, int column) メソッドで直接値を返します。 select category,series1,series2,series3,・・・ from ・・・ series の横持ち(標準と同じ) 対応です。 参考:JFreeChart : a free chart library for the Java(tm) platform(jfreechart-1.0.6)
| 3.8.9.2 (2007/07/28) 新規作成 |
| コンストラクタと説明 |
|---|
HybsJDBCCategoryDataset2(Connection connection,
String query,
String[] lbls)
Creates a new dataset with the given database connection, and executes
the supplied query to populate the dataset.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
changeParetoData()
パレート図用のDatasetに値を書き換えます。
|
boolean |
equals(Object object)
この文字列と指定されたオブジェクトを比較します。
|
void |
executeQuery(Connection con,
String query)
Populates the dataset by executing the supplied query against the
existing database connection.
|
org.jfree.data.Range |
getRange()
レンジオブジェクトを取得します。
|
Number |
getValue(int row,
int column)
指定された行列から、数字オブジェクトを取得します。
|
int |
hashCode()
このオブジェクトのハッシュコードを取得します。
|
addValue, addValue, clear, clone, getColumnCount, getColumnIndex, getColumnKey, getColumnKeys, getRowCount, getRowIndex, getRowKey, getRowKeys, getValue, incrementValue, removeColumn, removeColumn, removeRow, removeRow, removeValue, setValue, setValuepublic HybsJDBCCategoryDataset2(Connection connection, String query, String[] lbls) throws SQLException
connection - the connection.query - the query.lbls - シリーズのラベル名配列SQLException - if there is a problem executing the query.| 6.0.2.0 (2014/09/19) シリーズのラベル名配列追加 |
public void executeQuery(Connection con, String query) throws SQLException
executeQuery クラス内 org.jfree.data.jdbc.JDBCCategoryDatasetcon - the connection.query - the query.SQLException - if there is a problem executing the query.| 4.0.0.0 (2007/11/28) new Long(long) ⇒ Long.valueOf(long) 変更 |
| 4.0.0.0 (2007/11/28) resultSet,statement を Closer でclose する。 |
| 4.0.0.0 (2007/11/28) Range 求めで nullポインタを参照外しの修正 |
| 4.0.0.0 (2007/11/30) public な executeQuery メソッドを private 化します。 |
| 6.0.2.0 (2014/09/19) シリーズのラベル名配列追加 |
public Number getValue(int row, int column)
getValue インタフェース内 org.jfree.data.Values2DgetValue クラス内 org.jfree.data.category.DefaultCategoryDatasetrow - 行番号column - カラム番号(列番号)public org.jfree.data.Range getRange()
protected void changeParetoData()
| 6.0.2.1 (2014/09/26) 新規追加 |
public boolean equals(Object object)
equals クラス内 org.jfree.data.category.DefaultCategoryDatasetobject - 比較するオブジェクト| 5.1.8.0 (2010/07/01) findbug対応 |
| 5.1.9.0 (2010/08/01) findbug対応 |
public int hashCode()
hashCode クラス内 org.jfree.data.category.DefaultCategoryDataset| 5.1.8.0 (2010/07/01) findbug対応 |
| 5.1.9.0 (2010/08/01) findbug対応 |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.