FileDocCategorySizeDatePackage
StockDatabase.javaAPI DocJ2ME MIDP 2.02789Thu Nov 07 12:02:18 GMT 2002example.stock

StockDatabase

public class StockDatabase extends Database

This class provides an implementation for the Database class specific to stock records.

Fields Summary
Constructors Summary
public StockDatabase()
Default Constructor

        rc = new StockComparator();
    
Methods Summary
public synchronized RecordEnumerationenumerateRecords()

Get a RecordEnumeration of records in the database who match the StockFilter -- which just filters out the first entry in the database (ie. the lastID record)

return
RecordEnumeration of all stock records (ie. excluding the lastID record)
throws
RecordStoreNotOpenException is thrown when trying to close a RecordStore that is not open

        return database.enumerateRecords(new StockFilter(), null, false);