private EntityType getEntityType(Schema schema, String entityTypeName) throws ODataException { List<EntityType> types = schema.getEntityTypes(); if (types == null) { return null; } for (EntityType type : types) { if (type.getName().equals(entityTypeName)) { return type; } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { Schema schema = namespace2Schema.get(edmFQName.getNamespace()); if (schema != null) { List<EntityType> complexTypes = schema.getEntityTypes(); for (EntityType complexType : complexTypes) { if (complexType.getName().equals(edmFQName.getName())) { return complexType; } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { Schema schema = namespace2Schema.get(edmFQName.getNamespace()); if (schema != null) { List<EntityType> complexTypes = schema.getEntityTypes(); for (EntityType complexType : complexTypes) { if (complexType.getName().equals(edmFQName.getName())) { return complexType; } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { Schema schema = namespace2Schema.get(edmFQName.getNamespace()); if (schema != null) { List<EntityType> complexTypes = schema.getEntityTypes(); for (EntityType complexType : complexTypes) { if (complexType.getName().equals(edmFQName.getName())) { return complexType; } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { for (Schema schema : dataServices.getSchemas()) { if (schema.getNamespace().equals(edmFQName.getNamespace())) { for (EntityType entityType : schema.getEntityTypes()) { if (entityType.getName().equals(edmFQName.getName())) { return entityType; } } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { String strEdmFQName = null; if (edmFQName != null) { strEdmFQName = edmFQName.toString(); if (entityTypes.containsKey(strEdmFQName)) { return entityTypes.get(strEdmFQName); } else if (schemas == null) { getSchemas(); } String entityTypeNamespace = edmFQName.getNamespace(); String entityTypeName = edmFQName.getName(); for (Schema schema : schemas) { String schemaNamespace = schema.getNamespace(); if (schemaNamespace.equals(entityTypeNamespace)) { if (schema.getEntityTypes() == null) { return null; } for (EntityType et : schema.getEntityTypes()) { if (et.getName().equals(entityTypeName)) { entityTypes.put(strEdmFQName, et); return et; } } } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { String strEdmFQName = null; if (edmFQName != null) { strEdmFQName = edmFQName.toString(); if (entityTypes.containsKey(strEdmFQName)) { return entityTypes.get(strEdmFQName); } else if (schemas == null) { getSchemas(); } String entityTypeNamespace = edmFQName.getNamespace(); String entityTypeName = edmFQName.getName(); for (Schema schema : schemas) { String schemaNamespace = schema.getNamespace(); if (schemaNamespace.equals(entityTypeNamespace)) { if (schema.getEntityTypes() == null) { return null; } for (EntityType et : schema.getEntityTypes()) { if (et.getName().equals(entityTypeName)) { entityTypes.put(strEdmFQName, et); return et; } } } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { for (Schema schema : dataServices.getSchemas()) { if (schema.getNamespace().equals(edmFQName.getNamespace())) { for (EntityType entityType : schema.getEntityTypes()) { if (entityType.getName().equals(edmFQName.getName())) { return entityType; } } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { for (Schema schema : dataServices.getSchemas()) { if (schema.getNamespace().equals(edmFQName.getNamespace())) { for (EntityType entityType : schema.getEntityTypes()) { if (entityType.getName().equals(edmFQName.getName())) { return entityType; } } } } return null; }
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataException { List<Schema> schemas = getSchemas(); if (schemas == null) { return null; } for (Schema schema : schemas) { if (schema.getNamespace().equals(edmFQName.getNamespace())) { List<EntityType> types = schema.getEntityTypes(); if (types == null) { return null; } for (EntityType type : types) { if (type.getName().equals(edmFQName.getName())) { return type; } } } } return null; }
throws ODataException { List<EntityType> types = schema.getEntityTypes(); if (types != null) { for (EntityType type : types) {
List<Schema> schemaList = ( ((EdmProviderAccessor) context.getService().getEntityDataModel()).getEdmProvider()).getSchemas(); Schema schema = schemaList.get(0); List<EntityType> eTypes = schema.getEntityTypes(); List<ComplexType> eCompTypes = schema.getComplexTypes(); String entityName = uriInfo.getTargetEntitySet().getEntityType().getName();
List<EntityType> entityTypes = schema.getEntityTypes(); if (entityTypes != null) { for (EntityType type : entityTypes) {
private void includeEntityType(Schema targetSchema, IServiceInfo service, EntityType sourceType) throws ODataException { List<EntityType> types = targetSchema.getEntityTypes(); if (types != null) { for (EntityType type : types) {
List<EntityType> entityTypes = schema.getEntityTypes(); if (entityTypes != null) { for (EntityType entityType : entityTypes) {
List<EntityType> entityTypes = schema.getEntityTypes(); if (entityTypes != null) { for (EntityType entityType : entityTypes) {
List<EntityType> entityTypes = schema.getEntityTypes(); if (entityTypes != null) { for (EntityType entityType : entityTypes) {
List<EntityType> entityTypes = schema.getEntityTypes(); if (entityTypes != null) { for (EntityType entityType : entityTypes) {
List<EntityType> entityTypes = listOrEmptyList(schema.getEntityTypes()); for (EntityType entityType : entityTypes) { List<Property> properties = listOrEmptyList(entityType.getProperties());
List<EntityType> entityTypes = listOrEmptyList(schema.getEntityTypes()); for (EntityType entityType : entityTypes) { List<Property> properties = listOrEmptyList(entityType.getProperties());