Package org.hibernate.sql.results.spi
Class ListResultsConsumer<R>
- java.lang.Object
-
- org.hibernate.sql.results.spi.ListResultsConsumer<R>
-
- All Implemented Interfaces:
ResultsConsumer<List<R>,R>
public class ListResultsConsumer<R> extends Object implements ResultsConsumer<List<R>,R>
ResultsConsumer for creating a List of results
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListResultsConsumer.UniqueSemantic
Ways this consumer can handle in-memory row de-duplication
-
Constructor Summary
Constructors Constructor Description ListResultsConsumer(ListResultsConsumer.UniqueSemantic uniqueSemantic)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canResultsBeCached()
List<R>
consume(JdbcValues jdbcValues, SharedSessionContractImplementor session, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<R> rowReader)
static <R> ListResultsConsumer<R>
instance(ListResultsConsumer.UniqueSemantic uniqueSemantic)
String
toString()
-
-
-
Constructor Detail
-
ListResultsConsumer
public ListResultsConsumer(ListResultsConsumer.UniqueSemantic uniqueSemantic)
-
-
Method Detail
-
instance
public static <R> ListResultsConsumer<R> instance(ListResultsConsumer.UniqueSemantic uniqueSemantic)
-
consume
public List<R> consume(JdbcValues jdbcValues, SharedSessionContractImplementor session, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<R> rowReader)
- Specified by:
consume
in interfaceResultsConsumer<List<R>,R>
-
canResultsBeCached
public boolean canResultsBeCached()
- Specified by:
canResultsBeCached
in interfaceResultsConsumer<List<R>,R>
-
-