|
From: Sean S. <su...@us...> - 2006-03-25 22:17:48
|
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); |