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

SCJD - Create & Delete

 
Paul Truckle
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed similar questions being raised regarding the above, but my specification which is Bodgitt & Scarper, states that the required server interface should include methods for create and delete. However the GUI does not specify this at all. From a functional perspective it only specifies Booking a selected record and performing a search...nothing about create, delete or even releasing a booking.

Anyone come across this before ? Does this mean we have to do the coding behind the scenes and the people at Sun will then test the create / delete methods using their own client tools ? Basically my question is, do we have to code the create and delete methods.... I saw a similar question to this with an answer that suggests that we don't have to. I don't mind, I just want to be sure.

Many thanks for any help.



Paul.

 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,

I think most people (including myself) do implement the create and delete methods according to the interface specification.
On the other hand, people have passed not implementing them, so if you document a good reason for either choice you're probably OK. However, I remember one of those people saying that he thought he lost some points on the locking part, because his locking was not resistent against creation and deletion. So you will probably at least need to consider the possibility that they will be implemented later.


Frans.
 
Paul Truckle
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for your help...... I can make a decision now.

Paul.
 
joe lin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i think we do implement the create and delete methods according to my SCJD instructions file.In my instructions file,the comments on these methods are:
Deletes a record,marking the record number and associated disk storage available for reuse.
Creates a new record in the database (possibly reusing a deleted entry).Inserts the given data,and returns the record number of the new record.
so,when the client booking or unbooking a selected record,the server side will invoke the create or delete method to mark the selected record to valid or deleted.
hope this right and help!
 
Paul Truckle
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've now consulted Sun regarding the create and delete methods. I've been told that YES they are required, and NO the GUI does not access them.
BTW, you mention unbooking above, I can only assume that your assignment includes this as a requirement, because mine only states booking as a requirement.

Cheers, Paul.
 
Ian Rets
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I also have a Bodgitt & Scarper assignment asking myself the same question to implement the create and delete methods or not. I thought about it some time but I find the assignment quite clear because it says in the beginning that what you have to do is stated with the word "must" and there is no statement about implementing the create and delete methods (And i will pay attention not to code something that will cost me points ;)

I hope if Sun wanted me to implementd those methods they would have written it into the assignment. The other methods are mentioned each.

In general there is no need to implement an interface. Maybe these methods are just there to make the interface 'complete' or to indicate what is ment by "Your user interface should be designed with the expectation of future functionality enhancements".

So I wouldn't implement these methods if I'm not completely wrong..

Greetings

Ian
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ian,

Welcome to the JavaRanch!

Don't wake up zombie (old) threads please! It has been almost 5 years that this thread was active, also the poster hasn't post anything anymore since March 2005 (so it will be unlikely that he will answer your question). Just post your question in a new thread.

Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic