openamf/src/java/org/openamf/recordset ASRecordSet.java,1.28,1.29
Sean Sullivan <[email protected]> Sat, 25 Mar 2006 22:17:47 +0000
| 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.sourceforge.net:/tmp/cvs-serv20721/src/java/org/openamf/recordset
Modified Files:
ASRecordSet.java
Log Message:
modified constructor. We initialize setId with a unique value
per instance.
Index: ASRecordSet.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/recordset/ASRecordSet.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** ASRecordSet.java 11 Sep 2004 16:49:10 -0000 1.28
--- ASRecordSet.java 25 Mar 2006 22:17:44 -0000 1.29
***************
*** 49,52 ****
--- 49,54 ----
private static final String SI_VERSION = "version";
+ private static int count = 0;
+
private Map serverInfo;
private List rows;
***************
*** 57,61 ****
serverInfo = new HashMap();
put(SI, serverInfo);
! setId("RS" + String.valueOf(hashCode()));
setInitialData(new ArrayList());
setServiceName(SERVICE_NAME);
--- 59,69 ----
serverInfo = new HashMap();
put(SI, serverInfo);
!
! synchronized (ASRecordSet.class)
! {
! count++;
! setId("RS" + count);
! }
!
setInitialData(new ArrayList());
setServiceName(SERVICE_NAME);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642