public class DbData extends java.lang.Object implements IResultSet
IResultSet
Modifier | Constructor and Description |
---|---|
protected |
DbData()
Allocates a new DbData Object
|
|
DbData(java.lang.String s)
Construct DbData by parsing the data value argument in HTML page
|
|
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
|
Modifier and Type | Method and Description |
---|---|
void |
close()
For internal use only
|
quadbase.reportdesigner.report.ColData[] |
getColData()
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()
Get the original data
|
java.lang.Object |
getObject(int col)
Get the object at the specified col
|
protected void |
init(java.lang.String[] dataType,
java.lang.String[] fieldName,
java.lang.String[][] records)
Initializes the DbData Object with data
|
boolean |
next()
Go to the next row
|
protected DbData()
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 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 s) throws java.lang.IllegalArgumentException
s
- string value from the HTML pagejava.lang.IllegalArgumentException
protected void init(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 quadbase.reportdesigner.report.ColData[] getColData()
@Deprecated public java.lang.String[] getFieldName()
@Deprecated public int[] getFieldType()
public java.lang.Object[][] getData()
public final boolean next() throws java.lang.Exception
next
in interface IResultSet
java.lang.Exception
public final void close() throws java.lang.Exception
close
in interface IResultSet
java.lang.Exception
public final IRSMetaData getMetaData() throws java.lang.Exception
getMetaData
in interface IResultSet
java.lang.Exception
public final java.lang.Object getObject(int col) throws java.lang.Exception