wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes ticket booking problem 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 "ticket booking problem" Watch "ticket booking problem" New topic

ticket booking problem

Hal Wayne

Joined: Jan 16, 2003
Posts: 3
In the booking window, how could you recongnize the specific id associated with each flight? I guess my question is how to associate the record number as a hiden field in the table? Do we need to create a hashtable (record number,flight number pair)? Where should I implement this hashtable? Thanks in advance!
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Actually if you use the DataInfo class there is a method to return the Record Number.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Bernhard Woditschka
Ranch Hand

Joined: Sep 16, 2002
Posts: 89
You could use the Flight Number to recognize the indiviual rows (primary key). Later, when it comes to reservtion lookup the record in the database for this flight number.
[ January 17, 2003: Message edited by: Bernhard Woditschka ]
I agree. Here's the link: http://aspose.com/file-tools
subject: ticket booking problem
Similar Threads
Question on lock()/unlock()
How to map the to-be locked recordNo to the request client
Lock on flight no. or rec no.
FBNS - Lock and Unlock .. confused
Question about Unreferenced