Implemented Left lock() and unlock() methods in RemoteData and left them blank in Data.
FBNController contains an instance of DataInterface (private) and methods to get connetion, search flights and book flight, populate all the comboboxes with values from the database fields.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Record locking must be implemented using the methods public void lock(int) and public void unlock(int). These methods are required to allow concurrent use of the database when booking flights from multiple clients...
Normally in an MVC design, it is the model which models the data (and hence has all the accessor / modifier methods).
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Don't get me started about those stupid light bulbs. |