avatar

583

Capture the loss of auction entries because the underlying auction info wasn't there.

by mrs, 04 Aug, 2008 10:47 AM
527 583  
107107       AuctionEntry ae = (AuctionEntry) entries.get(auction_id);
108108       ae.setServer(newServer);
109109 
110       sEntryManager.addEntry(ae);
110       if (ae.getIdentifier() == null) {
111         ErrorManagement.logMessage("We lost the underlying auction for: " + ae.dumpRecord());
112       } else {
113         sEntryManager.addEntry(ae);
114       }
111115       MQFactory.getConcrete("splash").enqueue("SET " + count++);
112116     }
113117 
518 583  
237237   protected void handleTag(int i, XMLElement curElement) { }
238238   protected String[] getTags() { return new String[0]; }
239239   public XMLElement toXML() { return null; }
240 
241   public String dumpRecord() {
242     StringBuffer sb = new StringBuffer("<record>\n");
243     for(String key : mBacking.keySet()) {
244       sb.append("  <").append(key).append('>').append(mBacking.get(key)).append("</").append(key).append(">\n");
245     }
246     sb.append("</record>\n");
247 
248     return sb.toString();
249   }
240250 }