|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--goldengine.java.SimpleDatabase
-------------------------------------------------------------------------------------------
Source File: SimpleDatabase.java
Author: Devin Cook, Matthew Hawkins
Description: A class written to open a binary cgt file (written in VB), and read its
contents for simple database records.
-------------------------------------------------------------------------------------------
Revision List
Author Version Description
------ ------- -----------
MPH 1.0 First Issue
MPH 1.1 Bug fixed where getNextRecord would always be false.
| Fields inherited from interface goldengine.java.EntryContentConstants |
entryContentBoolean, entryContentByte, entryContentEmpty, entryContentInteger, entryContentString |
| Constructor Summary | |
SimpleDatabase()
|
|
| Method Summary | |
void |
clear()
clear This method will reset all the currently read fields. |
void |
closeFile()
closeFile This method will close the file and set the Buffer to null. |
boolean |
done()
done This method will check to see if we have reached the end of the file. |
java.lang.String |
getFileType()
getFileType This method will return what file type this Database instance can read. |
boolean |
getNextRecord()
getNextRecord #ver1.1# This method will read the file for the next record, and place each field in the Vector to be retrieved later. |
boolean |
openFile(java.lang.String fileName)
openFile This method will open the file for reading. |
int[] |
retrieve(int numParams)
retrieve This method will retrieve a set of integers that have been read by the SimpleDatabase file. |
boolean |
retrieveDone()
retrieveDone This method checks to see if there no many fields or records to be read. |
java.lang.Object |
retrieveNext()
retrieveNext This method will retrieve an Object that has been read in by the SimpleDatabase. |
void |
setFileType(java.lang.String newFileType)
setFileType This method will identify what file can be read by the simple database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleDatabase()
| Method Detail |
public int[] retrieve(int numParams)
numParams - The number of records to return.public boolean retrieveDone()
public java.lang.Object retrieveNext()
public boolean openFile(java.lang.String fileName)
throws ParserException
fileName - the absolute pathname of the file to read.ParserException - Thrown if there is a problem with the stream.
public void closeFile()
throws ParserException
ParserException - If there was a problem closing the file.public void setFileType(java.lang.String newFileType)
newFileType - The file type to read.public java.lang.String getFileType()
public boolean done()
throws ParserException
ParserException - If there was a problem with reading the
stream.
public boolean getNextRecord()
throws ParserException
ver1.1 Found bug where it would always return false.
ParserException - If there was some problem with the stream.public void clear()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||