• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S 2.3.1, do I ned to care about "create" method?

 
Michael Donley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all!

In the interface, i.e. DBMain, that was provided to me, 7 methods are declared (read, update, delete, find, create, lock, unlock) . However the description of assignment states that it is required for the system to "...search the data for all records..." and "...book a selected record..."

So, do I really need to implement all the 7 methods? I understand that "find", "update", "lock", "unlock" and MAYBE "read" are needed. But I don�t see why I can�t leave the bodies of the "delete" and "create" methods empty. I mean, the assignment does not state that the system should perform "delete" and/or "create", right?

Am I missing something?

Thanks in advance
 
Jethro Borsje
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am curious about this one also. At this point I have implemented those two methods, but they are not used anywhere in the GUI. However, I get the feeling the graders are using some kind of automated process to test the application and this process might call the create and delete methods in order to test concurrency issues.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the feeling the graders are using some kind of automated process to test the application


I have the same feeling... also, what if other applications are somehow going to use your implementation of the Data class, and they provide these functionalities?
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented all the method in the interface and provide 2 functionalities in my method. I also create the custom protocol (socket) for all the functionalities.

Jeffry Kristianto Yanuar
Java Instructor
SCJP 5.0
SCJA
SCJD (Working on UrlyBird 1.3.2) --> testing and documenting the assignment
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you need to implement all methods. The assignment requires you to implement the provided interface and then create a GUI on top of it.
Perhaps your application will not use some of the methods, however the assignment still ask you to create all the methods.

I don't recall anyone passing the certification without implementing all methods.

Regards,
Alex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic