• 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

Could the classes be modified?

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic