• 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

Extending functionality of Data class

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic