@Test public void testGetEntitySet() { String entitySetName = null; try { entitySetName = edmProvider.getEntitySet("salesorderprocessingContainer", "SalesOrderHeaders").getName(); } catch (ODataException e) { fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2); } assertEquals("SalesOrderHeaders", entitySetName); try { assertNull(edmProvider.getEntitySet("salesorderprocessing", "SalesOrderHeaders")); } catch (ODataException e) { assertTrue(true); } }
@Override public EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException { EntitySet returnedSet = null; EntityContainer container = null; if (!entityContainerInfos.containsKey(entityContainer)) { container = (EntityContainer) getEntityContainerInfo(entityContainer); } else { container = (EntityContainer) entityContainerInfos.get(entityContainer); } if (container != null && name != null) { for (EntitySet es : container.getEntitySets()) { if (name.equals(es.getName())) { returnedSet = es; break; } } } return returnedSet; }
ODataJPAEdmProvider extends EdmProvider { @Override public EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException { EntitySet returnedSet = null; EntityContainer container = null; if (!entityContainerInfos.containsKey(entityContainer)) { container = (EntityContainer) getEntityContainerInfo(entityContainer); } else { container = (EntityContainer) entityContainerInfos.get(entityContainer); } if (container != null && name != null) { for (EntitySet es : container.getEntitySets()) { if (name.equals(es.getName())) { returnedSet = es; break; } } } return returnedSet; } }
ODataJPAEdmProvider extends EdmProvider { @Override public EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException { EntitySet returnedSet = null; EntityContainer container = null; if (!entityContainerInfos.containsKey(entityContainer)) { container = (EntityContainer) getEntityContainerInfo(entityContainer); } else { container = (EntityContainer) entityContainerInfos.get(entityContainer); } if (container != null && name != null) { for (EntitySet es : container.getEntitySets()) { if (name.equals(es.getName())) { returnedSet = es; break; } } } return returnedSet; } ODataJPAEdmProvider();  ODataJPAEdmProvider(final ODataJPAContext oDataJPAContext); }
ODataJPAEdmProvider extends EdmProvider { @Override public EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException { EntitySet returnedSet = null; EntityContainer container = null; if (!entityContainerInfos.containsKey(entityContainer)) { container = (EntityContainer) getEntityContainerInfo(entityContainer); } else { container = (EntityContainer) entityContainerInfos.get(entityContainer); } if (container != null && name != null) { for (EntitySet es : container.getEntitySets()) { if (name.equals(es.getName())) { returnedSet = es; break; } } } return returnedSet; } 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 EntitySet getEntitySet(final String entityContainer, final String name) throws ODataException { EntitySet returnedSet = null; EntityContainer container = null; if (!entityContainerInfos.containsKey(entityContainer)) { container = (EntityContainer) getEntityContainerInfo(entityContainer); } else { container = (EntityContainer) entityContainerInfos.get(entityContainer); } if (container != null && name != null) { for (EntitySet es : container.getEntitySets()) { if (name.equals(es.getName())) { returnedSet = es; break; } } } return returnedSet; } 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();  }