Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Data access class"

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Guess this a short one to answer...
My spec (URLyBird 1.2.1) states that the "data access class" should be called Data.java and that it must implement the provided interface. Does "data access class" in this context mean that Data should be the one class that actually works with the DB file (e.g. through RAF)?
At the moment I've got no intention to add another layer of abstraction, but I've only just started... So, in my current solution Data will work with the file.
Regards,
Marcel
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcel,
Not necessarily. The Data class can delegate actions to other classes if necessary. However if you did that, your client and server can only call the Data class, they cannot call the other classes you write. (Data would be a Fa´┐Żade, providing all the external functionality).
So your Data class might call methods in a LockManager class, or a FileIO class. But your stand alone client must not call the LockManager class or the FileIO class. (Neither class is a requirement by the way - just an example).
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic