Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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: 17260

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:
subject: ticket booking problem