/** * Gets the keys for this EdmEntityType. Keys are defined only in a root types. */ public List<String> getKeys() { return isRootType() ? keys : getBaseType().getKeys(); }
/** * Gets the keys for this EdmEntityType. Keys are defined only in a root types. */ public List<String> getKeys() { return isRootType() ? keys : getBaseType().getKeys(); }
/** * Gets the keys for this EdmEntityType. Keys are defined only in a root types. */ public List<String> getKeys() { return isRootType() ? keys : getBaseType().getKeys(); }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
/** * Gets the navigation properties defined for this entity type <i>including</i> inherited properties. */ public Enumerable<EdmNavigationProperty> getNavigationProperties() { return isRootType() ? getDeclaredNavigationProperties() : getBaseType().getNavigationProperties().union(getDeclaredNavigationProperties()); }
protected void getEntityTypes(Context c, boolean isRoot) { EdmDataServices ds = dataProducer.getMetadata(); ExpressionEvaluator f = null; if (c.queryInfo != null && c.queryInfo.filter != null) { f = new ExpressionEvaluator(c); // , c.queryInfo.filter); // TODO add resolver } for (EdmEntityType et : ds.getEntityTypes()) { if ((isRoot && et.isRootType()) || (!isRoot)) { boolean add = true; if (f != null) { c.pushResolver(et); add = f.evaluate(c.queryInfo.filter); } if (add) { c.addEntity(getStructuralType(c, et)); } if (f != null) { c.popResolver(); } } } }
protected void getProperties(Context c) { EdmDataServices ds = dataProducer.getMetadata(); ExpressionEvaluator f = null; if (c.queryInfo != null && c.queryInfo.filter != null) { f = new ExpressionEvaluator(c); } for (EdmComplexType ct : ds.getComplexTypes()) { if (ct.isRootType()) { addStructuralTypeProperties(c, ct, f); } } for (EdmEntityType ct : ds.getEntityTypes()) { if (ct.isRootType()) { addStructuralTypeProperties(c, ct, f); } } }
protected void getEntityTypes(Context c, boolean isRoot) { EdmDataServices ds = dataProducer.getMetadata(); ExpressionEvaluator f = null; if (c.queryInfo != null && c.queryInfo.filter != null) { f = new ExpressionEvaluator(c); // , c.queryInfo.filter); // TODO add resolver } for (EdmEntityType et : ds.getEntityTypes()) { if ((isRoot && et.isRootType()) || (!isRoot)) { boolean add = true; if (f != null) { c.pushResolver(et); add = f.evaluate(c.queryInfo.filter); } if (add) { c.addEntity(getStructuralType(c, et)); } if (f != null) { c.popResolver(); } } } }
protected void getProperties(Context c) { EdmDataServices ds = dataProducer.getMetadata(); ExpressionEvaluator f = null; if (c.queryInfo != null && c.queryInfo.filter != null) { f = new ExpressionEvaluator(c); } for (EdmComplexType ct : ds.getComplexTypes()) { if (ct.isRootType()) { addStructuralTypeProperties(c, ct, f); } } for (EdmEntityType ct : ds.getEntityTypes()) { if (ct.isRootType()) { addStructuralTypeProperties(c, ct, f); } } }
if (eet.isRootType()) { writeAnnotationAttributes(eet, writer); writeDocumentation(eet, writer);
if (eet.isRootType()) { writeAnnotationAttributes(eet, writer); writeDocumentation(eet, writer);