private void readAction(XMLEventReader reader, StartElement element, CsdlSchema schema) throws XMLStreamException { CsdlAction action = new CsdlAction(); action.setParameters(new ArrayList<CsdlParameter>()); action.setName(attr(element, "Name")); action.setBound(Boolean.parseBoolean(attr(element, "IsBound"))); String entitySetPath = attr(element, "EntitySetPath"); if (entitySetPath != null) { // TODO: need to parse into binding and path. action.setEntitySetPath(entitySetPath); } readOperationParameters(reader, action); schema.getActions().add(action); }
private void readAction(XMLEventReader reader, StartElement element, CsdlSchema schema) throws XMLStreamException { CsdlAction action = new CsdlAction(); action.setParameters(new ArrayList<CsdlParameter>()); action.setName(attr(element, "Name")); action.setBound(Boolean.parseBoolean(attr(element, "IsBound"))); String entitySetPath = attr(element, "EntitySetPath"); if (entitySetPath != null) { // TODO: need to parse into binding and path. action.setEntitySetPath(entitySetPath); } readOperationParameters(reader, action); schema.getActions().add(action); }
@Override protected void lazyBuildEdmItem() throws ODataJPAModelException { if (edmAction == null) { edmAction = new CsdlAction(); // edmAction.setAnnotations(annotations); edmAction.setBound(jpaAction.isBound()); edmAction.setName(getExternalName()); edmAction.setParameters(returnNullIfEmpty(determineEdmInputParameter())); edmAction.setReturnType(determineEdmResultType(jpaAction.returnType(), javaAction)); edmAction.setEntitySetPath(setEntitySetPath()); } }