Java Code Examples for org.apache.olingo.odata2.api.edm.provider.EntityContainer#getFunctionImports()
The following examples show how to use
org.apache.olingo.odata2.api.edm.provider.EntityContainer#getFunctionImports() .
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: EdmImplProv.java From olingo-odata2 with Apache License 2.0 | 6 votes |
@Override protected List<EdmFunctionImport> createFunctionImports() throws ODataException { List<EdmFunctionImport> edmFunctionImports = new ArrayList<EdmFunctionImport>(); if (schemas == null) { schemas = edmProvider.getSchemas(); } for (Schema schema : schemas) { for (EntityContainer entityContainer : schema.getEntityContainers()) { for (FunctionImport functionImport : entityContainer.getFunctionImports()) { EdmEntityContainer edmEntityContainer = createEntityContainer(entityContainer.getName()); edmFunctionImports.add(new EdmFunctionImportImplProv(this, functionImport, edmEntityContainer)); } } } return edmFunctionImports; }
Example 2
Source File: AnnotationEdmProvider.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public FunctionImport getFunctionImport(final String entityContainer, final String name) throws ODataException { EntityContainer container = name2Container.get(entityContainer); if (container != null) { List<FunctionImport> functionImports = container.getFunctionImports(); for (FunctionImport functionImport : functionImports) { if (functionImport.getName().equals(name)) { return functionImport; } } } return null; }
Example 3
Source File: EdmxProvider.java From olingo-odata2 with Apache License 2.0 | 5 votes |
@Override public FunctionImport getFunctionImport(final String entityContainer, final String name) throws ODataException { for (Schema schema : dataServices.getSchemas()) { for (EntityContainer container : schema.getEntityContainers()) { if (container.getName().equals(entityContainer)) { for (FunctionImport function : container.getFunctionImports()) { if (function.getName().equals(name)) { return function; } } } } } return null; }