private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }
private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }
private EdmEntityType(String namespace, String alias, String name, Boolean hasStream, Boolean openType, ImmutableList<String> keys, EdmEntityType baseType, List<EdmProperty.Builder> properties, ImmutableList<EdmNavigationProperty> navigationProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, ImmutableList<EdmAnnotation<?>> annotElements, Boolean isAbstract) { super(baseType, namespace, name, properties, doc, annotations, annotElements, isAbstract); this.alias = alias; this.hasStream = hasStream; this.openType = openType; this.keys = (keys == null || keys.isEmpty()) ? (baseType == null ? findConventionalKeys() : null) : keys; if (baseType == null && this.keys == null) throw new IllegalArgumentException("Root types must have keys"); if (baseType != null && this.keys != null) throw new IllegalArgumentException("Keys on root types only"); this.navigationProperties = navigationProperties; }
private EdmEntitySet getEntitySet() { EdmEntitySet entitySet = null; if (!metadata.getSchemas().isEmpty()) { entitySet = metadata.findEdmEntitySet(entitySetName); if (entitySet == null) { // panic! could not determine the entity-set, is it a function? EdmFunctionImport efi = metadata.findEdmFunctionImport(entitySetName); if (efi != null) entitySet = efi.getEntitySet(); } } if (entitySet == null) throw new RuntimeException("Could not derive the entity-set " + entitySetName); return entitySet; }
private EdmEntitySet getEntitySet() { EdmEntitySet entitySet = null; if (!metadata.getSchemas().isEmpty()) { entitySet = metadata.findEdmEntitySet(entitySetName); if (entitySet == null) { // panic! could not determine the entity-set, is it a function? EdmFunctionImport efi = metadata.findEdmFunctionImport(entitySetName); if (efi != null) entitySet = efi.getEntitySet(); } } if (entitySet == null) throw new RuntimeException("Could not derive the entity-set " + entitySetName); return entitySet; }