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 URLyBird's createRecord method 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 "URLyBird Watch "URLyBird New topic
Author

URLyBird's createRecord method

Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
I am not sure why we need to implement this method:

// 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.
public long createRecord(String [] data)
throws DuplicateKeyException;

The user interface section say that you need to implement the following:
It must allow the user to book a selected record, updating the database file accordingly and search.

To use create method, I will need a screen where I ask user to enter all fields. Currently, I do not have this screen. Not sure I need it.

Can someone please tell me, where would I call this method?

Am I missing something?

Thank you
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
You just have to implement the create method but don't need to create GUI component like JButton to invoke that method from the GUI level.


Hope That will help you


Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
It did help. Thank you so much for your quick reply..

Regards,
Payal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird's createRecord method
 
Similar Threads
B&S createMethod()
URLyBird's [Version 1.2.3] : create/update/delete
DuplicateKeyException - B&S
nx: All of URLy Bird 1.1.3 read/write lock(2)
File Channels (a couple of points)