Package org.hibernate.sql.results.spi
Class SingleResultConsumer<T>
- java.lang.Object
-
- org.hibernate.sql.results.spi.SingleResultConsumer<T>
-
- All Implemented Interfaces:
ResultsConsumer<T,T>
@Incubating public class SingleResultConsumer<T> extends Object implements ResultsConsumer<T,T>
Used beneathSelectionQuery.getResultCount()
.- Since:
- 6.5
-
-
Constructor Summary
Constructors Constructor Description SingleResultConsumer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canResultsBeCached()
T
consume(JdbcValues jdbcValues, SharedSessionContractImplementor session, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<T> rowReader)
static <T> SingleResultConsumer<T>
instance()
-
-
-
Method Detail
-
instance
public static <T> SingleResultConsumer<T> instance()
-
consume
public T consume(JdbcValues jdbcValues, SharedSessionContractImplementor session, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<T> rowReader)
- Specified by:
consume
in interfaceResultsConsumer<T,T>
-
canResultsBeCached
public boolean canResultsBeCached()
- Specified by:
canResultsBeCached
in interfaceResultsConsumer<T,T>
-
-