• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Data.delete(DataInfo toDelete) ...

 
Charles Dupin
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not implemented functionalities using Data.delete(DataInfo toDelete) and Data.add(String[] newData). It is not required by the project submission to add or remove records from the DB, I think . This funcetionalities are reserved to db administrators. Am I right?
[ December 16, 2002: Message edited by: Charles Dupin ]
 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Charles you are right.
I also understood from previous posts that these methods were to be used in a previous version of the assignment. But don't worry you don't have ti use them.
Hope this helps
Stephane
 
Charles Dupin
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am cleaning my code. Can I remove all the unused methods from Data class that came with the assignement and that I dont use?
-constructor to create a new db
-add record
-delete record
-...
Charles.
 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not do it. It does not hurt to let them there, and you have to remember the requirement a bout always having future enhancements in mind.
Anyway, if you still want to remove them, it is your choice but then do not forget to justify this choice in your design document.
(But again, I would not remove them )
Stephane
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Charles Dupin:
I am cleaning my code. Can I remove all the unused methods [...]
-constructor to create a new db
-add record
-delete record
-...
Well, consider this.
The fiction that Sun and yourself are maintaining is that you are actually coding a chunk of a real-world application for a real-world company. So the fictional "world" looks like this: next door, there are other developers at work writing code which imports airline schedules in the database and which cleans up old flights.
These developers will be so pleased when you decide to junk the add() method and so forth simply because you happen not to need them
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic