Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do I have to supply a "Delete" button in GUI?

 
lambertlee Li
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my assignment I saw the GUI requirement like this:

The user interface for this assignment must satisfy the following criteria:
It must be composed exclusively with components from the Java Foundation Classes (Swing components).
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
It must present search results in a JTable.
It must allow the user to book a selected record, updating the database file accordingly.


It said "It must allow the user to book a selected record, updating the database file accordingly", what does that "updating database file" mean?
I guess there are 3 meanings:

1)Only update the booked/unbooked field in one record
2)Allow user to update/delete a record
3)Both option 1) and 2)

Which understanding is correct? 1)? 2) ? 3)?

Could anyone give me some hints? Thanks!
 
Ed Tse
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you will ever delete stuffs. It's option one. Based on whether you show booked field, you have to refresh the JTable w
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must implement all the CRUD functionality (including create and delete) in the satabase, but the client needs only to read and update unless the specs explicitly state otherwise.
 
Oliver Weikopf
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Booking means filling the owner field of a record, nothing else. So it's just updating.
[ June 20, 2006: Message edited by: Oliver Weikopf ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic