Package com.bayesserver.data
Class DataReaderCommandFiltered
- java.lang.Object
-
- com.bayesserver.data.DataReaderCommandFiltered
-
- All Implemented Interfaces:
DataReaderCommand
public final class DataReaderCommandFiltered extends Object implements DataReaderCommand
Wraps an existing data reader command while filtering records.
-
-
Constructor Summary
Constructors Constructor Description DataReaderCommandFiltered(DataReaderCommand inner, DataReaderFilter filter)
Initializes a new instance of theDataReaderCommandFiltered
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataReader
executeReader()
Returns an instance ofIDataReader
.
-
-
-
Constructor Detail
-
DataReaderCommandFiltered
public DataReaderCommandFiltered(DataReaderCommand inner, DataReaderFilter filter)
Initializes a new instance of theDataReaderCommandFiltered
class.- Parameters:
inner
- The existing data reader command to filter.filter
- Determines whether a record should be included in the filtered data reader or not.
-
-
Method Detail
-
executeReader
public DataReader executeReader()
Returns an instance ofIDataReader
.- Specified by:
executeReader
in interfaceDataReaderCommand
- Returns:
- A data reader.
-
-