This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

B&S Design question

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello this is my first thread,

first sorry for my english.

And now my discussion point:

I start the B&S assignment and I like to discuss my design.

I want to build a 3 tier architecture.
DB-Server:
The Data-class implements the DBMain-Interface and has a LockMgr (Singleton),
who has a Hash Map with the ClientKey/RecordNo. The LockMgr takes care of the locking.

The Data Facade wraps the Data-class and handles the business logic.
It has a RecordMgr (Singleton) who holds all
the records of the file in the cache and take care of persistence.
One record is kept as a record-class (DAO).
The Data Facade has also the Client Key for the locking. So there is one Data Facade for each Client.
The Data Facade implements the DataFacadeIFC which is the Interface for the Client.

Network-Part:
I've a B&SFactory who creates a B&SServiceImpl.
The B&SServiceImpl implements the DataFacadeIFC so the Client can handle with it.

Client:
The Client has a Connector Factory who creates a Data Facade or a B&SServiceImpl depends on the mode (alone or network).
I think this should work, because Data Facade and B&SServiceImpl have the same Interface.

Please tell me your thinking about this approach.
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bodenstab,

Welcome to JavaRanch and this forum.

I think the approach you mention so far sounds reasonable. Good luck with the assignment, and hopefully we will see more discussion points.

Regards, Andrew
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic