| java.lang.Object example.stock.Database example.stock.StockDatabase
StockDatabase | public class StockDatabase extends Database (Code) | | This class provides an implementation for the Database
class specific to stock records.
|
Method Summary | |
public synchronized 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. |
StockDatabase | public StockDatabase()(Code) | | Default Constructor
|
enumerateRecords | public synchronized RecordEnumeration enumerateRecords() throws RecordStoreNotOpenException(Code) | | 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)
RecordEnumeration of all stock records (ie.excluding the lastID record) RecordStoreNotOpenException is thrown when tryingto close a RecordStore that is not open |
Methods inherited from example.stock.Database | public synchronized void add(String record) throws RecordStoreNotOpenException, RecordStoreFullException, RecordStoreException(Code)(Java Doc) public void cleanUp(String fileName) throws RecordStoreNotFoundException, RecordStoreException(Code)(Java Doc) public void close() throws RecordStoreNotOpenException, RecordStoreException(Code)(Java Doc) public synchronized void delete(String s) throws RecordStoreNotOpenException, RecordStoreException(Code)(Java Doc) public int getNumRecords() throws RecordStoreNotOpenException(Code)(Java Doc) public void open(String fileName) throws RecordStoreNotFoundException, RecordStoreException, RecordStoreFullException(Code)(Java Doc) public synchronized String search(String s) throws RecordStoreNotOpenException, RecordStoreException(Code)(Java Doc) public synchronized void update(String s, byte[] data) throws RecordStoreNotOpenException, RecordStoreFullException, RecordStoreException(Code)(Java Doc)
|
|
|