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 Do we need to call add and delete method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Do we need to call add and delete method?" Watch "Do we need to call add and delete method?" New topic
Author

Do we need to call add and delete method?

Jack Yang
Ranch Hand

Joined: Jan 31, 2002
Posts: 59
In the assign,do we need to implement the add and delete method?
And for lock/unlock,do we need to implement database lock?I mean lock(-1).
Thanks


SCJD2,SCBCD,SCJWD,SCJP2
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Jack,
(Better smile when you say that at an airport!)


In the assign,do we need to implement the add and delete method?

You need to implement them as a requirement to expose the public Data interface, but you should never actually call them in this assignment.

And for lock/unlock,do we need to implement database lock?I mean lock(-1).

Once again, you need to implement database locking and optionally database unlocking but whether you actually lock the database depends on whether you decide on having a graceful shutdown on your server. I did employ a graceful shutdown, but others like Eugene did not. Eugene and I both scored perfect on server and locking, so apparantly either way is acceptable.
Hope this helps,
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Jack Yang
Ranch Hand

Joined: Jan 31, 2002
Posts: 59
thank you Michael
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Do we need to call add and delete method?
 
Similar Threads
NX: lock() and unlock()
Delete/Add record
add, modify and delete in data class
lock and unlock in local mode
pass scjd, graded in 4 days.