com.aspose.words
Class DataSet

java.lang.Object
    extended by com.aspose.words.DataSet

public class DataSet 
extends java.lang.Object

This class is a container for a set of data tables and relations between them. You normally use this class as a data source for a mail merge with nested regions.

Constructor Summary
DataSet()
           Initializes a new instance of this class.
 
Method Summary
voidclose()
           Iterates over all data tables contained in this data set and closes any database connections currently held open.
DataRelationCollectiongetRelations()
           Get the collection of parent-child relations that link tables in this data set.
DataTableCollectiongetTables()
           Gets the collection of tables contained in the this data set.
 

Constructor Detail

DataSet

public DataSet()
Initializes a new instance of this class.

You can create an instance of this class, add tables, add relations and use this data set as a data source for a mail merge operation.


Method Detail

close

public void close()
          throws java.lang.Exception
Iterates over all data tables contained in this data set and closes any database connections currently held open.

getRelations

public DataRelationCollection getRelations()
Get the collection of parent-child relations that link tables in this data set.

getTables

public DataTableCollection getTables()
Gets the collection of tables contained in the this data set.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.