@Test public void checkProvidesAllParameter() throws ODataJPAModelException { IntermediateJavaAction act = createAction(ExampleJavaActions.class, "unboundWithImport"); List<JPAParameter> actParams = act.getParameter(); assertEquals(2, actParams.size()); }
public List<JPAParameter> getParameter() throws ODataJPAModelException { if (parameterList == null) { parameterList = new ArrayList<>(); final Class<?>[] types = javaAction.getParameterTypes(); final Parameter[] declairedParameters = javaAction.getParameters(); for (int i = 0; i < declairedParameters.length; i++) { final Parameter declairedParameter = declairedParameters[i]; final EdmParameter definedParameter = declairedParameter.getAnnotation(EdmParameter.class); if (definedParameter == null) throw new ODataJPAModelException(ODataJPAModelException.MessageKeys.ACTION_PARAM_ANNOTATION_MISSING, declairedParameter.getName(), javaAction.getName(), javaAction .getDeclaringClass().getName()); final JPAParameter parameter = new IntermediateOperationParameter( nameBuilder, definedParameter, nameBuilder.buildPropertyName(definedParameter.name()), declairedParameter.getName(), types[i]); parameterList.add(parameter); } } return parameterList; }
IntermediateJavaAction extends IntermediateOperation implements JPAAction { public List<JPAParameter> getParameter() throws ODataJPAModelException { if (parameterList == null) { parameterList = new ArrayList<>(); final Class<?>[] types = javaAction.getParameterTypes(); final Parameter[] declairedParameters = javaAction.getParameters(); for (int i = 0; i < declairedParameters.length; i++) { final Parameter declairedParameter = declairedParameters[i]; final EdmParameter definedParameter = declairedParameter.getAnnotation(EdmParameter.class); if (definedParameter == null) throw new ODataJPAModelException(ODataJPAModelException.MessageKeys.ACTION_PARAM_ANNOTATION_MISSING, declairedParameter.getName(), javaAction.getName(), javaAction .getDeclaringClass().getName()); final JPAParameter parameter = new IntermediateOperationParameter( nameBuilder, definedParameter, nameBuilder.buildPropertyName(definedParameter.name()), declairedParameter.getName(), types[i]); parameterList.add(parameter); } } return parameterList; } }
IntermediateJavaAction extends IntermediateOperation implements JPAAction { public List<JPAParameter> getParameter() throws ODataJPAModelException { if (parameterList == null) { parameterList = new ArrayList<>(); final Class<?>[] types = javaAction.getParameterTypes(); final Parameter[] declairedParameters = javaAction.getParameters(); for (int i = 0; i < declairedParameters.length; i++) { final Parameter declairedParameter = declairedParameters[i]; final EdmParameter definedParameter = declairedParameter.getAnnotation(EdmParameter.class); if (definedParameter == null) throw new ODataJPAModelException(ODataJPAModelException.MessageKeys.ACTION_PARAM_ANNOTATION_MISSING, declairedParameter.getName(), javaAction.getName(), javaAction .getDeclaringClass().getName()); final JPAParameter parameter = new IntermediateOperationParameter( nameBuilder, definedParameter, nameBuilder.buildPropertyName(definedParameter.name()), declairedParameter.getName(), types[i]); parameterList.add(parameter); } } return parameterList; } IntermediateJavaAction(final JPAEdmNameBuilder nameBuilder, final EdmAction jpaAction, final Method javaAction,
      final IntermediateSchema schema); }
IntermediateJavaAction extends IntermediateOperation implements JPAAction { public List<JPAParameter> getParameter() throws ODataJPAModelException { if (parameterList == null) { parameterList = new ArrayList<>(); final Class<?>[] types = javaAction.getParameterTypes(); final Parameter[] declairedParameters = javaAction.getParameters(); for (int i = 0; i < declairedParameters.length; i++) { final Parameter declairedParameter = declairedParameters[i]; final EdmParameter definedParameter = declairedParameter.getAnnotation(EdmParameter.class); if (definedParameter == null) throw new ODataJPAModelException(ODataJPAModelException.MessageKeys.ACTION_PARAM_ANNOTATION_MISSING, declairedParameter.getName(), javaAction.getName(), javaAction .getDeclaringClass().getName()); final JPAParameter parameter = new IntermediateOperationParameter( nameBuilder, definedParameter, nameBuilder.buildPropertyName(definedParameter.name()), declairedParameter.getName(), types[i]); parameterList.add(parameter); } } return parameterList; } IntermediateJavaAction(final JPAEdmNameBuilder nameBuilder, final EdmAction jpaAction, final Method javaAction,
      final IntermediateSchema schema); @Override Constructor<?> getConstructor(); @Override Method getMethod(); List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final Parameter declairedParameter); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType(); }
IntermediateJavaAction extends IntermediateOperation implements JPAAction { public List<JPAParameter> getParameter() throws ODataJPAModelException { if (parameterList == null) { parameterList = new ArrayList<>(); final Class<?>[] types = javaAction.getParameterTypes(); final Parameter[] declairedParameters = javaAction.getParameters(); for (int i = 0; i < declairedParameters.length; i++) { final Parameter declairedParameter = declairedParameters[i]; final EdmParameter definedParameter = declairedParameter.getAnnotation(EdmParameter.class); if (definedParameter == null) throw new ODataJPAModelException(ODataJPAModelException.MessageKeys.ACTION_PARAM_ANNOTATION_MISSING, declairedParameter.getName(), javaAction.getName(), javaAction .getDeclaringClass().getName()); final JPAParameter parameter = new IntermediateOperationParameter( nameBuilder, definedParameter, nameBuilder.buildPropertyName(definedParameter.name()), declairedParameter.getName(), types[i]); parameterList.add(parameter); } } return parameterList; } IntermediateJavaAction(final JPAEdmNameBuilder nameBuilder, final EdmAction jpaAction, final Method javaAction,
      final IntermediateSchema schema); @Override Constructor<?> getConstructor(); @Override Method getMethod(); List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final Parameter declairedParameter); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType();  }