• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about FBNS

 
George Ren
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I think I havn't dixed them yet. And I will do it. Thank you for post.
Regards,
Geroge
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic