• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

some general questions about assignment

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have just got my assignment, and I am a bit confused with some points:
My assignment is B&S.

1- The assigment has an interface to implement for data access. As far as I have understood, I need to provide two functionalities; Search and Book.
But in the interface, there are some methods to add a new record, to update and delete an existing record. Shall I implement these methods and put onto the GUI as well? And will there be unbook functionality?

2- In non networked mode, shall I suppose that only one client is accessing the db? In server mode, I need to implement all lcking mechanism as there are concurrent access. So I think I can use the same data access class for standalone mode as well?

any idea highly appreciated..
kind regards,
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch and this forum.

Although you have only been given one assignment, it might help for you to think of it as three separate assignments: the database, the server, and the GUI. Then approach each one separately, as though the others didn't exist.

So when you write the database connectivity, you are going to be implementing methods that provide the greatest functionality and flexibility. So you will probably end up providing functions that might not be used by your GUI (e.g. the create() method), and you will probably provide flexibility that is not required by your GUI (e.g. the search method provides "begins with" searching, whereas your GUI only requires a perfect match).

Then when you get to the GUI section you forget all about what the database is capable of and just concentrate on what you are required to develop as far as the GUI is concerned.

Originally posted by s yucel:
In non networked mode, shall I suppose that only one client is accessing the db?

Do you have the following statement in your instructions?

From the instructions:
You may assume that at any moment, at most one program is accessing the database file

(Search for the word "assume" - this sentence contains the first instance of that word)

Regards, Andrew
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic