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

Extending functionality of Data class

 
Roman Yankin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though this seems to be obvious, I want to make sure everyone agrees with me. In my assignment I have introduced a couple of public methods that are not referenced in DB interface. So is it legal to extend functionality of Data class by introducing public methods?
 
David Winters Junior
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

yes i see no reason why one could not do this as long as the methods are related to the functionality of the Data class and not functionality which should be delegated to another class. What will these new methods do exactly?
david
 
Roman Yankin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Winters Junior:
Hey,

yes i see no reason why one could not do this as long as the methods are related to the functionality of the Data class and not functionality which should be delegated to another class. What will these new methods do exactly?
david


Well those methods can be divided into two groups. The first group deals with records. For instance I've added wrapper methods that encapsulate calls to lock/unlock methods in combination with read/update/delete operation. The second group are those methods that deal with internal data cache - a map where all records are kept for performance reasons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic