openamf/src/java/org/openamf/recordset ASRecordSet.java,1.5,1.6

[email protected]
Newsgroups gmane.comp.java.openamf.cvs
Message-ID <[email protected]>
Update of /cvsroot/openamf/openamf/src/java/org/openamf/recordset
In directory sc8-pr-cvs1:/tmp/cvs-serv14531/src/java/org/openamf/recordset

Modified Files:
	ASRecordSet.java 
Log Message:
one more fix



Index: ASRecordSet.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/recordset/ASRecordSet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ASRecordSet.java	27 Apr 2003 01:38:06 -0000	1.5
--- ASRecordSet.java	27 Apr 2003 01:46:46 -0000	1.6
***************
*** 7,11 ****
  import java.util.ArrayList;
  import java.util.HashMap;
- import java.util.Iterator;
  
  import org.openamf.ASObject;
--- 7,10 ----
***************
*** 131,150 ****
  	
  	/**
! 	 * @param rows ArrayList containing a HashMap for each row
  	 */
! 	public void populate(ArrayList rows) {
! 		
! 		if (rows.size() > 0) {
! 			HashMap row1 = (HashMap)rows.get(0);
! 			String[] columnNames = new String[row1.size()];
! 			int colIndex = 0;
! 			for (Iterator keys = row1.keySet().iterator(); keys.hasNext();) {
! 				columnNames[colIndex] = (String)keys.next();
! 				colIndex++;
! 			}
! 			setInitialData(rows);
! 			setTotalCount(rows.size());
! 			setColumnNames(columnNames);			
! 		}
  	}
  	
--- 130,140 ----
  	
  	/**
! 	 * @param columnNames
! 	 * @param rows ArrayList containing a ArrayList for each row
  	 */
! 	public void populate(String[] columnNames, ArrayList rows) {
! 		setInitialData(rows);
! 		setTotalCount(rows.size());
! 		setColumnNames(columnNames);			
  	}
  	




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.