Java Code Examples for org.springframework.data.repository.query.Parameter#isBindable()

The following examples show how to use org.springframework.data.repository.query.Parameter#isBindable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProcessorUtils.java    From mongodb-aggregate-query-support with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("WeakerAccess")
public List<Object> getParameterValues(Method method, MongoParameterAccessor mongoParameterAccessor,
                                       ConvertingParameterAccessor convertingParameterAccessor) {
  List<Object> retval = new ArrayList<>();
  int numArgs = method.getParameterCount();
  for (int i = 0; i < numArgs; i++) {
    Parameter param = ((MongoParametersParameterAccessor) mongoParameterAccessor).getParameters().getParameter(i);
    if (param.isBindable()) {
      retval.add(convertingParameterAccessor.getBindableValue(i));
    }
  }
  return retval;
}
 
Example 2
Source File: ReactiveProcessorUtils.java    From mongodb-aggregate-query-support with Apache License 2.0 5 votes vote down vote up
private List<Object> getParameterValues(Method method, 
                                        MongoParameterAccessor mongoParameterAccessor,
                                        ConvertingParameterAccessor convertingParameterAccessor
                                       ) {
  List<Object> retval = new ArrayList<>();
  int numArgs = method.getParameterCount();
  for (int i = 0; i < numArgs; i++) {
    Parameter param = ((MongoParametersParameterAccessor) mongoParameterAccessor).getParameters().getParameter(i);
    if (param.isBindable()) {
      retval.add(convertingParameterAccessor.getBindableValue(i));
    }
  }
  return retval;
}
 
Example 3
Source File: FreemarkerTemplateQuery.java    From spring-data-jpa-extra with Apache License 2.0 4 votes vote down vote up
private boolean canBindParameter(Parameter parameter) {
    return parameter.isBindable();
}