|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.DataSet
public class DataSet
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.
Use the IDataSet interface to manipulate this object.
| Constructor Summary | |
|---|---|
DataSet()
|
|
DataSet(IDataSet src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
|
Rowsets |
getRowsets()
Gets the collection of rowsets corresponding to the data set tables. |
TableJoins |
getTableJoins()
For internal use only |
TableLinks |
getTableLinks()
Gets the information about the linking between the tables in the data set. |
Tables |
getTables()
Gets the collection of database tables that are used as the source of the data set. |
boolean |
hasContent(java.lang.Object srcDataSet)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
|
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
|
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
|
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
|
void |
setRowsets(Rowsets rowsets)
Sets the collection of rowsets corresponding to the data set tables. |
void |
setTableJoins(TableJoins tableJoins)
For internal use only |
void |
setTableLinks(TableLinks tableLinks)
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. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSet(IDataSet src)
public DataSet()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
public void endElement(java.lang.String eleName,
java.util.Map objState)
public Rowsets getRowsets()
IDataSetGets the collection of rowsets corresponding to the data set tables.
getRowsets in interface IDataSetRowsets collectionpublic TableLinks getTableLinks()
IDataSetGets the information about the linking between the tables in the data set.
getTableLinks in interface IDataSetTableLinks collectionpublic TableJoins getTableJoins()
IDataSet
getTableJoins in interface IDataSetpublic Tables getTables()
IDataSetGets the collection of database tables that are used as the source of the data set.
getTables in interface IDataSetTables collectionpublic boolean hasContent(java.lang.Object srcDataSet)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOExceptionpublic void setRowsets(Rowsets rowsets)
IDataSetSets the collection of rowsets corresponding to the data set tables.
setRowsets in interface IDataSetrowsets - the Rowsets collectionpublic void setTableLinks(TableLinks tableLinks)
IDataSetSets the information about the linking between the tables in the data set.
setTableLinks in interface IDataSettableLinks - the TableLinks collectionpublic void setTableJoins(TableJoins tableJoins)
IDataSet
setTableJoins in interface IDataSetpublic void setTables(Tables tables)
IDataSetSets the collection of database tables that are used as the source of the data set.
setTables in interface IDataSettables - the Tables collection
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||