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 voidfinishUp(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.intgetInitializerCount()List<@Nullable JavaType<?>>getResultJavaTypes()The individual JavaType for each DomainResultbooleanhasCollectionInitializers()TreadRow(RowProcessingState rowProcessingState)The actual coordination of reading a row@Nullable EntityKeyresolveSingleResultEntityKey(RowProcessingState rowProcessingState)voidstartLoading(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:RowReaderThe 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:
getDomainResultResultJavaTypein interfaceRowReader<T>
-
getResultJavaTypes
public List<@Nullable JavaType<?>> getResultJavaTypes()
Description copied from interface:RowReaderThe individual JavaType for each DomainResult- Specified by:
getResultJavaTypesin interfaceRowReader<T>
-
getInitializerCount
public int getInitializerCount()
- Specified by:
getInitializerCountin interfaceRowReader<T>
-
resolveSingleResultEntityKey
public @Nullable EntityKey resolveSingleResultEntityKey(RowProcessingState rowProcessingState)
- Specified by:
resolveSingleResultEntityKeyin interfaceRowReader<T>
-
hasCollectionInitializers
public boolean hasCollectionInitializers()
- Specified by:
hasCollectionInitializersin interfaceRowReader<T>
-
readRow
public T readRow(RowProcessingState rowProcessingState)
Description copied from interface:RowReaderThe actual coordination of reading a row
-
startLoading
public void startLoading(RowProcessingState processingState)
Description copied from interface:RowReaderCalled before reading the first row.- Specified by:
startLoadingin interfaceRowReader<T>
-
finishUp
public void finishUp(RowProcessingState rowProcessingState)
Description copied from interface:RowReaderCalled at the end of processing all rows
-
-