Package org.hibernate.sql.results.spi
Interface RowReader<R>
-
- All Known Implementing Classes:
StandardRowReader
public interface RowReader<R>
Coordinates the process of reading a single result values row
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finishUp(RowProcessingState processingState)
Called at the end of processing all rowsClass<R>
getDomainResultResultJavaType()
The type actually returned from this reader'sreadRow(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
call, accounting for any transformers.int
getInitializerCount()
List<@Nullable JavaType<?>>
getResultJavaTypes()
The individual JavaType for each DomainResultboolean
hasCollectionInitializers()
R
readRow(RowProcessingState processingState)
The actual coordination of reading a row@Nullable EntityKey
resolveSingleResultEntityKey(RowProcessingState rowProcessingState)
void
startLoading(RowProcessingState processingState)
Called before reading the first row.
-
-
-
Method Detail
-
getDomainResultResultJavaType
Class<R> getDomainResultResultJavaType()
The type actually returned from this reader'sreadRow(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
call, accounting for any transformers.May be null to indicate that no transformation is applied.
Ultimately intended for use in comparing values are being de-duplicated
-
getResultJavaTypes
List<@Nullable JavaType<?>> getResultJavaTypes()
The individual JavaType for each DomainResult
-
getInitializerCount
int getInitializerCount()
-
startLoading
void startLoading(RowProcessingState processingState)
Called before reading the first row.
-
readRow
R readRow(RowProcessingState processingState)
The actual coordination of reading a row
-
finishUp
void finishUp(RowProcessingState processingState)
Called at the end of processing all rows
-
resolveSingleResultEntityKey
@Nullable EntityKey resolveSingleResultEntityKey(RowProcessingState rowProcessingState)
-
hasCollectionInitializers
boolean hasCollectionInitializers()
-
-