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 booleancanResultsBeCached()Tconsume(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:
consumein interfaceResultsConsumer<T,T>
-
canResultsBeCached
public boolean canResultsBeCached()
- Specified by:
canResultsBeCachedin interfaceResultsConsumer<T,T>
-
-