Package org.geomajas.layer.entity

Examples of org.geomajas.layer.entity.EntityCollection


          }
          return manyToOne;
        case ONE_TO_MANY:
          OneToManyAttribute oneToMany = new OneToManyAttribute();
          if (entity != null) {
            EntityCollection children = entity.getChildCollection(associationAttributeInfo.getName());
            List<AssociationValue> values = new ArrayList<AssociationValue>();
            for (Entity manyEntity : children) {
              values.add(getAssociationValue(manyEntity, associationAttributeInfo));
            }
            oneToMany.setValue(values);
View Full Code Here


      children.add(child);
    }

    public void addOneToMany(String name, AssociationAttributeInfo attributeInfo, OneToManyAttribute association)
        throws LayerException {
      EntityCollection collection = entity.getChildCollection(name);
      if (association.getValue() == null) {
        addChild(new DeleteOneToManyOperation(getMapper(), getEntity(), attributeInfo));
      } else {
        // sort on create, update, delete
        Map<Object, Entity> existingMap = new HashMap<Object, Entity>();
View Full Code Here

TOP

Related Classes of org.geomajas.layer.entity.EntityCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.