froehlich 01/11/09 08:34:51
Added: apps/db/src/java/org/apache/avalon/db/basic/results
BasicRowSet.java
Log:
Revision Changes Path
1.1
jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/results/BasicRowSet.java
Index: BasicRowSet.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.avalon.db.basic.results;
import org.apache.avalon.db.results.RowSet;
import org.apache.avalon.db.results.Columns;
import java.util.Vector;
/**
* This class represents a the BasicRowSet.
* @author Gerhard Froehlich <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
* @version
*/
public class BasicRowSet implements RowSet {
private Columns mColumns;
private Vector mRows;
public BasicRowSet(Columns columns, Vector selectedRows) {
mRows = selectedRows;
mColumns = columns;
}
public Columns getColumns() {
return mColumns;
}
public int getRowCount() {
return mRows.size();
}
public int getPageNumber() {
return 0;
}
public Object[] getRow(int ix) {
return (Object[])mRows.get(ix);
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>