@Test public void testGetEntityContainerInfo() { String entityContainerName = null; EntityContainerInfo entityContainer = null; try { entityContainer = edmProvider.getEntityContainerInfo("salesorderprocessingContainer"); entityContainerName = entityContainer.getName(); } catch (ODataException e) { fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2); } assertEquals("salesorderprocessingContainer", entityContainerName); assertNotNull(entityContainer); }
@Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (entityContainerInfos.containsKey(name)) { return entityContainerInfos.get(name); } else { if (schemas == null) { getSchemas(); } List<EntityContainer> containerList = schemas.get(0).getEntityContainers(); if (containerList == null) { return null; } for (EntityContainer container : containerList) { if (name == null && container.isDefaultEntityContainer()) { entityContainerInfos.put(name, container); return container; } else if (name != null && name.equals(container.getName())) { return container; } } } return null; }
ODataJPAEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (entityContainerInfos.containsKey(name)) { return entityContainerInfos.get(name); } else { if (schemas == null) { getSchemas(); } List<EntityContainer> containerList = schemas.get(0).getEntityContainers(); if (containerList == null) { return null; } for (EntityContainer container : containerList) { if (name == null && container.isDefaultEntityContainer()) { entityContainerInfos.put(name, container); return container; } else if (name != null && name.equals(container.getName())) { return container; } } } return null; } }
ODataJPAEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (entityContainerInfos.containsKey(name)) { return entityContainerInfos.get(name); } else { if (schemas == null) { getSchemas(); } List<EntityContainer> containerList = schemas.get(0).getEntityContainers(); if (containerList == null) { return null; } for (EntityContainer container : containerList) { if (name == null && container.isDefaultEntityContainer()) { entityContainerInfos.put(name, container); return container; } else if (name != null && name.equals(container.getName())) { return container; } } } return null; } ODataJPAEdmProvider();  ODataJPAEdmProvider(final ODataJPAContext oDataJPAContext); }
ODataJPAEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (entityContainerInfos.containsKey(name)) { return entityContainerInfos.get(name); } else { if (schemas == null) { getSchemas(); } List<EntityContainer> containerList = schemas.get(0).getEntityContainers(); if (containerList == null) { return null; } for (EntityContainer container : containerList) { if (name == null && container.isDefaultEntityContainer()) { entityContainerInfos.put(name, container); return container; } else if (name != null && name.equals(container.getName())) { return container; } } } return null; } ODataJPAEdmProvider();  ODataJPAEdmProvider(final ODataJPAContext oDataJPAContext); ODataJPAContext getODataJPAContext(); void setODataJPAContext(final ODataJPAContext jpaContext); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas(); }
ODataJPAEdmProvider extends EdmProvider { @Override public EntityContainerInfo getEntityContainerInfo(final String name) throws ODataException { if (entityContainerInfos.containsKey(name)) { return entityContainerInfos.get(name); } else { if (schemas == null) { getSchemas(); } List<EntityContainer> containerList = schemas.get(0).getEntityContainers(); if (containerList == null) { return null; } for (EntityContainer container : containerList) { if (name == null && container.isDefaultEntityContainer()) { entityContainerInfos.put(name, container); return container; } else if (name != null && name.equals(container.getName())) { return container; } } } return null; } ODataJPAEdmProvider();  ODataJPAEdmProvider(final ODataJPAContext oDataJPAContext); ODataJPAContext getODataJPAContext(); void setODataJPAContext(final ODataJPAContext jpaContext); @Override EntityContainerInfo getEntityContainerInfo(final String name); @Override EntityType getEntityType(final FullQualifiedName edmFQName); @Override ComplexType getComplexType(final FullQualifiedName edmFQName); @Override Association getAssociation(final FullQualifiedName edmFQName); @Override EntitySet getEntitySet(final String entityContainer, final String name); @Override AssociationSet getAssociationSet(final String entityContainer, final FullQualifiedName association,
      final String sourceEntitySetName, final String sourceEntitySetRole); @Override FunctionImport getFunctionImport(final String entityContainer, final String name); @Override List<Schema> getSchemas();  }