Package railo.runtime.type

Examples of railo.runtime.type.QueryColumn


    }
   
  private static Struct getUsage(QueryEntry qe) throws PageException {
    Query qry = ((QueryEntryImpl)qe).getQry();
       
        QueryColumn c;
        DebugQueryColumn dqc;
        outer:if(qry!=null) {
          Struct usage=null;
          Collection.Key[] columnNames = qry.getColumnNames();
          Collection.Key columnName;
View Full Code Here


                  custom4="custom4";
                }
            }
          else qv = Caster.toQuery(pc.getVariable(query));
           
          QueryColumn keyColumn=qv.getColumn(key);
           
            String[] strBodies=ListUtil.toStringArrayTrim(ListUtil.listToArrayRemoveEmpty(body,','));
            QueryColumn[] bodyColumns=new QueryColumn[strBodies.length];
            for(int i=0;i<bodyColumns.length;i++) {
                bodyColumns[i]=qv.getColumn(strBodies[i]);
View Full Code Here

  }
 
  // FUTURE add to interface and set above to deprecated
  public Object getDataFromACollection(PageContext pc,Key key, Object defaultValue) {
    //Object rtn;
    QueryColumn col;
    // get data from queries
    for(int i=start;i<queries.length;i++) {
      col = queries[i].getColumn(key,null);
      if(col!=null) return col.get(queries[i].getCurrentrow(pc.getId()),NullSupportHelper.empty());
      //rtn=((Objects)queries[i]).get(pc,key,Null.NULL);
      //if(rtn!=Null.NULL) return rtn;
    }
    return defaultValue;
  }
View Full Code Here

    return getColumnFromACollection(KeyImpl.init(key));
  }

  @Override
  public QueryColumn getColumnFromACollection(Key key) {
    QueryColumn rtn=null;
   
    // get data from queries
    for(int i=start;i<queries.length;i++) {
      rtn=queries[i].getColumn(key,null);
      if(rtn!=null) {
View Full Code Here

        if(Decision.isQuery(value)) {
            Query q = Caster.toQuery(value);
            int recorcount=q.getRecordcount();
            String[] strColumns = q.getColumns();
           
            QueryColumn col;
            int row;
            for(int i=0;i<strColumns.length;i++) {
                col=q.getColumn(strColumns[i]);
                for(row=1;row<=recorcount;row++) {
                    col.set(row,toRailoType(pc,col.get(row,null)));
                }
            }
            return q;
        }
        return value;
View Full Code Here

                  custom4="custom4";
                }
            }
          else qv = Caster.toQuery(pc.getVariable(query));
           
          QueryColumn keyColumn=qv.getColumn(key);
           
            String[] strBodies=ListUtil.toStringArrayTrim(ListUtil.listToArrayRemoveEmpty(body,','));
            QueryColumn[] bodyColumns=new QueryColumn[strBodies.length];
            for(int i=0;i<bodyColumns.length;i++) {
                bodyColumns[i]=qv.getColumn(strBodies[i]);
View Full Code Here

    }
    }
    private QueryColumn getColumnEL(Query query, String column) {
        if(StringUtil.isEmpty(column)) return null;
        QueryColumn c = query.getColumn(column,null);
       
        return c;
    }
View Full Code Here

        return c;
    }
    private Object getValue(Query query, String column) {
        if(StringUtil.isEmpty(column)) return null;
        QueryColumn c = query.getColumn(column,null);
        if(c==null) return column;
        return c;
    }
View Full Code Here

                qv.setAtEL(k, 1, key);
              }
           
           
           
              QueryColumn keyColumn=qv.getColumn(k);
            return deleteCustom("custom", keyColumn);
          }
          catch(PageException pe){
            throw new SearchException(pe);
          }
View Full Code Here

        Query qry=new QueryImpl(columns,len,"query");
       
        List row;
        for(int iCol=0;iCol<columns.length;iCol++) {
            row=(List) rows.get(iCol);
            QueryColumn column = qry.getColumn(columns[iCol]);
           
            for(int iRow=0;iRow<row.size();iRow++) {
                column.set(iRow+1,toCFMLObject(row.get(iRow)));
            }
        }
        return qry;
    }
View Full Code Here

TOP

Related Classes of railo.runtime.type.QueryColumn

Copyright © 2018 www.massapicom. 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.