@Test public void checkGetAction() throws ODataJPAModelException { final EdmAction action = mock(EdmAction.class); when(action.getNamespace()).thenReturn("com.sap.olingo.jpa"); when(action.getName()).thenReturn("BoundNoImport"); final JPAServiceDocument svc = new IntermediateServiceDocument(PUNIT_NAME, emf.getMetamodel(), null, new String[] { "com.sap.olingo.jpa.metadata.core.edm.mapper.testaction" }); assertNotNull(svc.getAction(action)); }
@Override public JPAAction getAction(final EdmAction action) { final IntermediateSchema schema = schemaListInternalKey.get(action.getNamespace()); if (schema != null) return schema.getAction(action.getName()); return null; }
IntermediateServiceDocument implements JPAServiceDocument { @Override public JPAAction getAction(final EdmAction action) { final IntermediateSchema schema = schemaListInternalKey.get(action.getNamespace()); if (schema != null) return schema.getAction(action.getName()); return null; } }
IntermediateServiceDocument implements JPAServiceDocument { @Override public JPAAction getAction(final EdmAction action) { final IntermediateSchema schema = schemaListInternalKey.get(action.getNamespace()); if (schema != null) return schema.getAction(action.getName()); return null; } IntermediateServiceDocument(final String namespace, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName);   IntermediateServiceDocument(final JPAEdmNameBuilder nameBuilder, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName); }
IntermediateServiceDocument implements JPAServiceDocument { @Override public JPAAction getAction(final EdmAction action) { final IntermediateSchema schema = schemaListInternalKey.get(action.getNamespace()); if (schema != null) return schema.getAction(action.getName()); return null; } IntermediateServiceDocument(final String namespace, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName);   IntermediateServiceDocument(final JPAEdmNameBuilder nameBuilder, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName); @Override List<CsdlSchema> getAllSchemas(); @Override CsdlEntityContainer getEdmEntityContainer(); @Override List<CsdlSchema> getEdmSchemas(); @Override JPAEntityType getEntity(final EdmType edmType); @Override JPAEntityType getEntity(final Class<?> entityClass); @Override JPAStructuredType getComplexType(final EdmComplexType edmType); @Override JPAEntityType getEntity(final FullQualifiedName typeName); @Override JPAEntityType getEntity(final String edmEntitySetName); @Override JPAEntitySet getEntitySet(final JPAEntityType entityType); @Override JPAFunction getFunction(final EdmFunction function); @Override JPAAction getAction(final EdmAction action); @Override List<EdmxReference> getReferences(); @Override CsdlTerm getTerm(final FullQualifiedName termName); @Override boolean hasETag(final EdmBindingTarget entitySetOrSingleton); @Override boolean hasMediaETag(final EdmBindingTarget entitySetOrSingleton); @Override JPAEnumerationAttribute getEnumType(final EdmEnumType type); @Override JPAEnumerationAttribute getEnumType(final String fqnAsString); }
IntermediateServiceDocument implements JPAServiceDocument { @Override public JPAAction getAction(final EdmAction action) { final IntermediateSchema schema = schemaListInternalKey.get(action.getNamespace()); if (schema != null) return schema.getAction(action.getName()); return null; } IntermediateServiceDocument(final String namespace, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName);   IntermediateServiceDocument(final JPAEdmNameBuilder nameBuilder, final Metamodel jpaMetamodel,
      final JPAEdmMetadataPostProcessor postProcessor, final String[] packageName); @Override List<CsdlSchema> getAllSchemas(); @Override CsdlEntityContainer getEdmEntityContainer(); @Override List<CsdlSchema> getEdmSchemas(); @Override JPAEntityType getEntity(final EdmType edmType); @Override JPAEntityType getEntity(final Class<?> entityClass); @Override JPAStructuredType getComplexType(final EdmComplexType edmType); @Override JPAEntityType getEntity(final FullQualifiedName typeName); @Override JPAEntityType getEntity(final String edmEntitySetName); @Override JPAEntitySet getEntitySet(final JPAEntityType entityType); @Override JPAFunction getFunction(final EdmFunction function); @Override JPAAction getAction(final EdmAction action); @Override List<EdmxReference> getReferences(); @Override CsdlTerm getTerm(final FullQualifiedName termName); @Override boolean hasETag(final EdmBindingTarget entitySetOrSingleton); @Override boolean hasMediaETag(final EdmBindingTarget entitySetOrSingleton); @Override JPAEnumerationAttribute getEnumType(final EdmEnumType type); @Override JPAEnumerationAttribute getEnumType(final String fqnAsString);  }