use of com.blazebit.persistence.impl.query.CustomReturningSQLTypedQuery in project blaze-persistence by Blazebit.
the class AbstractInsertCollectionCriteriaBuilder method getExecuteWithReturningQuery.
@Override
protected <R> TypedQuery<ReturningResult<R>> getExecuteWithReturningQuery(TypedQuery<Object[]> exampleQuery, Query baseQuery, String[] returningColumns, ReturningObjectBuilder<R> objectBuilder) {
QuerySpecification querySpecification = getQuerySpecification(baseQuery, exampleQuery, returningColumns, objectBuilder, null);
CustomReturningSQLTypedQuery query = new CustomReturningSQLTypedQuery<R>(querySpecification, exampleQuery, parameterManager.getCriteriaNameMapping(), parameterManager.getTransformers(), parameterManager.getValuesParameters(), parameterManager.getValuesBinders());
parameterManager.parameterizeQuery(query);
baseQuery.setFirstResult(firstResult);
baseQuery.setMaxResults(maxResults);
return query;
}
Aggregations