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
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.Base3dGridDataSource |
clone, getDataSourceName, getNumX, getNumY, getXGrid, getXLabels, getYGrid, getYLabels, getZValues, setDataSourceName, setXGrid, setXLabels, setYGrid, setYLabels, setZValues |
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.
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.