Examples of FieldInformer


Examples of com.dooapp.gaedo.finders.FieldInformer

      this.field = field;
    }

    @Override
    public FieldInformer get(String string, Collection<Property> propertyPath) {
      FieldInformer returned = ReflectionBackedInformer.this.get(string);
      if(returned instanceof FieldInformerAPI) {
        // Improve path with this informer one
        Collection<Property> newPath = new LinkedList<Property>(propertyPath);
        newPath.add(field);
        returned = ((FieldInformerAPI) returned).with(newPath);
View Full Code Here

Examples of com.dooapp.gaedo.finders.FieldInformer

      public QueryExpression createMatchingExpression(
          InformerType informer) {
       
        QueryExpression returned = null;
        for(int index=0; index<id.length; index++) {
          FieldInformer fieldInformer = backEnd.getInformer().get(idProperties.get(index).getName());
          QueryExpression propertyEquality = fieldInformer.equalsTo(id[index]);
          if(returned==null) {
            returned = propertyEquality;
          } else {
            returned = Expressions.and(returned, propertyEquality);
          }
View Full Code Here

Examples of com.dooapp.gaedo.finders.FieldInformer

    } else {
      for(Map.Entry<String, Object> entry : value.entrySet()) {
        if(fieldInformer instanceof Informer) {
          Informer beanInformer = (Informer) fieldInformer;
          try {
            FieldInformer usedInformer = beanInformer.get(entry.getKey());
            buildQueryExpression(parent, usedInformer, (Map<String, Object>) entry.getValue());
          } catch(Exception e) {
            logger.log(Level.FINE, "unable to build query statement from field \""+entry.getKey()+"\"", e);
          }
        } else {
View Full Code Here

Examples of com.dooapp.gaedo.finders.FieldInformer

      public QueryExpression createMatchingExpression(
          InformerType informer) {
       
        QueryExpression returned = null;
        for(int index=0; index<id.length; index++) {
          FieldInformer fieldInformer = getInformer().get(idProperties.get(index).getName());
          QueryExpression propertyEquality = fieldInformer.equalsTo(id[index]);
          if(returned==null) {
            returned = propertyEquality;
          } else {
            returned = Expressions.and(returned, propertyEquality);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.