• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

NX:Please analyze the DBAccess interface

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,every one
I just downloaded my assignment,but I don't dare to deal with it.
In my instructions.html file,there are a interface DBAccess provided.

This is the first part of it.
How can I read and update/delete/create records?
The .db file provided is used to read chars/strings or bytes,isn't it?
Best regards, Donald
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Can you forward a copy of the instruction to me, I want to take a look at it. Thanks a lot.
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


How can I read and update/delete/create records?


You can use the RandomAccessFile to perform I/O operations.


The .db file provided is used to read chars/strings or bytes,isn't it?


The data in .db file can be extracted according to the Data file format given in the instruction.html.
For example, in my instrcution:


The format of data in the database file is as follows:
Start of file
4 byte numeric, magic cookie value identifies this as a data file
...


So, in your code, you can

Hope this help.
Nick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic