1 package net.sourceforge.phpeclipse.wizards.actions.metadata;
3 import java.util.Iterator;
6 import com.quantum.sql.SQLResultSetResults;
9 private final List elements;
11 public Row(List elements) {
12 this.elements = elements;
15 public Object get(int columnNumber) {
16 return (columnNumber > this.elements.size() || columnNumber <= 0)
18 : this.elements.get(columnNumber - 1);
21 public String[] getAsStringArray() {
22 String[] resultArray = new String[this.elements.size()];
24 for (Iterator iter = this.elements.iterator(); iter.hasNext() ; ) {
25 String element = iter.next().toString();
26 resultArray[i] = element;
32 // public SQLResultSetResults getResultSet() {
33 // return SQLResultSetResults.this;