public abstract class BaseRecordsFile extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file.
|
void |
deleteRecord(String key)
Deletes a record.
|
abstract Enumeration |
enumerateKeys()
Returns an Enumeration of the keys of all records in the database.
|
abstract int |
getNumRecords()
Returns the number or records in the database.
|
void |
insertRecord(RecordWriter rw)
Adds the given record to the database.
|
RecordReader |
readRecord(String key)
Reads a record.
|
abstract boolean |
recordExists(String key)
Checks there is a record with the given key.
|
void |
updateRecord(RecordWriter rw)
Updates an existing record.
|
public abstract Enumeration enumerateKeys()
public abstract int getNumRecords()
public abstract boolean recordExists(String key)
public void insertRecord(RecordWriter rw) throws RecordsFileException, IOException
RecordsFileExceptionIOExceptionpublic void updateRecord(RecordWriter rw) throws RecordsFileException, IOException
RecordsFileExceptionIOExceptionpublic RecordReader readRecord(String key) throws RecordsFileException, IOException
RecordsFileExceptionIOExceptionpublic void deleteRecord(String key) throws RecordsFileException, IOException
RecordsFileExceptionIOExceptionpublic void close()
throws IOException,
RecordsFileException
IOExceptionRecordsFileExceptionDMelt 2.0 © DataMelt by jWork.ORG