JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.data
Class JDBC3dDataSource

java.lang.Object
  |
  +--com.klg.jclass.chart3d.event.Chart3dDataSupport
        |
        +--com.klg.jclass.chart3d.data.Base3dDataSource
              |
              +--com.klg.jclass.chart3d.data.Base3dGridDataSource
                    |
                    +--com.klg.jclass.chart3d.data.JCDefault3dGridDataSource
                          |
                          +--com.klg.jclass.chart3d.data.JDBC3dDataSource
All Implemented Interfaces:
Chart3dDataManager, Chart3dDataModel, Chart3dGridDataModel, Cloneable, HoleValueChart3dDataModel, LabelledChart3dDataModel, LabelledChart3dGridDataModel, Serializable

public class JDBC3dDataSource
extends JCDefault3dGridDataSource

JDBC3dDataSource extends JCDefault3dGridDataSource to create a data source for use with JDBC.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.chart3d.data.Base3dGridDataSource
chartDataListeners, dataSourceName, xGrid, xLabels, yGrid, yLabels, zValues
 
Fields inherited from class com.klg.jclass.chart3d.data.Base3dDataSource
holeValue
 
Fields inherited from class com.klg.jclass.chart3d.event.Chart3dDataSupport
source
 
Fields inherited from interface com.klg.jclass.chart3d.HoleValueChart3dDataModel
DEFAULT_HOLE_VALUE
 
Constructor Summary
JDBC3dDataSource()
          Default constructor.
JDBC3dDataSource(ResultSet jdbcData)
          The JDBCDataSource constructor takes a ResultSet as source data.
JDBC3dDataSource(ResultSet jdbcData, String xLabelColumnName, String yLabelColumnName, String[] activeColumnNames)
          The JDBCDataSource constructor takes a ResultSet as source data and column names to specify the columns to be used for data.
 
Method Summary
 void setData(ResultSet jdbcData, String xLabelColumnName, String yLabelColumnName, String[] activeColumnNames)
          Sets the data for this data source from the passed result set and according to the specification of columns in the passed name parameters.
protected  void setJDBCData(ResultSet jdbcData, String xLabelColumnName, String yLabelColumnName, String[] activeColumnNames)
          Internal method to Populate the datasource with data from the result set according to the specification of columns in the passed name parameters.
 
Methods inherited from class com.klg.jclass.chart3d.data.JCDefault3dGridDataSource
getXGridSize, getYGridSize, getZArray, setZArray
 
Methods inherited from class com.klg.jclass.chart3d.data.Base3dGridDataSource
clone, getDataSourceName, getNumX, getNumY, getXGrid, getXLabels, getYGrid, getYLabels, getZValues, setDataSourceName, setXGrid, setXLabels, setYGrid, setYLabels, setZValues
 
Methods inherited from class com.klg.jclass.chart3d.data.Base3dDataSource
getHoleValue, setHoleValue
 
Methods inherited from class com.klg.jclass.chart3d.event.Chart3dDataSupport
addChart3dDataListener, fireChart3dDataEvent, fireChart3dDataEvent, removeChart3dDataListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBC3dDataSource

public JDBC3dDataSource()
Default constructor.


JDBC3dDataSource

public JDBC3dDataSource(ResultSet jdbcData)
The JDBCDataSource constructor takes a ResultSet as source data. Default behavior is to use all numeric columns for Y data and automatically generate x values.

Parameters:
jdbcData - the input data as a ResultSet

JDBC3dDataSource

public JDBC3dDataSource(ResultSet jdbcData,
                        String xLabelColumnName,
                        String yLabelColumnName,
                        String[] activeColumnNames)
The JDBCDataSource constructor takes a ResultSet as source data and column names to specify the columns to be used for data.

Parameters:
jdbcData - the input data as a ResultSet
xLabelColumnName - the name of the column to use for x label names. If null, x labels are generated automatically.
yLabelColumnName - the name of the column to use for y label names. If null, y labels are generated automatically.
activeColumnNames - array of column names to use for y values. If null, all numeric columns not associated with the x column or the point labels column are used.
Method Detail

setData

public void setData(ResultSet jdbcData,
                    String xLabelColumnName,
                    String yLabelColumnName,
                    String[] activeColumnNames)
Sets the data for this data source from the passed result set and according to the specification of columns in the passed name parameters.

Parameters:
jdbcData - the input data as a ResultSet
xLabelColumnName - the name of the column to use for x label names. If null, x labels are generated automatically.
yLabelColumnName - the name of the column to use for y label names. If null, y labels are generated automatically.
activeColumnNames - array of column names to use for y values. If null, all numeric columns not associated with the x column or the point labels column are used.

setJDBCData

protected void setJDBCData(ResultSet jdbcData,
                           String xLabelColumnName,
                           String yLabelColumnName,
                           String[] activeColumnNames)
Internal method to Populate the datasource with data from the result set according to the specification of columns in the passed name parameters. Series labels are the column labels of the active columns.

Parameters:
jdbcData - ResultSet object to get data from.
xLabelColumnName - the name of the column to use for x label names. If null, x labels are generated automatically.
yLabelColumnName - the name of the column to use for y label names. If null, y labels are generated automatically.
activeColumnNames - array of column names to use for y values. If null, all numeric columns not associated with the x column or the point labels column are used.

Copyright © 2004 Quest Software Inc..
All rights reserved.