Examples of SVArray


Examples of railo.runtime.type.SVArray

  private Map<String,Map<String, SVArray>> toMap(ResultSet result,boolean closeResult, String columnName,String[] additional) throws SQLException {
    Map<String,Map<String, SVArray>> map=new HashMap<String,Map<String, SVArray>>();
    Map<String, SVArray> inner;
    String col;
    SVArray item;
    if(result==null) return map;
    try {
      while(result.next()){
        col=result.getString(columnName);
        inner=map.get(col);
        if(inner!=null) {
          for(int i=0;i<additional.length;i++) {
            item=inner.get(additional[i]);
            item.add(result.getString(additional[i]));
            item.setPosition(item.size());
          }
        }
        else {
          inner=new HashMap<String, SVArray>();
          map.put(col, inner);
          for(int i=0;i<additional.length;i++) {
            item=new SVArray();
            item.add(result.getString(additional[i]));
            inner.put(additional[i], item);
          }
        }
      }
    }
View Full Code Here

Examples of railo.runtime.type.SVArray

  }

  @Override
    public Array getTemplatePath() throws PageException {
        int len=includePathList.size();
        SVArray sva = new SVArray();
        PageSource ps;
        for(int i=0;i<len;i++) {
          ps=includePathList.get(i);
          if(i==0) {
            if(!ps.equals(getBasePageSource()))
              sva.append(ResourceUtil.getResource(this,getBasePageSource()).getAbsolutePath());
          }
          sva.append(ResourceUtil.getResource(this, ps).getAbsolutePath());
        }
        //sva.setPosition(sva.size());
        return sva;
    }
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.