schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
schema.setAnnotationElements(annotationElements); schema.setUsings(usings).setEntityTypes(entityTypes).setComplexTypes(complexTypes).setAssociations(associations) .setEntityContainers(entityContainers); return schema;
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
public Schema build() { Schema s = new Schema(); s.setUsings(usings); s.setEntityTypes(entityTypes); s.setComplexTypes(complexTypes); s.setAssociations(new ArrayList<Association>(name2Associations.values())); s.setEntityContainers(entityContainers); s.setAnnotationAttributes(annotationAttributes); s.setAnnotationElements(annotationElements); s.setNamespace(namespace); return s; } }
private void includeAssociation(Schema targetSchema, IServiceInfo service, Association sourceAssociation) throws ODataException { List<Association> associations = targetSchema.getAssociations(); if (associations != null) { for (Association type : associations) { if (type.getName().equals(sourceAssociation.getName())) { throw new ODataException("association " + sourceAssociation.getName() + " already defined"); } } } else { associations = new ArrayList<Association>(); } Association newAssociation = clone(sourceAssociation); newAssociation.getEnd1().setType( new FullQualifiedName(targetSchema.getNamespace(), newAssociation.getEnd1().getType().getName())); newAssociation.getEnd2().setType( new FullQualifiedName(targetSchema.getNamespace(), newAssociation.getEnd2().getType().getName())); associations.add(newAssociation); targetSchema.setAssociations(associations); }
schema.setAssociations(consistentAssociationList); for (Association association : consistentAssociationList) { existingAssociationList.add(association.getName());
schema.setAssociations(consistentAssociationList); for (Association association : consistentAssociationList) { existingAssociationList.add(association.getName());
schema.setAssociations(associations);