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 theDataReaderCommandFilteredclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataReaderexecuteReader()Returns an instance ofIDataReader.
-
-
-
Constructor Detail
-
DataReaderCommandFiltered
public DataReaderCommandFiltered(DataReaderCommand inner, DataReaderFilter filter)
Initializes a new instance of theDataReaderCommandFilteredclass.- 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:
executeReaderin interfaceDataReaderCommand- Returns:
- A data reader.
-
-