• Post Reply Bookmark Topic Watch Topic
  • New Topic

Beta doubt  RSS feed

 
Ramesh kumaar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
"The User Interface must allow the user to book a selected record. This action must interact with other concurrent clients and update the database accordingly "
Does they mean to update the client GUI when ever a change happen in the server.
regards,
-rameshkumar
 
Junilu Lacar
Sheriff
Posts: 10886
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh,
I suppose you could make the GUI refresh but that is probably going above and beyond what's being asked. IMO, the statement you quoted implies that you need to program some sort of transactional ability in the persistence layer (the class implementing the DB interface). This includes locking, unlocking, etc. and you have to consider synchronization of multiple requests and concurrent access to a shared resource (the data file).
Remember though, whatever you decide to do, any doubts and considerations you made in deciding whether or not the client GUIs should be refreshed would be things you'd want to document in your choices.txt
 
AJ2
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The GUI should be updated only after the database has been updated successfully.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!