/** * INTERNAL: * Converts the ReportQueryResult to a simple list of values. */ public List toList(){ return this.getResults(); }
/** * PUBLIC: * Returns an collection of the values. */ public Collection values() { return getResults(); } }
/** * PUBLIC: * Returns an collection of the values. */ public Collection values() { return getResults(); } }
/** * INTERNAL: * Converts the ReportQueryResult to a simple array of values. */ public Object[] toArray(){ List list = getResults(); return (list == null) ? null : list.toArray(); }
/** * INTERNAL: * Converts the ReportQueryResult to a simple array of values. */ public Object[] toArray(){ List list = getResults(); return (list == null) ? null : list.toArray(); }
/** * PUBLIC: * Return the indexed value from result. */ public Object getByIndex(int index) { return getResults().get(index); }
/** * INTERNAL: * Converts the ReportQueryResult to a simple array of values. */ public Object[] toArray(){ List list = getResults(); return (list == null) ? null : list.toArray(); }
/** * PUBLIC: * Return the indexed value from result. */ public Object getByIndex(int index) { return getResults().get(index); }
/** * Return the values of the result tuple as an array. * @return result element values */ public Object[] toArray(){ return this.rqr.getResults().toArray(); }
/** * PUBLIC: * Check if the value is contained in the result. */ public boolean containsValue(Object value) { return getResults().contains(value); }
/** * PUBLIC: * Check if the value is contained in the result. */ public boolean containsValue(Object value) { return getResults().contains(value); }
/** * OBSOLETE: * Return an enumeration of the result values. * @see #values() */ public Enumeration elements() { return new Vector(getResults()).elements(); }
/** * OBSOLETE: * Return an enumeration of the result values. * @see #values() */ public Enumeration elements() { return new Vector(getResults()).elements(); }
/** * OBSOLETE: * Return an enumeration of the result values. * @see #values() */ public Enumeration elements() { return new Vector(getResults()).elements(); }
@Override public int hashCode() { List<Object> results = getResults(); Object id = getId(); int result = results != null ? results.hashCode() : 0; result = 31 * result + (id != null ? id.hashCode() : 0); return result; }
/** * PUBLIC: * Return the value for given item name. */ public Object get(String name) { int index = getNames().indexOf(name); if (index == -1) { return null; } return getResults().get(index); }
/** * PUBLIC: * Return the value for given item name. */ public Object get(String name) { int index = getNames().indexOf(name); if (index == -1) { return null; } return getResults().get(index); }
/** * PUBLIC: * Return the value for given item name. */ public Object get(String name) { int index = getNames().indexOf(name); if (index == -1) { return null; } return getResults().get(index); }
public Object next() { if (!hasNext()) { throw new NoSuchElementException(); } this.index++; return new RecordEntry(getNames().get(this.index - 1), getResults().get(this.index - 1)); }
public Object next() { if (!hasNext()) { throw new NoSuchElementException(); } this.index++; return new RecordEntry(getNames().get(this.index - 1), getResults().get(this.index - 1)); }