Andrew Monkhouse: A GUI that allows search / view / book already shows mastery of many standard GUI design concepts. Adding an extra screen for create/delete/unbook will not really show any new GUI concepts.
joel smither: There's no way that 2 clients could update the same record with this scheme is there?
When I implemented the methods in my Data class, my filePointer variable is initialized once at start up (when I first open the file I read all the records in it and set the file pointer) and never modified again.
doesn;t this mean I can't add the synchronized keyword to those methods?
Originally posted by Paula Decker:
I call Data.close() from my gui controller to close the database if I'm in standalone mode. I call Data.close() from the server.close() method. Both the standalone client and the server use an instance of Data to make all calls to the database. I don't really like using the static but it should work. I was wondering if I should add it because close() is not in the DBAccess interface. What do you think?
the framework is now getting to the point where it's a project in itself
I have just changed my code to add a public static method in my Data class called, close().
so I still don;t understand why the update method needs to be synchronized.