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 How to implement booking action 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 "How to implement booking action" Watch "How to implement booking action" New topic
Author

How to implement booking action

HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
As we know , after valid booking action , the db.db should be modified (for example the field of available sites should be modified), but the assignment don't allow us to modify db.db file as follow quote:
*************************************************
The suncertify/db directory in this distribution also contains your database file, "db.db". You may not modify this file, but you may move it if you wish.
*************************************************
So, the first question is how booking action deal with the db.db file.
Further more, the another question is what the booking action should be at all? Sould it includes user log in ? Should it save user information?
Wellcome SCJDs give me some advise!
Rama Ituarte
Ranch Hand

Joined: Apr 10, 2002
Posts: 62
This is what I did. I made a several copies of the original db.db file, so I could test with. The original is in the jar file that they give you anyways.
Sould it includes user log in ? Should it save user information?

You don't need to.
Rama
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hello HiBob,
I understood the line which you have quoted in the following way:
On submission, you must include a copy of the original db.db file.
For coding and testing purposes, you use another copy of the db.db file.
"Moving" the db.db file I understood as placing the file into another directory.
Hope this helps.


Mag
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Thank above two frinds!
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

I provided booking placement or cancellation facilities through two buttons in user interface as well as from menu bar.


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
HiBob Chu
Ranch Hand

Joined: Aug 12, 2002
Posts: 86
Hi Ashik:
I give user the chance to cancel a booking action by poping up a YES_NO dialog after the
booking button be pressed.
Juan Katabasis
Ranch Hand

Joined: Jun 20, 2001
Posts: 46
Same did i. I present a dialog with information on the requested order and the chance to cancel it. I also refresh the row in the table after this (even when the order is canceled).


Regards<br />J.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement booking action
 
Similar Threads
What do they mean???
Too many if statements
PLS HELP
persistence layer
don't modify db.db but why!