• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

How many db fiels in the assignment?

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Should I make two same db fiels in my assignment,one for local mode and the other for remote mode?
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
I would recommend having only the one Data class. You can then use this class inside your server code.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Andrew Monkhouse:
Hi Biang
I would recommend having only the one Data class. You can then use this class inside your server code.
Regards, Andrew


Hi,
I meant "db files",not "Data class".In my assignment,it is "db-1x3.db".
And I also think there should be two Data class,for remote mode and local mode respectively.
 
Andrew Monkhouse
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
Why do you want two database files? I don't believe you are talking about just backing it up so you can deliver it unchanged in your submission.
My reading of the instructions is that you will only have one database file in the submission. This is also how I would see a real life customer operating: they would start with stand alone mode, then when they go networked they will continue using the same database file (otherwise they will loose all the current bookings). Even if they fell back to standalone mode, they would continue to use the same database file.

And I also think there should be two Data class,for remote mode and local mode respectively.


How are you going to do this? You are required to implement an interface in your suncertify.data.Data class. This would imply that there is only one Data class.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
OK,I agree with you that there is only one db file.
And there is only one Data class.
But there are two instances of Data class in server side (remote mode) and client side(local mode) respectively, right?
 
Andrew Monkhouse
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
Yes, but not at the same time.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Andrew .
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I cleared SCJD with 139 last week and i lost 10 points for general considerations. I had two seperate jar files for client and server and each of them had a db.db file and i had also mentioned about this in my design document. My thought was, if these jar files were unjared in seperate machines the db.db file should be available with both of them. I am not sure whether i lost any points for this or not...

cheers
badari
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your recommendation, and I will think about it carefully.
 
Your mother was a hamster and your father was a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic