Class DbDataCollection
java.lang.Object
quadbase.reportdesigner.ReportAPI.DbData
quadbase.reportdesigner.ReportAPI.DbDataCollection
- All Implemented Interfaces:
IResultSet,IRow
This class provides an implementation for the quadbase.reportdesigner.util.IResultSet interface
using a collection of data. IResultSet is used to provide input data to a report.
DbDataCollection holds the data information necessary to plot a report. They are (i) data type
for each column (ii) name for each column (iii) a list of data records
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbDataCollection(Collection dataType, Collection fieldName, Collection records) Construct a new DbDataCollection class -
Method Summary
Methods inherited from class quadbase.reportdesigner.ReportAPI.DbData
close, getColData, getData, getFieldName, getFieldType, getMetaData, getObject, init, next
-
Constructor Details
-
DbDataCollection
Construct a new DbDataCollection class- Parameters:
dataType- a collection of dataType specify by String. The following are valid data type recognize by the class.
integer : "int", "integer", "smallint", tinyint" or "short"
long : "long", "bigint"
numeric : "numeric"
decimal : "decimal"
float : "float", "real"
double : "double"
time : "time"
date : "date"
timestamp : "timestamp"
varchar : "string", "varchar"
longvarchar : "longvarchar"
boolean : "boolean", "logical", "bit"
Data type names are case insensitive.fieldName- a collection of name for each field in the recordrecords- collection of records, each record is again a collection of size n, where n = size of dataType = size of fieldName. Each field in a record represent the data as String. If there is a size mismatch or invalid record entry that can't convert to destination data type, an IllegalArgumentException is thrown.
-