Class StandardRowReader<T>
- java.lang.Object
-
- org.hibernate.sql.results.internal.StandardRowReader<T>
-
-
Constructor Summary
Constructors Constructor Description StandardRowReader(DomainResultAssembler<?>[] resultAssemblers, Initializer<?>[] resultInitializers, Initializer<?>[] initializers, Initializer<?>[] sortedForResolveInitializers, boolean hasCollectionInitializers, RowTransformer<T> rowTransformer, Class<T> domainResultJavaType)
StandardRowReader(JdbcValuesMappingResolution jdbcValuesMappingResolution, RowTransformer<T> rowTransformer, Class<T> domainResultJavaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishUp(RowProcessingState rowProcessingState)
Called at the end of processing all rowsClass<T>
getDomainResultResultJavaType()
The type actually returned from this reader'sRowReader.readRow(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()
T
readRow(RowProcessingState rowProcessingState)
The actual coordination of reading a row@Nullable EntityKey
resolveSingleResultEntityKey(RowProcessingState rowProcessingState)
void
startLoading(RowProcessingState processingState)
Called before reading the first row.
-
-
-
Constructor Detail
-
StandardRowReader
public StandardRowReader(JdbcValuesMappingResolution jdbcValuesMappingResolution, RowTransformer<T> rowTransformer, Class<T> domainResultJavaType)
-
StandardRowReader
public StandardRowReader(DomainResultAssembler<?>[] resultAssemblers, Initializer<?>[] resultInitializers, Initializer<?>[] initializers, Initializer<?>[] sortedForResolveInitializers, boolean hasCollectionInitializers, RowTransformer<T> rowTransformer, Class<T> domainResultJavaType)
-
-
Method Detail
-
getDomainResultResultJavaType
public Class<T> getDomainResultResultJavaType()
Description copied from interface:RowReader
The type actually returned from this reader'sRowReader.readRow(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
- Specified by:
getDomainResultResultJavaType
in interfaceRowReader<T>
-
getResultJavaTypes
public List<@Nullable JavaType<?>> getResultJavaTypes()
Description copied from interface:RowReader
The individual JavaType for each DomainResult- Specified by:
getResultJavaTypes
in interfaceRowReader<T>
-
getInitializerCount
public int getInitializerCount()
- Specified by:
getInitializerCount
in interfaceRowReader<T>
-
resolveSingleResultEntityKey
public @Nullable EntityKey resolveSingleResultEntityKey(RowProcessingState rowProcessingState)
- Specified by:
resolveSingleResultEntityKey
in interfaceRowReader<T>
-
hasCollectionInitializers
public boolean hasCollectionInitializers()
- Specified by:
hasCollectionInitializers
in interfaceRowReader<T>
-
readRow
public T readRow(RowProcessingState rowProcessingState)
Description copied from interface:RowReader
The actual coordination of reading a row
-
startLoading
public void startLoading(RowProcessingState processingState)
Description copied from interface:RowReader
Called before reading the first row.- Specified by:
startLoading
in interfaceRowReader<T>
-
finishUp
public void finishUp(RowProcessingState rowProcessingState)
Description copied from interface:RowReader
Called at the end of processing all rows
-
-