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

Sun's provided interface DB

 
josine wilms
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Would it be allowed to change or add methods in the provided DB interface by Sun?


I see some reactions yes, some no, but I'm not sure this can become an automatic failure when delivering your code in the end....

As I see it, I think it's prescribed, you can't change it, only add new methods in a class that implements the DB interface. but that seems a bit like a tricky workaround...

What do you think?
What do you know (people who have delivered)?

Thanks,
Josine
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally did not change the supplied interface, because the instructions say dont. Sometimes situations will arise in which you have to just work with what's there - I think SUN are testing your ability to do this.

You should be able to use an adapter to work around any (deliberate) limitations in the supplied interface...
 
Thirumurugan Mylrajan
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you change the interface, you will fail.

I added extra methods to the class that inherited from the interface.Yes thats a little tricky and unclean, especially when you use RMI.
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi josine,

I have two arguments :
1.Sun has some tests which fit exactly the DBMain interface. If you change the interface they must change the test(s) and this for each scjd candidate, and
this make them not so happy.
2.Is like in the the real life the specs(from sun) are the client requirements, you must fulfill them otherwise you may lose your customer.

Regards M.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirements document explicitly list "MUST implement the FOLLOWING interface". That means you MUST use that precise interface either directly or indirectly but you cannot change it (else it would no longer be that interface).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic