Package com.bayesserver.data
Class DataTableDataReaderCommand
- java.lang.Object
-
- com.bayesserver.data.DataTableDataReaderCommand
-
- All Implemented Interfaces:
DataReaderCommand
public final class DataTableDataReaderCommand extends Object implements DataReaderCommand
A DataReaderCommand backed by a DataTable.
-
-
Constructor Summary
Constructors Constructor Description DataTableDataReaderCommand(DataTable dataTable)
Creates a new instance, based on a DataTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataReader
executeReader()
Creates a new DataReader backed by the DataTable.
-
-
-
Constructor Detail
-
DataTableDataReaderCommand
public DataTableDataReaderCommand(DataTable dataTable)
Creates a new instance, based on a DataTable.- Parameters:
dataTable
- The data to be read.
-
-
Method Detail
-
executeReader
public DataReader executeReader()
Creates a new DataReader backed by the DataTable.- Specified by:
executeReader
in interfaceDataReaderCommand
- Returns:
- A new DataReader instance.
-
-