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

Bodgitt and Scarper - GUI insert/delete and DuplicateKeyException

 
Maciej Miklas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people!


I have "Bodgitt and Scarper". My database interface allows inserting data, but there is no word about GUI that should allow this. Should I skip it on GUI level. Means: users can only book records, but can not add and delete them?

The second question:
The interface defines DuplicateKeyException, but there is not definition of PK. Should I leave this unimplemented or define set of cells, that define primary key, like Company and location?


Thanks,
Maciek
 
Romeo Son
Ranch Hand
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maciek,

Your first assumption is correct. You have to implement insert / delete at the database level, but in GUI you will have only book (update) / search.
By the way, when you develop your database, you don't have to think to the GUI. They are separate logic units.

As for the second question, most of the people on this forum did not defined a Primary Key for their database, because the specification is ambiguous on this. Don't forget to mention your choice in choices.txt.

Regards,

Romeo

[ June 15, 2007: Message edited by: Romeo Son ]
[ June 15, 2007: Message edited by: Romeo Son ]
 
Maciej Miklas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
super!

Thanks,
Maciej
 
chris bajada
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As regards the DuplicateKeyException - my program does not allow the creation of a record which is exactly the same as a record which already exists, as it is confusing for the user if 2 records which are exactly the same show up in the GUI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic