|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.customds.common.Chunk
public class Chunk
The Chunk class contains the data provided by the plug-in.
Data contained in this object is presented in tabular format (columns and rows). A Chunk object must be created by specifying
the collection of ColumnSpec. Rows of data are then added by calling the Chunk.addRow(Row) method.
NOTE: The plug-in must add rows with the same number of columns as length of ColumnSpec collection and similar data-types as specified in each ColumnSpec.
The Framework throws an exception if the Row object is null, or if there is a mismatch between
the row values and the ColumnSpec provided while creating the Chunk object.
| Constructor Summary | |
|---|---|
Chunk(ColumnSpec[] arrColumnSpec)
The Chunk class constructor creates data chunks with specified column information. |
|
| Method Summary | |
|---|---|
void |
addRow(Row row)
Adds a row of columnar data to the Chunk object. |
void |
addRows(java.util.Collection rows)
Adds rows of columnar data to the Chunk object. |
void |
clear()
Clears all the rows added to the Chunk object. |
java.util.Collection |
getChunkData()
Internal Use Only |
ColumnSpec[] |
getColumnSpecs()
Internal Use Only |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Chunk(ColumnSpec[] arrColumnSpec)
throws DataSourceException
Chunk class constructor creates data chunks with specified column information.
arrColumnSpec - An array of ColumnSpec containing information about objects used for data provider creation.
DataSourceException - if array of ColumnSpec is null, zero length, or if any of the ColumnSpecs is null.ColumnSpec,
CustomDataSource,
DataSourceException| Method Detail |
|---|
public void addRow(Row row)
throws DataSourceException
Chunk object.
The plug-in must add rows with the same number of columns and similar data-types for column values that confirm to
the ColumnSpec provided while creating the Chunk object.
row - The Row of data to be added.
DataSourceException - if the Row object is null, or if there is a mismatch between
the row values and the ColumnSpec provided while creating the Chunk object. ColumnSpec,
Row,
DataSourceException
public void addRows(java.util.Collection rows)
throws DataSourceException
Chunk object.
The collection must consist of Row objects.
The plug-in must add rows with the same number of columns and similar data-types for column values that confirm to
the ColumnSpec provided while creating the Chunk object.
rows - The collection containing Row(s) of data.
DataSourceException - In the following scenarios:
Collection is null.Row objects.Row object in the collection is null.ColumnSpec provided while creating the Chunk object.ColumnSpec,
Row,
DataSourceExceptionpublic void clear()
Chunk object.
public java.util.Collection getChunkData()
Internal Use Only
public ColumnSpec[] getColumnSpecs()
Internal Use Only
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||