use of org.hibernate.query.results.ResultBuilder in project hibernate-orm by hibernate.
the class CompleteResultBuilderInstantiation method buildResult.
@Override
public DomainResult<?> buildResult(JdbcValuesMetadata jdbcResultsMetadata, int resultPosition, BiFunction<String, String, DynamicFetchBuilderLegacy> legacyFetchResolver, DomainResultCreationState domainResultCreationState) {
final List<ArgumentDomainResult<?>> argumentDomainResults = new ArrayList<>(argumentResultBuilders.size());
for (int i = 0; i < argumentResultBuilders.size(); i++) {
final ResultBuilder argumentResultBuilder = argumentResultBuilders.get(i);
@SuppressWarnings({ "unchecked", "rawtypes" }) final ArgumentDomainResult<?> argumentDomainResult = new ArgumentDomainResult(argumentResultBuilder.buildResult(jdbcResultsMetadata, i, legacyFetchResolver, domainResultCreationState));
argumentDomainResults.add(argumentDomainResult);
}
return new DynamicInstantiationResultImpl<>(null, DynamicInstantiationNature.CLASS, javaType, argumentDomainResults);
}
Aggregations