private void addArguments(JPQLQueryContext queryContext, DatabaseQuery databaseQuery) {
if (queryContext.inputParameters != null) {
for (Map.Entry<InputParameter, Expression> entry : queryContext.inputParameters.entrySet()) {
ParameterExpression parameter = (ParameterExpression) entry.getValue();
databaseQuery.addArgument(
parameter.getField().getName(),
(Class<?>) parameter.getType(),
entry.getKey().isPositional() ? ParameterType.POSITIONAL : ParameterType.NAMED
);
}
}
}