Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help On The Design

 
Imed Ahras
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
any help would really grateful, I am working now the design. I ended up having this design:
***
Database Interface that models a database with all the normal database functionalities.
createDataTable(String dbname)
getRecordCoun(String dbName).....
***
Database interface and has a hashmap to store data Objects in it.
(cause database may have more tables later)
***
Data Class models a table and it has got a LockManager instance.
***
LockManager Class has a hashmap instance to store records--clients
***
LocalDatabase implements Database Database interface;
++++++++++++++++++++++++
In the Server Package:
Server interface that has : Database getDatabase()
***
ConcreteServer which will initiate only ONE remotedatabase object, and will give every client reference to that object.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!