Esempio n. 1
0
 public static Array call(PageContext pc, QueryColumn column) throws PageException {
   Array arr = new ArrayImpl();
   int size = column.size();
   for (int i = 1; i <= size; i++) {
     arr.append(Caster.toString(column.get(i, null)));
   }
   return arr;
 }
Esempio n. 2
0
  public static String call(PageContext pc, String strQueryColumn, String delimeter)
      throws PageException {

    QueryColumn column = toColumn(pc, strQueryColumn);
    StringBuffer sb = new StringBuffer();
    int size = column.size();
    for (int i = 1; i <= size; i++) {
      if (i > 1) sb.append(delimeter);
      sb.append(Caster.toString(column.get(i)));
    }
    return sb.toString();
  }
 /** @see railo.runtime.type.QueryColumn#get(int, java.lang.Object) */
 public Object get(int row, Object defaultValue) {
   return column.get(row, defaultValue);
 }
 /** @see railo.runtime.type.QueryColumn#get(int) */
 public Object get(int row) throws PageException {
   return column.get(row);
 }
 /** @see railo.runtime.type.ref.Reference#get(railo.runtime.PageContext, java.lang.Object) */
 public Object get(PageContext pc, Object defaultValue) {
   return column.get(pc, defaultValue);
 }
 /** @see railo.runtime.type.ref.Reference#get(railo.runtime.PageContext) */
 public Object get(PageContext pc) throws PageException {
   return column.get(pc);
 }
 /** @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key, java.lang.Object) */
 public Object get(Key key, Object defaultValue) {
   return column.get(key, defaultValue);
 }
 /** @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key) */
 public Object get(Key key) throws PageException {
   return column.get(key);
 }