Package org.jrest4guice.persistence

Examples of org.jrest4guice.persistence.ParameterObject


        continue;

      if(!elem.targetName().trim().equals(""))
        targetName = elem.targetName().trim();

      result.put(key, new ParameterObject(targetName,value,elem.logic(),elem.relation(),elem.dataType()));
    }
   
    return result;
  }
View Full Code Here


      final Collection keys = parameters.keySet();
      // 组装查询条件
      int index = 0;
      Object value;
      String logic,relation,param;
      ParameterObject pObject;
      for (Object key : keys) {
        value = parameters.get(key);
        logic = "and";
        relation = "=";
        param = new String(key.toString()).replaceAll("\\.","_");
        if(value instanceof ParameterObject){
          pObject = ((ParameterObject)value);
          logic = pObject.getLogicSymbol();
          relation = pObject.getRelationSymbol();
          key = pObject.getName();
        }
        if (index == 0 && !hasWhere) {
          sqls.append(" where e." + key + ""+relation+":" + param);
        } else {
          sqls.append(" "+logic+" e." + key + ""+relation+":" +  param);
View Full Code Here

      final Collection keys = parameters.keySet();
      // 组装查询条件
      int index = 0;
      Object value;
      String logic,relation,param;
      ParameterObject pObject;
      for (Object key : keys) {
        value = parameters.get(key);
        logic = "and";
        relation = "=";
        param = new String(key.toString()).replaceAll("\\.","_");
        if(value instanceof ParameterObject){
          pObject = ((ParameterObject)value);
          logic = pObject.getLogicSymbol();
          relation = pObject.getRelationSymbol();
          key = pObject.getName();
        }
        if (index == 0 && !hasWhere) {
          sqls.append(" where e." + key + ""+relation+":" + param);
        } else {
          sqls.append(" "+logic+" e." + key + ""+relation+":" +  param);
View Full Code Here

TOP

Related Classes of org.jrest4guice.persistence.ParameterObject

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.