com.jrefinery.data
Class JdbcPieDataset

java.lang.Object
  extended by com.jrefinery.data.AbstractDataset
      extended by com.jrefinery.data.DefaultPieDataset
          extended by com.jrefinery.data.JdbcPieDataset
All Implemented Interfaces:
Dataset, PieDataset

public class JdbcPieDataset
extends DefaultPieDataset


Field Summary
 
Fields inherited from class com.jrefinery.data.DefaultPieDataset
keys, vals
 
Fields inherited from class com.jrefinery.data.AbstractDataset
listeners
 
Constructor Summary
JdbcPieDataset()
           
JdbcPieDataset(java.sql.Connection con)
          Constructor Create a new JdbcCategoryDataset using the specificied database connection.
JdbcPieDataset(java.sql.Connection con, java.lang.String query)
           
JdbcPieDataset(java.lang.String url, java.lang.String driverName, java.lang.String user, java.lang.String passwd)
          Constructor Create a new JdbcCategoryDataset and establish a new database connection.
 
Method Summary
 void executeQuery(java.lang.String query)
          ExecuteQuery will attempt execute the query passed to it against the existing database connection.
 
Methods inherited from class com.jrefinery.data.DefaultPieDataset
getCategories, getValue, setValue
 
Methods inherited from class com.jrefinery.data.AbstractDataset
addChangeListener, fireDatasetChanged, notifyListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Constructor Detail

JdbcPieDataset

public JdbcPieDataset()

JdbcPieDataset

public JdbcPieDataset(java.lang.String url,
                      java.lang.String driverName,
                      java.lang.String user,
                      java.lang.String passwd)
Constructor Create a new JdbcCategoryDataset and establish a new database connection.

Parameters:
url - URL of the database connection
driverName - The database driver class name
user - The database user
passwd - The database users password.

JdbcPieDataset

public JdbcPieDataset(java.sql.Connection con)
Constructor Create a new JdbcCategoryDataset using the specificied database connection.

Parameters:
con - The database connection to use

JdbcPieDataset

public JdbcPieDataset(java.sql.Connection con,
                      java.lang.String query)
Method Detail

executeQuery

public void executeQuery(java.lang.String query)
ExecuteQuery will attempt execute the query passed to it 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.

Parameters:
query - The query to be executed


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.