use of com.blazebit.persistence.spi.ServiceProvider in project blaze-persistence by Blazebit.
the class AbstractAttribute method renderLimit.
@Override
public <T extends LimitBuilder<?> & OrderByBuilder<?>> void renderLimit(String parent, ParameterHolder<?> parameterHolder, Map<String, Object> optionalParameters, T builder) {
if (limitExpression != null) {
ExpressionFactory expressionFactory = ((ServiceProvider) builder).getService(ExpressionFactory.class);
declaringType.createLimiter(expressionFactory, parent, limitExpression, offsetExpression, orderByItems).apply(parameterHolder, optionalParameters, builder);
}
}
Aggregations