@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || !(obj instanceof FullQualifiedName)) { return false; } final FullQualifiedName other = (FullQualifiedName) obj; return namespace.equals(other.getNamespace()) && name.equals(other.getName()); }
@Override public String toString() { return typeName.getNamespace() + Edm.DELIMITER + typeName.getName(); } }
@Override protected EdmComplexType createComplexType(final FullQualifiedName fqName) throws ODataException { ComplexType complexType = edmProvider.getComplexType(fqName); if (complexType == null) { return null; } return new EdmComplexTypeImplProv(this, complexType, fqName.getNamespace()); }
@Override protected EdmEntityType createEntityType(final FullQualifiedName fqName) throws ODataException { EntityType entityType = edmProvider.getEntityType(fqName); if (entityType == null) { return null; } return new EdmEntityTypeImplProv(this, entityType, fqName.getNamespace()); }
@Override protected EdmEntityType createEntityType(final FullQualifiedName fqName) throws ODataException { EntityType entityType = edmProvider.getEntityType(fqName); if (entityType == null) { return null; } return new EdmEntityTypeImplProv(this, entityType, fqName.getNamespace()); }
@Override protected EdmComplexType createComplexType(final FullQualifiedName fqName) throws ODataException { ComplexType complexType = edmProvider.getComplexType(fqName); if (complexType == null) { return null; } return new EdmComplexTypeImplProv(this, complexType, fqName.getNamespace()); }
@Override protected EdmAssociation createAssociation(final FullQualifiedName fqName) throws ODataException { Association association = edmProvider.getAssociation(fqName); if (association == null) { return null; } return new EdmAssociationImplProv(this, association, fqName.getNamespace()); }
@Override protected EdmAssociation createAssociation(final FullQualifiedName fqName) throws ODataException { Association association = edmProvider.getAssociation(fqName); if (association == null) { return null; } return new EdmAssociationImplProv(this, association, fqName.getNamespace()); }
private FullQualifiedName validateEntityTypeWithAlias(final FullQualifiedName aliasName) throws EntityProviderException { String namespace = aliasNamespaceMap.get(aliasName.getNamespace()); FullQualifiedName fqName = new FullQualifiedName(namespace, aliasName.getName()); if (!entityTypesMap.containsKey(fqName)) { throw new EntityProviderException(EntityProviderException.ILLEGAL_ARGUMENT.addContent("Invalid Type")); } return fqName; }
private FullQualifiedName validateEntityTypeWithAlias(final FullQualifiedName aliasName) throws EntityProviderException { String namespace = aliasNamespaceMap.get(aliasName.getNamespace()); FullQualifiedName fqName = new FullQualifiedName(namespace, aliasName.getName()); if (!entityTypesMap.containsKey(fqName)) { throw new EntityProviderException(EntityProviderException.ILLEGAL_ARGUMENT.addContent("Invalid Type")); } return fqName; }
@Override public EdmAssociation getRelationship() throws EdmException { final FullQualifiedName relationship = navigationProperty.getRelationship(); return edm.getAssociation(relationship.getNamespace(), relationship.getName()); }
private FullQualifiedName validateComplexTypeWithAlias(final FullQualifiedName aliasName) throws EntityProviderException { String namespace = aliasNamespaceMap.get(aliasName.getNamespace()); FullQualifiedName fqName = new FullQualifiedName(namespace, aliasName.getName()); if (!complexTypesMap.containsKey(fqName)) { throw new EntityProviderException(EntityProviderException.ILLEGAL_ARGUMENT.addContent("Invalid BaseType") .addContent(fqName)); } return fqName; }
@Override public EdmAssociation getRelationship() throws EdmException { final FullQualifiedName relationship = navigationProperty.getRelationship(); return edm.getAssociation(relationship.getNamespace(), relationship.getName()); }
@Override public EdmEntityType getEntityType() throws EdmException { final FullQualifiedName type = associationEnd.getType(); EdmEntityType entityType = edm.getEntityType(type.getNamespace(), type.getName()); if (entityType == null) { throw new EdmException(EdmException.COMMON); } return entityType; }
@Override public EdmEntityType getEntityType() throws EdmException { final FullQualifiedName type = associationEnd.getType(); EdmEntityType entityType = edm.getEntityType(type.getNamespace(), type.getName()); if (entityType == null) { throw new EdmException(EdmException.COMMON); } return entityType; }
@Override public EdmEntityType getEntityType() throws EdmException { if (edmEntityType == null) { FullQualifiedName fqName = entitySet.getEntityType(); edmEntityType = edm.getEntityType(fqName.getNamespace(), fqName.getName()); if (edmEntityType == null) { throw new EdmException(EdmException.COMMON); } } return edmEntityType; }
@Override public EdmAssociation getAssociation() throws EdmException { EdmAssociation association = edm.getAssociation(associationSet.getAssociation().getNamespace(), associationSet.getAssociation().getName()); if (association == null) { throw new EdmException(EdmException.COMMON); } return association; }
@Override public EdmType getType() throws EdmException { if (edmType == null) { edmType = edm.getComplexType(property.getType().getNamespace(), property.getType().getName()); } if (edmType == null) { throw new EdmException(EdmException.PROVIDERPROBLEM); } return edmType; }
@Override public EdmAssociation getAssociation() throws EdmException { EdmAssociation association = edm.getAssociation(associationSet.getAssociation().getNamespace(), associationSet.getAssociation().getName()); if (association == null) { throw new EdmException(EdmException.COMMON); } return association; }
@Override public EdmType getType() throws EdmException { if (edmType == null) { edmType = edm.getComplexType(property.getType().getNamespace(), property.getType().getName()); } if (edmType == null) { throw new EdmException(EdmException.PROVIDERPROBLEM); } return edmType; }