Package siena.core

Examples of siena.core.QueryFilterEmbedded


       
        fields.add(f);
        cl = f.getType();
      }
           
      filters.add(new QueryFilterEmbedded(fields, op, ".", value));
    }else if(fieldName.contains(":")) {
      String[] parts = fieldName.split("\\.");
      if(parts.length == 0) {
        throw new SienaException("Filter field cannot have 0 fields to filter");
      }
     
      List<Field> fields = new ArrayList<Field>();
      Class<?> cl = clazz;
      for(int i=0; i<parts.length; i++) {
        String fName = parts[i];
        Field f = Util.getField(cl, fName);
        if(f==null) {
          throw new SienaException("Filter field '"+fName+"' not found");
        }
       
        fields.add(f);
        cl = f.getType();
      }
           
      filters.add(new QueryFilterEmbedded(fields, op, ".", value));
    }else {
      Field field = Util.getField(clazz, fieldName);
      if(field==null) {
        throw new SienaException("Filter field '"+fieldName+"' not found");
      }
View Full Code Here


        }catch(Exception e){
          throw new SienaException(e);
        }
        break;
      }else if(QueryFilterEmbedded.class.isAssignableFrom(filter.getClass())){
        QueryFilterEmbedded qf = (QueryFilterEmbedded)filter;
       
        String propName = "";
        int sz = qf.fields.size();
        for(int i=0; i<sz; i++){
          propName += ClassInfo.getSingleColumnName(qf.fields.get(i));
View Full Code Here

TOP

Related Classes of siena.core.QueryFilterEmbedded

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.