example.stock
Class StockDatabase

java.lang.Object
  extended by example.stock.Database
      extended by example.stock.StockDatabase

public class StockDatabase
extends Database

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


Field Summary
 
Fields inherited from class example.stock.Database
database, lastID, rc, recordIDs
 
Constructor Summary
StockDatabase()
          Default Constructor
 
Method Summary
 javax.microedition.rms.RecordEnumeration enumerateRecords()
          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)
 
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

StockDatabase

public StockDatabase()
Default Constructor

Method Detail

enumerateRecords

public javax.microedition.rms.RecordEnumeration enumerateRecords()
                                                          throws javax.microedition.rms.RecordStoreNotOpenException

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)

Returns:
RecordEnumeration of all stock records (ie. excluding the lastID record)
Throws:
RecordStoreNotOpenException - is thrown when trying to close a RecordStore that is not open
javax.microedition.rms.RecordStoreNotOpenException