|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLumiSoft.Data.DataSet
public class DataSet
Represents an in-memory cache of data.
| Constructor Summary | |
|---|---|
DataSet()
Default constructor. |
|
DataSet(java.lang.String name)
Creates new dataset with specified name. |
|
| Method Summary | |
|---|---|
void |
Clear()
Clears the DataSet of any data by removing all rows in all tables. |
void |
Clone()
Copies the structure of the DataSet. |
void |
Copy()
Copies both the structure and data for this DataSet. |
java.lang.String |
getDataSetName()
Gets the name of the current DataSet. |
DataRelationCollection |
getRelations()
Get the collection of relations that link tables and allow navigation from parent tables to child tables. |
DataTableCollection |
getTables()
Gets the collection of tables contained in the DataSet. |
void |
Merge(DataTable table)
Merges a specified DataTable and its schema into the current DataSet. |
void |
ReadXml(java.io.InputStream stream)
Reads xml from specified stream. |
void |
ReadXml(java.lang.String fileName)
Reads xml from specified file. |
void |
setDataSetName(java.lang.String value)
Sets the name of the current DataSet. |
void |
WriteXml(java.io.OutputStream stream)
Writes DataSet data to specified stream. |
void |
WriteXml(java.io.OutputStream stream,
boolean writeSchema)
Writes DataSet data to specified stream. |
void |
WriteXml(java.lang.String fileName)
Writes the current data for the DataSet to the specified file. |
void |
WriteXml(java.lang.String fileName,
boolean writeSchema)
Writes the current data for the DataSet to the specified file. |
void |
WriteXmlSchema(java.io.OutputStream stream)
Writes Xml schema to specified stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSet()
public DataSet(java.lang.String name)
name - DataSet name.| Method Detail |
|---|
public void ReadXml(java.lang.String fileName)
throws java.lang.Exception
fileName - File name from where to read DataSet.
java.lang.Exceptionpublic void ReadXml(java.io.InputStream stream)
stream - Stream from where to read DataSet.
public void WriteXml(java.lang.String fileName)
throws java.lang.Exception
fileName - The file name (including the path) to which to write.
java.lang.Exception
public void WriteXml(java.lang.String fileName,
boolean writeSchema)
throws java.lang.Exception
fileName - The file name (including the path) to which to write.writeSchema -
java.lang.Exception
public void WriteXml(java.io.OutputStream stream)
throws java.lang.Exception
stream - Stream where to write data.
java.lang.Exception
public void WriteXml(java.io.OutputStream stream,
boolean writeSchema)
throws java.lang.Exception
stream - Stream where to write data.writeSchema - Specifies if schema must be written.
java.lang.Exception
public void WriteXmlSchema(java.io.OutputStream stream)
throws java.lang.Exception
stream -
java.lang.Exceptionpublic void Clear()
public void Clone()
public void Copy()
public void Merge(DataTable table)
table - public java.lang.String getDataSetName()
public void setDataSetName(java.lang.String value)
value - public DataTableCollection getTables()
public DataRelationCollection getRelations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||