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

Could the classes be modified?

 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classes which are in db directory(except for
db.db) can be modified? Could any SCJD make it sure?
 
Marijana Grabovac
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are allowed to change java files in db package. The other issues is that you are not supposed to change it too much, or if you decided to do that you have to defend your position about that (why they needed to be changed). For example, you have to choose between extending Data class and changing it.
 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marijana:
I added two new classes into db package, and plan to modidy DataInfo by inserting some new fields (final static int ORIGIN, DEST, Date, CARRY; e.g. )
How do you think about above?Is them more much? And how should I defend my position? By command or other any document?
 
Andrea Gazzarini
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.
In my implementation, i've modified the Data class in these points:
1) Added an inner class
2) Modified the deprecated methods
3) Added the required methods (lock,unlock, criteriaFind)
Greetings
 
Reinhold Gruber
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I don't think that it is a good idea, to add static fields like ORIGIN etc. to the DataInfo class. DataInfo just represents a record in a table and this table could contain flight info data, employee data or whatever.
Reinhold
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic