java.lang.Object
com.aspose.words.DataTable
public class DataTable
- extends java.lang.Object
Wraps a ResultSet object and associates it with a table name and a data set object if this table
belongs to a data set. You normally use this class as a data source for a specific mail merge region.
Constructor Summary |
DataTable(java.sql.ResultSet resultSet)
Creates an object by wrapping the specified ResultSet.
Attempts to retrieve the table name from the metadata of the first column of the ResultSet.
|
DataTable(java.sql.ResultSet resultSet, java.lang.String tableName)
Creates an object by wrapping the specified ResultSet. Uses the specified table name.
|
Method Summary |
void | close() | |
If the ResultSet stored inside this wrapper has a live connection to the database, closes it.
|
DataSet | getDataSet() | |
Gets the data set to which this table belongs.
|
java.sql.ResultSet | getResultSet() | |
Gets the underlying Java ResultSet object stored inside this wrapper.
|
java.lang.String | getTableName() | |
Gets the name of the data table. The name must be present and must match the name of the mail merge region defined in the template document.
|
DataTable
public DataTable(java.sql.ResultSet resultSet)
-
Creates an object by wrapping the specified ResultSet.
Attempts to retrieve the table name from the metadata of the first column of the ResultSet.
DataTable
public DataTable(java.sql.ResultSet resultSet, java.lang.String tableName)
-
Creates an object by wrapping the specified ResultSet. Uses the specified table name.
close | |
public void close()
throws java.lang.Exception |
-
If the ResultSet stored inside this wrapper has a live connection to the database, closes it.
getDataSet | |
public DataSet getDataSet() |
-
Gets the data set to which this table belongs.
getResultSet | |
public java.sql.ResultSet getResultSet() |
-
Gets the underlying Java ResultSet object stored inside this wrapper.
getTableName | |
public java.lang.String getTableName() |
-
Gets the name of the data table. The name must be present and must match the name of the mail merge region defined in the template document.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.