|
|||||||||
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()
|
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)
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()
IDataSet
Gets the collection of rowsets corresponding to the data set tables.
getRowsets
in interface IDataSet
Rowsets
collectionpublic TableJoins getTableJoins()
getTableJoins
in interface IDataSet
public Tables getTables()
IDataSet
Gets the collection of database tables that are used as the source of the data set.
getTables
in interface IDataSet
Tables
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.IOException
public void setRowsets(Rowsets rowsets)
IDataSet
Sets the collection of rowsets corresponding to the data set tables.
setRowsets
in interface IDataSet
rowsets
- the Rowsets
collectionpublic void setTableJoins(TableJoins tableJoins)
IDataSet
Sets the information about the linking between the tables in the data set.
setTableJoins
in interface IDataSet
tableJoins
- the TableJoins
collectionpublic void setTables(Tables tables)
IDataSet
Sets the collection of database tables that are used as the source of the data set.
setTables
in interface IDataSet
tables
- the Tables
collectionpublic 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 |