|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexample.stock.Database
example.stock.AlertDatabase
public class AlertDatabase
This class provides an implementation of the Database
class specific to alert records.
Field Summary |
---|
Fields inherited from class example.stock.Database |
---|
database, lastID, rc, recordIDs |
Constructor Summary | |
---|---|
AlertDatabase()
Default Constructor |
Method Summary | |
---|---|
javax.microedition.rms.RecordEnumeration |
enumerateRecords(java.lang.String tkrSymbol,
int price)
Get a RecordEnumeration of records in the database who
match the AlertFilter conditions |
void |
removeUselessAlerts(java.lang.String tkrSymbol)
This methods cleans out the database of all alerts that match the tkrSymbol passed in. |
Methods inherited from class example.stock.Database |
---|
add, cleanUp, close, delete, getNumRecords, open, search, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlertDatabase()
Method Detail |
---|
public void removeUselessAlerts(java.lang.String tkrSymbol)
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.
tkrSymbol
- The name of the stock to match with alertspublic javax.microedition.rms.RecordEnumeration enumerateRecords(java.lang.String tkrSymbol, int price) throws javax.microedition.rms.RecordStoreNotOpenException
Get a RecordEnumeration
of records in the database who
match the AlertFilter
conditions
tkrSymbol
- The name of the stock to retrieve alerts forprice
- The price of the stock to retrieve alerts for
RecordEnumeration
of all stock records that match
the RecordFilter
RecordStoreNotOpenException
- is thrown when
trying to close a RecordStore
that is not open
javax.microedition.rms.RecordStoreNotOpenException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |