This methods cleans out the database of all alerts that match the
tkrSymbol
passed in. An appropriate use would be when
removing a stock from the database, all alerts for that stock are no
longer valid, so call this method then.
Enumeration IDs = recordIDs.elements();
while (IDs.hasMoreElements()) {
int index = ((Integer) IDs.nextElement()).intValue();
try {
String data = new String(database.getRecord(index));
data = data.substring(0, data.indexOf(';"));
if (data.equals(tkrSymbol)) {
database.deleteRecord(index);
recordIDs.removeElement(new Integer(index));
}
} catch (RecordStoreException rse) {
return;
}
}