A D F G I M O P R S T U W

A

actionPerformed(ActionEvent) - Method in class presentation.MainWindow
Handles the events of the buttons
actionPerformed(ActionEvent) - Method in class presentation.ManageRecordDialog
Handles the button implementations
addInsuranceCoverType(String) - Method in class data.Data
Add a new insurance cover type to the company
addRecord(String[]) - Method in interface data.DAO
 
addRecord(String[]) - Method in class data.Database
Creates a new record in the database (possibly re-using a deleted record identifier).
AND - Static variable in interface data.DAO
 

D

DAO - Interface in data
 
data - package data
 
Data - Class in data
A data encapsulates the information of each line in the file
Data() - Constructor for class data.Data
Initialize the default properties of a data
Database - Class in data
The database implements all the database functionality such as adding updating, and deleting records
Database() - Constructor for class data.Database
Upon the initialization of the database, it will load the content from the file
deleteRecord(int) - Method in interface data.DAO
 
deleteRecord(int) - Method in class data.Database
Deletes a record, making the record identifier and database file position available for re-use.
DuplicateIndexException - Exception in data
A custom exception that is thrown whenever a duplicate record is stored in the database
DuplicateIndexException() - Constructor for exception data.DuplicateIndexException
Initialize the default error message when thrown
DuplicateIndexException(String) - Constructor for exception data.DuplicateIndexException
Set a customer error message when thrown

F

findRecords(String[], int) - Method in interface data.DAO
 
findRecords(String[], int) - Method in class data.Database
Returns an array of record identifiers that map to records that match the specified search criteria.

G

getAllRecords() - Method in class data.Database
Query all the record number of all data stored
getBrokerPercentage() - Method in class data.Data
Access to the broker percentage property
getCompanyName() - Method in class data.Data
Access to the company name property
getData() - Method in class presentation.ManageRecordDialog
Access to the data property
getGeneralDescription() - Method in class data.Data
Access to the general description property
getID() - Method in class data.Data
Access to the ID property of the data
getInsuranceCoverTypes() - Method in class data.Data
Access to the insurance cover types property
getTelephoneNumber() - Method in class data.Data
Access to the telephone number property
getWebAddress() - Method in class data.Data
Access to the web address property

I

Insurance - Class in <Unnamed>
Entry class to start the program
Insurance() - Constructor for class Insurance
 

M

main(String[]) - Static method in class Insurance
Entry point of the program
MainWindow - Class in presentation
 
MainWindow() - Constructor for class presentation.MainWindow
Initialize the graphical components of the window
ManageRecordDialog - Class in presentation
A window for adding, searching, and updating
ManageRecordDialog(JFrame, int) - Constructor for class presentation.ManageRecordDialog
Initialize the graphical components for adding a new record

O

OR - Static variable in interface data.DAO
 

P

presentation - package presentation
 

R

readRecord(int) - Method in interface data.DAO
 
readRecord(int) - Method in class data.Database
Returns record data from the database specified by the record identifier supplied.
RecordNotFoundException - Exception in data
A custom exception that is thrown when searching the database and the record does not exit.
RecordNotFoundException() - Constructor for exception data.RecordNotFoundException
Shows a default message when the record is not found
RecordNotFoundException(String) - Constructor for exception data.RecordNotFoundException
Shows a specific message when the record is not found

S

save() - Method in class data.Database
Save the database to a file
setBrokerPercentage(double) - Method in class data.Data
Initialize the broker percentage
setCompanyName(String) - Method in class data.Data
Initialize the company name
setData(String[]) - Method in class presentation.ManageRecordDialog
Set the data into the user interface
setGeneralDescription(String) - Method in class data.Data
Initialize the general description
setTelephoneNumber(String) - Method in class data.Data
Initialize the company's telephone number
setWebAddress(String) - Method in class data.Data
Initialize the web address

T

toString() - Method in class data.Data
Return a string representation of the data ready for storing to the database
toStringWithoutID() - Method in class data.Data
Return a string representation but without the ID included
TYPE_ADD - Static variable in class presentation.ManageRecordDialog
 
TYPE_SEARCH - Static variable in class presentation.ManageRecordDialog
 
TYPE_UPDATE - Static variable in class presentation.ManageRecordDialog
 

U

updateRecord(int, String[]) - Method in interface data.DAO
 
updateRecord(int, String[]) - Method in class data.Database
Modifies the fields of a record.

W

windowActivated(WindowEvent) - Method in class presentation.MainWindow
 
windowClosed(WindowEvent) - Method in class presentation.MainWindow
 
windowClosing(WindowEvent) - Method in class presentation.MainWindow
Saves the database before terminating the program
windowDeactivated(WindowEvent) - Method in class presentation.MainWindow
 
windowDeiconified(WindowEvent) - Method in class presentation.MainWindow
 
windowIconified(WindowEvent) - Method in class presentation.MainWindow
 
windowOpened(WindowEvent) - Method in class presentation.MainWindow
 

A D F G I M O P R S T U W