Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some general questions about assignment

 
s yucel
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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,
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11944
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic