Examples of keys()


Examples of org.nutz.dao.SqlManager.keys()

              "abc.fetch",
              "abc.query",
              ".student.drop",
              ".student.create"};
    for (int i = 0; i < keys.length; i++) {
      assertEquals(keys[i], sqls.keys()[i]);
    }
  }

  @Test
  public void check_Create_SQL() {
View Full Code Here

Examples of org.nutz.dao.impl.FileSqlManager.keys()

              ".student.drop",
              ".student.create",
              ".student2.drop",
              ".student2.create"};
    for (int i = 0; i < keys.length; i++) {
      assertEquals(keys[i], sqls.keys()[i]);
    }
  }

  @Test
  public void check_parse_comboSqls() {
View Full Code Here

Examples of org.nutz.dao.sql.VarSet.keys()

    public Object[][] getParamMatrix() {
        // 仅仅去掉队尾没有参数设定的VarSet,尽可能的不遍历
        if (rows.size() > 0) {
            VarSet vs = rows.get(rows.size() - 1);
            while (null != vs) {
                if (vs.keys().size() == 0) {
                    rows.remove(vs);
                    vs = null;
                    if (rows.size() > 0)
                        vs = rows.get(rows.size() - 1);
                } else {
View Full Code Here

Examples of org.nutz.lang.segment.CharSegment.keys()

public abstract class EntityName {

  public static EntityName create(String s) {
    CharSegment seg = new CharSegment(s);
    if (seg.keys().size() > 0)
      return new DynamicEntityName(seg);
    return new StaticEntityName(s);
  }

  public static class DynamicEntityName extends EntityName {
View Full Code Here

Examples of org.nutz.lang.segment.Segment.keys()

  public void testNormal() {
    Segment seg = Segments.create("H${4}B");
    seg.set("4", "zzh");
    assertEquals("H${4}B", seg.getOrginalString());
    assertEquals("HzzhB", seg.toString());
    assertEquals(1, seg.keys().size());
    assertEquals(3, seg.values().size());
  }

  @Test
  public void testWrongPPname() {
View Full Code Here

Examples of org.nutz.lang.util.Context.keys()

   */
  public static void putRequestAttribute(HttpServletRequest req, Object re){
    if (null != re){
      if(re instanceof Context){
        Context context = (Context) re;
        for(String key : context.keys()){
          req.setAttribute(key, context.get(key));
        }
      } else {
        req.setAttribute(ViewProcessor.DEFAULT_ATTRIBUTE, re);
      }
View Full Code Here

Examples of org.nutz.mvc.adaptor.ParamExtractor.keys()

    ObjcetNaviNode no = new ObjcetNaviNode();
    String pre = "";
    if ("".equals(prefix))
      pre = "node.";
    ParamExtractor pe = Params.makeParamExtractor(req, refer);
    for (Object name : pe.keys()) {
      String na = (String) name;
      if (na.startsWith(prefix)) {
        no.put(pre + na, pe.extractor(na));
      }
    }
View Full Code Here

Examples of org.nutz.mvc.config.AtMap.keys()

   
    //
    Map<String, String> u = new HashMap<String, String>();
    AtMap at = Mvcs.getAtMap(req.getSession().getServletContext());
    if (at != null) {
      for(Object o : at.keys()){
        String key = (String) o;
        u.put(key, at.get(key));
      }
      context.set("u", u);
    }
View Full Code Here

Examples of org.openfaces.org.json.JSONObject.keys()

        } else {
            propertyLocator = locatorFactory.create(expression);
        }
        Map<String, Object> parameters = new HashMap<String, Object>();
        JSONObject jsonParameters = jsonObject.getJSONObject(PARAMETERS);
        for (Iterator keyIterator = jsonParameters.keys(); keyIterator.hasNext();) {
            String key = (String) keyIterator.next();
            Object parameterValue = parseParameter(jsonParameters.getJSONObject(key));
            parameters.put(key, parameterValue);
        }
View Full Code Here

Examples of org.openjena.atlas.json.JsonObject.keys()

            BindingMap b = BindingFactory.create() ;
            JsonValue v = iter.next() ;
            if ( ! v.isObject() )
                throw new ResultSetException("Entry in 'bindings' array must be an object {}";
            JsonObject x = v.getAsObject() ;
            Set<String> varNames = x.keys() ;
            for ( String vn : varNames )
            {
                if ( ! vars.contains(vn) )
                    ; // Warning
                JsonValue vt = x.get(vn) ;
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.