• 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

NX: could I create new db file?

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,everybody.
My assignment is URLybird, I found that here was only one db file named db-1x2.db in the application distribution, but I thought that the application need more data schemas, such as "Hotel" schema,"City" schema.

meanwhile keeping the original db-1x2.db, whether I can create a new db file and allocate the new schema in that?

best regard
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I think the intention of Sun is that your application is to use their
file as input, and only their file, even if it should be thought that
the file format is not the best possible.

You can, of course, copy the file and rename it, and you can even
write software which generates such a file, but the file "must be
the same" with respect to the header and how the records are
laid out within it.

Thanks,
Javini Javono
 
Along huang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for reply.

I don't suspect whether the data format is the best one.

because I think that the data fields given by Sun is not enough for the application, e.g., user (i.e.CSR) must have a account to login, system have a database schemea to save account records, in this case, where should I put the database schema? it is impossable to put it in db-1x2.db file, so I must create a new file to contain that database schema.

now the problem is I don't know whether Sun permit examinee to create new database file.

please help me

thanks
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Along,

Welcome to JavaRanch and this forum.

In a real life application you probably would need all those additional tables and schemas, however they are not necessary for this assignent, and I would advise against creating them, as "You will not receive extra credit points for work beyond the requirements of the specification" (as specified in the instructions).

Regards, Andrew
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic