File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Questions regarding Data access class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Questions regarding Data access class" Watch "Questions regarding Data access class" New topic
Author

Questions regarding Data access class

Udham Singh
Greenhorn

Joined: Jun 18, 2004
Posts: 13
In my assigment I "must" implement an interface DBMain with these method signatures.
public void delete(int recNo) throws RecordNotFoundException;
public int create(String[] data) throws DuplicateKeyException;

The trouble is no where in the assignment have I been asked to let the user perform these operations on the data file. I have been asked only to provide for searh functionality on the data file. Should I still provide delete and create (in Data.java and the GUI) or is it okay if just threw UnsupportedOperationException in my code for create and delete.


The reason why I ask is well, the assinment looks like it was generated by a computer so maybe there is something seriously wrong with my specs. Another reason is that Sun expects people to finish this assignment in 20 hrs so I guess they really dont want to see any extra work being implemented.

Please let me know if I have misunderstood something.
Javini Javono
Ranch Hand

Joined: Dec 03, 2003
Posts: 286
Hi,

I don't think that anyone knows with certainty the answer to your question, though
everyone is aware that if they implement every method in the interface, their
specific application will not use the create() and delete() methods.

One brave soul has posted that he trivially implemented create() and delete(),
wrote comments about how he would implement them in the future, and
lost no points.

Thanks,
Javini Javono
Udham Singh
Greenhorn

Joined: Jun 18, 2004
Posts: 13
Hello Javini !


Thanks for letting me know that there is nothing wrong with my specification. I guess I'll implement the methods anyways. Its not that much work. I wont be propogating these features on the GUI in anyway though.

Thanks once again.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11503
    
  95

Hi "Bodgitt",

Welcome to JavaRanch.

We don't have many rules here, but one we do have is the JavaRanch Official Policy On Displayed Names, which requires your displayed name to be a real name.

Could you please change your displayed name to meet this policy? You can change it here.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Udham Singh
Greenhorn

Joined: Jun 18, 2004
Posts: 13
Sorry about that !

Didn't mean to break any rules.


Udham
Eben Hewitt
Author
Ranch Hand

Joined: Apr 16, 2004
Posts: 36
For what it's worth, I did choose to fully implement Create and Delete. So they have their own menu items, and their own screens and all.

But I know it is not necessary, because a number of developers have passed implementing only Search and Book (update).

I did not allow the user to edit records (like change a name or the size of the company or other info). So update to me means Book, because it does update the record.


Eben Hewitt. SCJP, SCWCD, SCJD, SCJWSD for JEE 5, TOGAF 8 Certified Architect, author of Java SOA Cookbook (O'Reilly, 2009) and contributor to 97 Things Every Software Architect Should Know
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Questions regarding Data access class