Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

add or delete a record?

 
Allen Chan
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
In the Data.java file, there is a add and delete method, but I still did not find anywhere we need to add or delete it in the documents, it simple says provide a way to view and book fly, another word, it focus on customer not ticket admin. Could somebody give more details about how admin functions (other than view and book) to be done?
Please don't feel annoyed in next couple of weeks , I am just start my project.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Could somebody give more details about how admin functions (other than view and book) to be done?

The assignment doesn't ask you to implement the functionality that deals with adding and deleting the records, so don't do it. The add() and delete() methods are in Data class for completeness only.
Eugene.
 
Allen Chan
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eugene, you and Mark are always clear cut in your answers, which is excellent for a man lazy like me.
 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The assignment doesn't ask you to implement the functionality that deals with adding and deleting the records, so don't do it.

But should the implementation of the interface be ignored. For example, throw UnsupportedOperation exception or return null if necessary?
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Eugene,
I am not also going to provide facilities of adding or deleting a record. I am providing booking and search facilities. I only provide (better to I'll provide ) the user to place booking but not cancel booking. In my beta test instruction, I did not find any line telling to give facility to cancel. In fact I find not a single operation that will write even 1 byte in the db.db file.
So I came to the conclusion as ----
(1) Provide createRecord and deleteRecord methods that 'll be NOP methods. I'll only provide comments there that future enhancement might be done providing funsctionality in these two methods.
(2) We, beta testers, were not provided any db.db file and hence I created one with Hex Editor . The magic cookie is a 4 byte number that I provided writing in that file directly from Hex Editor.
(3) All the locking, unlockign, setting lock cookie are actually done in JVM/JRE by reading information from the db.db file.
Do you think I am making a mistake?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic