File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes where is the flight data? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "where is the flight data?" Watch "where is the flight data?" New topic

where is the flight data?

Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
We know the "Flight" class in the bussiness domain model, but it can't represent origin flight data. It means the flight of prepared itinerary.
Am I right?
Then my question is that should we design the origin flight data or just design a DAO class to wrap all the bussiness logic?

Please share your opinion

Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Prasad Kuppa
Ranch Hand

Joined: Apr 01, 2002
Posts: 151
In general, business logic inside a DAO is not recommended approach. A Data Access Object is meant to manipulate database access in a separate layer. I suggest you to look into DataAccessObject pattern at :

Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
Thanks for your reply.
I did say something wrong, but I mean that we might wrap the origin flight data in a SLSB with a DAO.
But could anybody answer my question?

Joseph Zhou
Ranch Hand

Joined: Aug 01, 2000
Posts: 129
IMO, the Filght and associated business domain classes can be used for two purpose: one for Itenerary, one for flight catalog. Admin provides new filghts to the the catalog. Cuctomers search the flights in the catalog using DAO and may have some kind of cache, but book a flight using entity beans(updating happens on both Itenerary and catalog side). after a flight taking off or any other reason to be unavaible, a status flag changed and the data becomes historic.
I agree. Here's the link:
subject: where is the flight data?
It's not a secret anymore!