public EdmNavigationPropertyImplProv(final EdmImplProv edm, final NavigationProperty property) throws EdmException { super(edm, property.getName(), null, null); navigationProperty = property; }
public EdmNavigationPropertyImplProv(final EdmImplProv edm, final NavigationProperty property) throws EdmException { super(edm, property.getName(), null, null); navigationProperty = property; }
public EdmNavigationPropertyImplProv(final EdmImplProv edm, final NavigationProperty property) throws EdmException { super(edm, property.getName(), null, null); navigationProperty = property; }
private void buildNavigationPropertiesInternal() throws EdmException { navigationProperties = new HashMap<String, NavigationProperty>(); if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { navigationProperties.put(navigationProperty.getName(), navigationProperty); } } }
private void buildNavigationPropertiesInternal() throws EdmException { navigationProperties = new HashMap<String, NavigationProperty>(); if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { navigationProperties.put(navigationProperty.getName(), navigationProperty); } } }
private void buildNavigationPropertiesInternal() throws EdmException { navigationProperties = new HashMap<String, NavigationProperty>(); if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { navigationProperties.put(navigationProperty.getName(), navigationProperty); } } }
@Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; }
@Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; }
@Override public List<String> getNavigationPropertyNames() throws EdmException { if (edmNavigationPropertyNames == null) { edmNavigationPropertyNames = new ArrayList<String>(); if (edmBaseType != null) { edmNavigationPropertyNames.addAll(((EdmEntityType) edmBaseType).getNavigationPropertyNames()); } if (entityType.getNavigationProperties() != null) { for (final NavigationProperty navigationProperty : entityType.getNavigationProperties()) { edmNavigationPropertyNames.add(navigationProperty.getName()); } } } return edmNavigationPropertyNames; }
if (properties != null) { for (NavigationProperty property : properties) { if (property.getName().equals( sourceNavigationPropertyName)) { throw new ODataException("entity type "
for (NavigationProperty navigationProperty : navigationProperties) { xmlStreamWriter.writeStartElement(XmlMetadataConstants.EDM_NAVIGATION_PROPERTY); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAME, navigationProperty.getName()); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAVIGATION_RELATIONSHIP, navigationProperty .getRelationship().toString());
for (NavigationProperty navigationProperty : navigationProperties) { xmlStreamWriter.writeStartElement(XmlMetadataConstants.EDM_NAVIGATION_PROPERTY); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAME, navigationProperty.getName()); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAVIGATION_RELATIONSHIP, navigationProperty .getRelationship().toString());
for (NavigationProperty navigationProperty : navigationProperties) { xmlStreamWriter.writeStartElement(XmlMetadataConstants.EDM_NAVIGATION_PROPERTY); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAME, navigationProperty.getName()); xmlStreamWriter.writeAttribute(XmlMetadataConstants.EDM_NAVIGATION_RELATIONSHIP, navigationProperty .getRelationship().toString());
private NavigationProperty clone(NavigationProperty property) { if (property == null) { return null; } NavigationProperty newProperty = new NavigationProperty(); newProperty.setAnnotationAttributes(property.getAnnotationAttributes()); newProperty.setAnnotationElements(property.getAnnotationElements()); newProperty.setDocumentation(property.getDocumentation()); newProperty.setFromRole(property.getFromRole()); newProperty.setMapping(property.getMapping()); newProperty.setName(property.getName()); newProperty.setRelationship(property.getRelationship()); newProperty.setToRole(property.getToRole()); return newProperty; }