• 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

Any Suggestion For This design!!!

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic