com.crystaldecisions.sdk.occa.report.data
Interface IDataSet

All Superinterfaces:
IClone
All Known Implementing Classes:
DataSet

public interface IDataSet
extends IClone

The DataSet object is a runtime data source that determines the set of data that is displayed by a report. You can create a data set by adding tables, as well as the rowset data that correspond to these tables, to the DataSet object. Once the data set has been created, you can add it to the report with the DatabaseController object’s addDataSource method, and set it with the setDataSource method. The setDataSource method can also be used to replace one data set with another. The only restriction is that the fields in the new data set match the fields originally used to design the report.

If you create a report based on a data set, the data that is used is not saved with the report. To populate the report with data the next time you open it, you must either re-apply the data source to see current data, or access a saved version of the data source for preview.


Method Summary
 Rowsets getRowsets()
           Gets the collection of rowsets corresponding to the data set tables.
 TableJoins getTableJoins()
           
 Tables getTables()
           Gets the collection of database tables that are used as the source of the data set.
 void setRowsets(Rowsets rowsets)
           Sets the collection of rowsets corresponding to the data set tables.
 void setTableJoins(TableJoins tableJoins)
           Sets the information about the linking between the tables in the data set.
 void setTables(Tables tables)
           Sets the collection of database tables that are used as the source of the data set.
 

Method Detail

getRowsets

Rowsets getRowsets()

Gets the collection of rowsets corresponding to the data set tables.

Returns:
Rowsets the Rowsets collection

getTableJoins

TableJoins getTableJoins()

getTables

Tables getTables()

Gets the collection of database tables that are used as the source of the data set.

Returns:
the Tables collection

setRowsets

void setRowsets(Rowsets rowsets)

Sets the collection of rowsets corresponding to the data set tables.

Parameters:
rowsets - the Rowsets collection

setTableJoins

void setTableJoins(TableJoins tableJoins)

Sets the information about the linking between the tables in the data set.

Parameters:
tableJoins - the TableJoins collection

setTables

void setTables(Tables tables)

Sets the collection of database tables that are used as the source of the data set.

Parameters:
tables - the Tables collection