Package railo.runtime.type

Examples of railo.runtime.type.QueryImpl.addRow()


      _type = bean.getType();
      if(type==MEMORY_TYPE_HEAP && _type!=MemoryType.HEAP)continue;
      if(type==MEMORY_TYPE_NON_HEAP && _type!=MemoryType.NON_HEAP)continue;
       
      row++;
      qry.addRow();
      qry.setAtEL(KeyConstants._name, row, bean.getName());
      qry.setAtEL(KeyConstants._type, row, _type.name());
      qry.setAtEL(KeyConstants._max, row, Caster.toDouble(usage.getMax()));
      qry.setAtEL(KeyConstants._used, row, Caster.toDouble(usage.getUsed()));
      qry.setAtEL(KeyConstants._init, row, Caster.toDouble(usage.getInit()));
View Full Code Here


        pageContext.setVariable(name,query);
        int row=0;
        for(int i=0;i<files.length;i++) {
            FTPFile file = files[i];
            if(file.getName().equals(".") || file.getName().equals("..")) continue;
            query.addRow();
            row++;
            query.setAt("attributes",row,"");
            query.setAt("isdirectory",row,Caster.toBoolean(file.isDirectory()));
            query.setAt("lastmodified",row,new DateTimeImpl(file.getTimestamp()));
            query.setAt("length",row,Caster.toDouble(file.getSize()));
View Full Code Here

    String value;
    // catalog
    for(int i=1;i<=len;i++) {
      value=(String) catalogs.getAt(TABLE_CAT, i);
      if(!matchPattern(value,p)) continue;
      qry.addRow();
      qry.setAt(DATABASE_NAME, row, value);
      qry.setAt(KeyConstants._type, row, "CATALOG");
      row++;
    }
    // scheme
View Full Code Here

    // scheme
    len=scheme.getRecordcount();
    for(int i=1;i<=len;i++) {
      value=(String) scheme.getAt(TABLE_SCHEM, i);
      if(!matchPattern(value,p)) continue;
      qry.addRow();
      qry.setAt(DATABASE_NAME, row, value);
      qry.setAt(KeyConstants._type, row, "SCHEMA");
      row++;
    }
   
View Full Code Here

    Collection.Key[] columns;
    //print.out(from+"::"+to);
    Query nq=new QueryImpl(columns=qry.getColumnNames(),0,qry.getName());
   
    int row=1;
    for(int i=from;i<=to;i++) {nq.addRow();
      for(int y=0;y<columns.length;y++) {
        nq.setAt(columns[y], row, qry.getAt(columns[y], i));
      }
      row++;
    }
View Full Code Here

        sql.setPosition(0);
      if(hasMaxrow && maxrows<=rtn.getRecordcount())break;
        boolean useRow=where==null || Caster.toBooleanValue(executeExp(pc,sql,qr, where, row));
      if(useRow) {
         
        rtn.addRow(1);
        for(int cell=0;cell<headers.length;cell++){
          Object value = selects.get(headers[cell]);

            rtn.setAt(
              headers[cell],
View Full Code Here

        int row=0;
        while(it.hasNext()) {
            CFXTagClass tag=(CFXTagClass) map.get(it.next());
            if(tag instanceof JavaCFXTagClass) {
                row++;
                qry.addRow(1);
                JavaCFXTagClass jtag =(JavaCFXTagClass) tag;
                qry.setAt(KeyConstants._displayname,row,tag.getDisplayType());
                qry.setAt(KeyConstants._sourcename,row,tag.getSourceName());
                qry.setAt(KeyConstants._readonly,row,Caster.toBoolean(tag.isReadOnly()));
                qry.setAt(KeyConstants._isvalid,row,Caster.toBoolean(tag.isValid()));
View Full Code Here

        while(it.hasNext()){
      row++;
        entry=(Entry) it.next();
      ge=(GatewayEntry) entry.getValue();
      //g=ge.getGateway();
          qry.addRow();
          qry.setAtEL("class", row, ge.getClassName());
          qry.setAtEL("id", row, ge.getId());
          qry.setAtEL("listenerCfcPath", row, ge.getListenerCfcPath());
          qry.setAtEL("cfcPath", row, ge.getCfcPath());
          qry.setAtEL("startupMode", row, GatewayEntryImpl.toStartup(ge.getStartupMode(),"automatic"));
View Full Code Here

        String def;
    while(it.hasNext()){
      row++;
        entry=(Entry) it.next();
      cc=(CacheConnection) entry.getValue();
          qry.addRow();
          def="";
          if(cc==defObj)def="object";
          if(cc==defTmp)def="template";
          if(cc==defQry)def="query";
          if(cc==defRes)def="resource";
View Full Code Here

        int row=0;
        while(it.hasNext()) {
            CFXTagClass tag=(CFXTagClass) map.get(it.next());
            if(tag instanceof CPPCFXTagClass) {
                row++;
                qry.addRow(1);
                CPPCFXTagClass ctag =(CPPCFXTagClass) tag;
                qry.setAt(KeyConstants._displayname,row,tag.getDisplayType());
                qry.setAt(KeyConstants._sourcename,row,tag.getSourceName());
                qry.setAt(KeyConstants._readonly,row,Caster.toBoolean(tag.isReadOnly()));
                qry.setAt(KeyConstants._isvalid,row,Caster.toBoolean(tag.isValid()));
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.