Package railo.runtime.type

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


          extProvider=extension.getProvider();
          extId=extension.getId();
          if(provider!=null && !provider.equalsIgnoreCase(extProvider)) continue;
          if(id!=null && !id.equalsIgnoreCase(extId)) continue;

            qry.addRow();
          row++;
            qry.setAt("provider",row,extProvider);
            qry.setAt(KeyConstants._id,row,extId);
            qry.setAt(KeyConstants._config,row,extension.getConfig(pageContext));
            qry.setAt(KeyConstants._version,row,extension.getVersion());
View Full Code Here


          0,"tlds");
      

        TagLib[] libs = config.getTLDs();
        for(int i=0;i<libs.length;i++) {
          qry.addRow();
          qry.setAt("displayname", i+1, libs[i].getDisplayName());
          qry.setAt("namespace", i+1, libs[i].getNameSpace());
          qry.setAt("namespaceseparator", i+1, libs[i].getNameSpaceSeparator());
          qry.setAt("shortname", i+1, libs[i].getShortName());
          qry.setAt("type", i+1, libs[i].getType());
View Full Code Here

          0,"tlds");
      

        FunctionLib[] libs = config.getFLDs();
        for(int i=0;i<libs.length;i++) {
          qry.addRow();
          qry.setAt("displayname", i+1, libs[i].getDisplayName());
          qry.setAt("namespace", i+1, "");// TODO support for namespace
          qry.setAt("namespaceseparator", i+1, "");
          qry.setAt("shortname", i+1, libs[i].getShortName());
          qry.setAt("description", i+1, libs[i].getDescription());
View Full Code Here

        Entry<Key, Object> e;
        int i=-1;
        while(it.hasNext()) {
          i++;
          e = it.next();
          qry.addRow();
          qry.setAt(KeyConstants._code, i+1, e.getKey().getString());
          qry.setAt(KeyConstants._displayname, i+1, e.getValue());
          //qry.setAt("description", i+1, usages[i].getDescription());
        }
        pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
View Full Code Here

    railo.runtime.type.Query qry=new QueryImpl(new String[]{"name","source"},new String[]{"varchar","varchar"},0,"jars");
      
    if(lib.isDirectory()){
      Resource[] children = lib.listResources(new ExtensionResourceFilter(new String[]{".jar",".zip"},false,true));
      for(int i=0;i<children.length;i++){
        qry.addRow();
        qry.setAt("name", i+1, children[i].getName());
        qry.setAt("source", i+1, children[i].getAbsolutePath());
      }
    }
        pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
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

            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

             
              if(!entryPathMatch(dir)) continue;
              //if(entryPath!=null && !(dir.equalsIgnoreCase(entryPath) || StringUtil.startsWithIgnoreCase(dir,entryPath+"/"))) ;///continue;
             
              row++;
              query.addRow();
              query.setAt("name", row, path);
              query.setAt("size", row, Caster.toDouble(ze.getSize()));
              query.setAt("type", row, ze.isDirectory()?"Directory":"File");
              query.setAt("dateLastModified", row, new DateTimeImpl(pageContext,ze.getTime(),false));
              query.setAt("crc", row, Caster.toDouble(ze.getCrc()));
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.