This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes create method in B&S assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "create method in B&S assignment " Watch "create method in B&S assignment " New topic
Author

create method in B&S assignment

sree visu
Ranch Hand

Joined: Jul 05, 2007
Posts: 133
Dear ranchers,


Is my assumption regarding this is correct.We have to provide a GUI to enter the details such as name,location,specialties,rate,size,owner.
Since it has been mentioned that reusing a deleted entry i had assumed the following implementation

And when the user clicks on the "Create " button we must search for the already deleted record(marked withe the deleted flag) and then replace all those fields with the currently given fields.Is this correct?If there are any other assumptions please let me know


Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
As far as i know it is not required to implement the UI for createRecord. If your requirement indicates that this implementation is must, you must provide the UI. Otherwise it would be an extra work and also you will not get any extra score for this implementation. I would suggest you to provide the implementation in your server for all methods defined in DBAccess interface. Your implementation will be helpful if anyone wants to provide the UI for other methods in future ;)


sat
Zonglin Li
Greenhorn

Joined: Aug 29, 2008
Posts: 12
There are two ways to create a new record. The simply one is to add the new record (with the new record number) at the bottom of the database. The second one is to reuse the deleted record number. Check your SUN requirement, if it is not a must to reuse the deleted record, then the first solution is straightaway.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create method in B&S assignment
 
Similar Threads
RecordNotFoundException and unlock
UrlYBird - DuplicateKeyException in the create method ?
B&S: How to create a new record, when identical record exist but marked as deleted?
About create new record number for URLyBird
URLyBird Primary Key