public EdmSchema findSchema(String namespace) { for (EdmSchema schema : this.schemas) { if (schema.getNamespace().equals(namespace)) { return schema; } } return null; }
public EdmSchema findSchema(String namespace) { for (EdmSchema schema : this.schemas) { if (schema.getNamespace().equals(namespace)) { return schema; } } return null; }
public EdmSchema findSchema(String namespace) { for (EdmSchema schema : this.schemas) { if (schema.getNamespace().equals(namespace)) { return schema; } } return null; }
protected void findSchema(Context c) { EdmDataServices ds = dataProducer.getMetadata(); String nm = (String) c.entityKey.asSingleValue(); for (EdmSchema s : ds.getSchemas()) { if (nm.equals(s.getNamespace())) { c.entities.add(this.getSchema(c, s)); } } }
protected void findSchema(Context c) { EdmDataServices ds = dataProducer.getMetadata(); String nm = (String) c.entityKey.asSingleValue(); for (EdmSchema s : ds.getSchemas()) { if (nm.equals(s.getNamespace())) { c.entities.add(this.getSchema(c, s)); } } }
protected OEntity getSchema(Context c, EdmSchema schema) { List<OProperty<?>> props = new ArrayList<OProperty<?>>(); if (c.pathHelper.isSelected(Edm.Schema.Namespace)) { props.add(OProperties.string(Edm.Schema.Namespace, schema.getNamespace())); OEntityKey.create(Edm.Schema.Namespace, schema.getNamespace()), // OEntityKey entityKey, props, links);
protected OEntity getSchema(Context c, EdmSchema schema) { List<OProperty<?>> props = new ArrayList<OProperty<?>>(); if (c.pathHelper.isSelected(Edm.Schema.Namespace)) { props.add(OProperties.string(Edm.Schema.Namespace, schema.getNamespace())); OEntityKey.create(Edm.Schema.Namespace, schema.getNamespace()), // OEntityKey entityKey, props, links);
public void getMetadata(MetadataFactory mf, EdmDataServices eds) throws TranslatorException { for (EdmSchema schema:eds.getSchemas()) { if (this.schemaNamespace != null && !this.schemaNamespace.equalsIgnoreCase(schema.getNamespace())) { continue; } for (EdmEntityContainer container:schema.getEntityContainers()) { if ((this.entityContainer != null && this.entityContainer.equalsIgnoreCase(container.getName())) || container.isDefault()) { // add entity sets as tables for (EdmEntitySet entitySet:container.getEntitySets()) { addEntitySetAsTable(mf, entitySet); } // build relations ships among tables for (EdmEntitySet entitySet:container.getEntitySets()) { addNavigationRelations(mf, entitySet.getName(), entitySet.getType()); } // add procedures for (EdmFunctionImport function:container.getFunctionImports()) { addFunctionImportAsProcedure(mf, function); } } } } }
protected static void reportMetadata(EdmDataServices services) { report("Schema Namespace=%s, Alias=%s", schema.getNamespace(), schema.getAlias());
writer.writeAttribute("Namespace", schema.getNamespace()); writer.writeNamespace("xmlns", NS_EDM2008_9); writeAnnotationAttributes(schema, writer);
writer.writeAttribute("Namespace", schema.getNamespace()); writer.writeNamespace("xmlns", NS_EDM2008_9); writeAnnotationAttributes(schema, writer);