openGionopenGion
5.5.7.0

org.opengion.hayabusa.io
クラス HybsJDBCCategoryDataset

java.lang.Object
  上位を拡張 org.jfree.data.general.AbstractDataset
      上位を拡張 org.jfree.data.category.DefaultCategoryDataset
          上位を拡張 org.jfree.data.jdbc.JDBCCategoryDataset
              上位を拡張 org.opengion.hayabusa.io.HybsJDBCCategoryDataset
すべての実装されたインタフェース:
java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, org.jfree.data.category.CategoryDataset, org.jfree.data.general.Dataset, org.jfree.data.KeyedValues2D, org.jfree.data.Values2D, org.jfree.util.PublicCloneable

public class HybsJDBCCategoryDataset
extends org.jfree.data.jdbc.JDBCCategoryDataset

HybsJDBCCategoryDataset は、org.jfree.data.jdbc.JDBCCategoryDataset を継承したサブクラスで、 executeQuery(Connection , String ) をオーバーライドしています。 これは、元のソースが、series と category の扱いが異なる為で、QUERY には、 select series,values from ・・・ または、select series,category,values from ・・・ の形式で検索することを想定した作りに修正しています。 series の縦持ち 対応です。 参考:JFreeChart : a free chart library for the Java(tm) platform(jfreechart-1.0.6)

関連項目:
直列化された形式
変更履歴:
3.8.9.2 (2007/07/28) 新規作成
バージョン
0.9.0 2001/05/05
作成者
Kazuhiko Hasegawa
導入されたバージョン:
JDK1.1,

コンストラクタの概要
HybsJDBCCategoryDataset(java.sql.Connection connection, java.lang.String query)
          Creates a new dataset with the given database connection, and executes the supplied query to populate the dataset.
 
メソッドの概要
 void executeQuery(java.sql.Connection con, java.lang.String query)
          Populates the dataset by executing the supplied query against the existing database connection.
 
クラス org.jfree.data.jdbc.JDBCCategoryDataset から継承されたメソッド
executeQuery, getTranspose, setTranspose
 
クラス org.jfree.data.category.DefaultCategoryDataset から継承されたメソッド
addValue, addValue, clear, clone, equals, getColumnCount, getColumnIndex, getColumnKey, getColumnKeys, getRowCount, getRowIndex, getRowKey, getRowKeys, getValue, getValue, hashCode, incrementValue, removeColumn, removeColumn, removeRow, removeRow, removeValue, setValue, setValue
 
クラス org.jfree.data.general.AbstractDataset から継承されたメソッド
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.jfree.data.general.Dataset から継承されたメソッド
addChangeListener, getGroup, removeChangeListener, setGroup
 

コンストラクタの詳細

HybsJDBCCategoryDataset

public HybsJDBCCategoryDataset(java.sql.Connection connection,
                               java.lang.String query)
                        throws java.sql.SQLException
Creates a new dataset with the given database connection, and executes the supplied query to populate the dataset.

パラメータ:
connection - the connection.
query - the query.
例外:
java.sql.SQLException - if there is a problem executing the query.
メソッドの詳細

executeQuery

public void executeQuery(java.sql.Connection con,
                         java.lang.String query)
                  throws java.sql.SQLException
Populates the dataset by executing the supplied query against the existing database connection. If no connection exists then no action is taken. The results from the query are extracted and cached locally, thus applying an upper limit on how many rows can be retrieved successfully.

オーバーライド:
クラス org.jfree.data.jdbc.JDBCCategoryDataset 内の executeQuery
パラメータ:
con - the connection.
query - the query.
例外:
java.sql.SQLException - if there is a problem executing the query.
関連項目:
JDBCCategoryDataset.executeQuery(Connection , String )

openGion 5.5.7.0

Webアプリケーションフレームワーク openGion
SourceForge.JPCopyright (c) 2009 The openGion Project.