|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.ChartAPI.swing.DbData
public class DbData
This class provides an implementation for the quadbase.util.IResultSet interface using an array of data. IResultSet is used to provide input data to a chart. DbData holds the data information necessary to plot a chart. They are (i) data type for each column (ii) name for each column (iii) a list of data records
A simple example of a DbData object would be follows :
DbData data = new DbData(dataTypes, colnames, records);
IResultSet| Constructor Summary | |
|---|---|
DbData(java.lang.String s)
Construct DbData by parsing the data value argument in HTML page. The format for the String is the same as the data file format, except that each line is ended by a vertical bar "|". |
|
DbData(java.lang.String[] fieldName,
java.lang.Object[][] records)
Construct a new DbData class |
|
DbData(java.lang.String[] dataType,
java.lang.String[] fieldName,
java.lang.String[][] records)
Construct a new DbData class |
|
| Method Summary | |
|---|---|
void |
close()
Closes the cursor |
quadbase.chart.ColData[] |
getColData()
This is for internal use only |
java.lang.Object[][] |
getData()
Get the record data, field j of record i is stored in position [i][j] of the result as an Object of that type. |
java.lang.String[] |
getFieldName()
Deprecated. Please use the getMetaData method to obtain this information |
int[] |
getFieldType()
Deprecated. Please use the getMetaData method to obtain this information |
IRSMetaData |
getMetaData()
Gets the meta data object |
java.lang.Object |
getObject(int col)
Returns the data value stored in the specified column of this row. |
boolean |
next()
Advances cursor to next row |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbData(java.lang.String[] dataType,
java.lang.String[] fieldName,
java.lang.String[][] records)
throws java.lang.IllegalArgumentException
dataType - an array of dataType specify by String. The following
are valid data type recognize by the class. fieldName - an array of name for each field in the recordrecords - array of record, record[i] consists of
array of size n where n = size of dataType =
size of fieldName. Each field j in i,
i.e. record[i][j] represent the data pass
as string. The class will convert the string
to appropriate data type.
For null field value use set record to null
If there is a size mismatch or invalid record entry that can't
convert to destination data type, an IllegalArgumentException is thrown.
java.lang.IllegalArgumentException
public DbData(java.lang.String[] fieldName,
java.lang.Object[][] records)
throws java.lang.IllegalArgumentException
fieldName - an array of field name for data columnrecords - an array of records. Each field in the record is an
instance of destination type.
If there is a size mismatch or the data in the records is not instance
of type known by the class, an IllegalArgumentException is thrown.
java.lang.IllegalArgumentException
public DbData(java.lang.String s)
throws java.lang.IllegalArgumentException
s - string value from the HTML page
java.lang.IllegalArgumentException| Method Detail |
|---|
public quadbase.chart.ColData[] getColData()
public java.lang.String[] getFieldName()
public int[] getFieldType()
public java.lang.Object[][] getData()
public final boolean next()
throws java.lang.Exception
IResultSet
next in interface IResultSetjava.lang.Exception
public final void close()
throws java.lang.Exception
IResultSet
close in interface IResultSetjava.lang.Exception
public final IRSMetaData getMetaData()
throws java.lang.Exception
IResultSet
getMetaData in interface IResultSetjava.lang.Exception
public final java.lang.Object getObject(int col)
throws java.lang.Exception
IRow
getObject in interface IRowcol - The column number for the field, beginning with 1.
java.lang.Exception
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||