Package railo.runtime.type

Examples of railo.runtime.type.Query.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


    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

       
        Entry<String, SearchIndex> entry;
        SearchIndex index;
        int row=0;
    while(it.hasNext()) {
      query.addRow();
      row++;
          entry = it.next();
          index=entry.getValue();
          if(index==null)continue;
          try {
View Full Code Here

        // Lock
        locks = _pc.getActiveLocks();
        if(locks!=null) {
          for(int y=0;y<locks.length;y++){
            al=locks[y];
            row = lck.addRow();
            lck.setAt(KeyConstants._web, row, web.getLabel());
            lck.setAt(KeyConstants._application, row, _pc.getApplicationContext().getName());
            lck.setAt(KeyConstants._name, row, al.name);
            lck.setAt(START_TIME, row, new DateTimeImpl(web,al.startTime,true));
            lck.setAt(KeyConstants._timeout, row, Caster.toDouble(al.timeoutInMillis/1000));
View Full Code Here

       
        Entry<String, SearchIndex> entry;
        SearchIndex index;
        int row=0;
    while(it.hasNext()) {
      query.addRow();
      row++;
          entry = it.next();
          index= entry.getValue();
          if(index==null)continue;
          try {
View Full Code Here

            if(!attEQAsterix) {
                while(results.hasMoreElements()) {
                    SearchResult resultRow = (SearchResult)results.next();
                    if(row++<startrow)continue;
                   
                    int len=qry.addRow();
                    NamingEnumeration rowEnum = resultRow.getAttributes().getAll();
                    String dn = resultRow.getNameInNamespace();
                    qry.setAtEL("dn",len,dn);
                    while(rowEnum.hasMore()) {
                        Attribute attr = (Attribute)rowEnum.next();
View Full Code Here

                    if(row++<startrow)continue;
                   
                    Attributes attributesRow = resultRow.getAttributes();
                    NamingEnumeration rowEnum = attributesRow.getIDs();
                    while(rowEnum.hasMoreElements()) {
                        int len=qry.addRow();
                        String name = Caster.toString(rowEnum.next());
                        Object value=null;
                       
                        try {
                            value=attributesRow.get(name).get();
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.