• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A question about FBNS

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,
I am just going to do the FBNS assignment.I looked the Three Classes(They are Data,DataInfo,FieldInfo) SUN gave me.I still don't understand how the Data Class open the db.db file. I found only a RandomAccessFile, but I don't understand how this function. db.db is a binary file after all.
Pls guide me.
Thank you in advance.
 
George Ren
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another question.
I think FBNS only require us to enable Flight search and book functions. But Who book the Flight is not our job. am I right? So,that means we needn't store the information of the customer, am I right?

Regrads
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct. It doesn't matter who the customer is in the FBN assignment.
A RandomAccessFile will allow you jump the pointer in the file around from one record to any other record. Have you fixed your deprecated method calls in the Data class yet? I think fixing them and understanding what they did will help you in understanding how the db.db is read and written to in the Data class.
Mark
 
George Ren
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I havn't dixed them yet. And I will do it. Thank you for post.
Regards,
Geroge
 
reply
    Bookmark Topic Watch Topic
  • New Topic